summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorEric Smith <eric@trueblade.com>2008-03-27 09:42:35 (GMT)
committerEric Smith <eric@trueblade.com>2008-03-27 09:42:35 (GMT)
commit23a48ad101c2068b546feead99db8b7522402514 (patch)
tree441737048a19b23b3806ed73ce3031335a45c407 /Lib
parent81caa790b603735c05193e9a266991dd9cc72bb2 (diff)
downloadcpython-23a48ad101c2068b546feead99db8b7522402514.zip
cpython-23a48ad101c2068b546feead99db8b7522402514.tar.gz
cpython-23a48ad101c2068b546feead99db8b7522402514.tar.bz2
Added test cases for single quoted strings, both forms of triple quotes,
and some string concatenations. Removed unneeded __future__ print_function import.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_future4.py25
1 files changed, 24 insertions, 1 deletions
diff --git a/Lib/test/test_future4.py b/Lib/test/test_future4.py
index 89458b5..2580c55 100644
--- a/Lib/test/test_future4.py
+++ b/Lib/test/test_future4.py
@@ -1,4 +1,3 @@
-from __future__ import print_function
from __future__ import unicode_literals
import unittest
@@ -11,11 +10,35 @@ class TestFuture(unittest.TestCase):
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)