[Python-checkins] bpo-35412: Add testcase to test_future4 (GH-11131) (GH-11183)

Victor Stinner webhook-mailer at python.org
Mon Dec 17 03:34:14 EST 2018


https://github.com/python/cpython/commit/2d91a1325f7def1cc3762cadf5f5a99a55dac78a
commit: 2d91a1325f7def1cc3762cadf5f5a99a55dac78a
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: Victor Stinner <vstinner at redhat.com>
date: 2018-12-17T09:34:06+01:00
summary:

bpo-35412: Add testcase to test_future4 (GH-11131) (GH-11183)

Add testcase to test_future4: check unicode literal.
(cherry picked from commit 502fe19b10f66235fcf8f13fc1c0308190845def)

Co-authored-by: Victor Stinner <vstinner at redhat.com>

files:
A Misc/NEWS.d/next/Tests/2018-12-12-18-07-58.bpo-35412.kbuJor.rst
M Lib/test/test_future4.py

diff --git a/Lib/test/test_future4.py b/Lib/test/test_future4.py
index 413dd4d96b03..b27ca40d2eae 100644
--- a/Lib/test/test_future4.py
+++ b/Lib/test/test_future4.py
@@ -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
index 000000000000..d696074fb734
--- /dev/null
+++ b/Misc/NEWS.d/next/Tests/2018-12-12-18-07-58.bpo-35412.kbuJor.rst
@@ -0,0 +1 @@
+Add testcase to ``test_future4``: check unicode literal.



More information about the Python-checkins mailing list