]> granicus.if.org Git - python/commitdiff
bpo-35412: Add testcase to test_future4 (GH-11131)
authorVictor Stinner <vstinner@redhat.com>
Wed, 12 Dec 2018 17:38:34 +0000 (18:38 +0100)
committerGitHub <noreply@github.com>
Wed, 12 Dec 2018 17:38:34 +0000 (18:38 +0100)
Add testcase to test_future4: check unicode literal.

Lib/test/test_future4.py
Misc/NEWS.d/next/Tests/2018-12-12-18-07-58.bpo-35412.kbuJor.rst [new file with mode: 0644]

index 413dd4d96b0367cc0572b2333359039c5ebd6266..b27ca40d2eaeb3eab1a873f5909f83374b0e20c7 100644 (file)
@@ -1,6 +1,11 @@
 from __future__ import unicode_literals
-
 import unittest
 
+
+class Tests(unittest.TestCase):
+    def test_unicode_literals(self):
+        self.assertIsInstance("literal", str)
+
+
 if __name__ == "__main__":
     unittest.main()
diff --git a/Misc/NEWS.d/next/Tests/2018-12-12-18-07-58.bpo-35412.kbuJor.rst b/Misc/NEWS.d/next/Tests/2018-12-12-18-07-58.bpo-35412.kbuJor.rst
new file mode 100644 (file)
index 0000000..d696074
--- /dev/null
@@ -0,0 +1 @@
+Add testcase to ``test_future4``: check unicode literal.