[Python-checkins] r61974 - python/trunk/Lib/test/test_future4.py

eric.smith python-checkins at python.org
Thu Mar 27 10:42:36 CET 2008


Author: eric.smith
Date: Thu Mar 27 10:42:35 2008
New Revision: 61974

Modified:
   python/trunk/Lib/test/test_future4.py
Log:
Added test cases for single quoted strings, both forms of triple quotes,
 and some string concatenations.
Removed unneeded __future__ print_function import.

Modified: python/trunk/Lib/test/test_future4.py
==============================================================================
--- python/trunk/Lib/test/test_future4.py	(original)
+++ python/trunk/Lib/test/test_future4.py	Thu Mar 27 10:42:35 2008
@@ -1,4 +1,3 @@
-from __future__ import print_function
 from __future__ import unicode_literals
 
 import unittest
@@ -11,11 +10,35 @@
 
     def test_unicode_strings(self):
         self.assertType("", unicode)
+        self.assertType('', unicode)
         self.assertType(r"", unicode)
+        self.assertType(r'', unicode)
+        self.assertType(""" """, unicode)
+        self.assertType(''' ''', unicode)
+        self.assertType(r""" """, unicode)
+        self.assertType(r''' ''', unicode)
         self.assertType(u"", unicode)
+        self.assertType(u'', unicode)
         self.assertType(ur"", unicode)
+        self.assertType(ur'', unicode)
+        self.assertType(u""" """, unicode)
+        self.assertType(u''' ''', unicode)
+        self.assertType(ur""" """, unicode)
+        self.assertType(ur''' ''', unicode)
+
         self.assertType(b"", str)
+        self.assertType(b'', str)
         self.assertType(br"", str)
+        self.assertType(br'', str)
+        self.assertType(b""" """, str)
+        self.assertType(b''' ''', str)
+        self.assertType(br""" """, str)
+        self.assertType(br''' ''', str)
+
+        self.assertType('' '', unicode)
+        self.assertType('' u'', unicode)
+        self.assertType(u'' '', unicode)
+        self.assertType(u'' u'', unicode)
 
 def test_main():
     test_support.run_unittest(TestFuture)


More information about the Python-checkins mailing list