From 502fe19b10f66235fcf8f13fc1c0308190845def Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 12 Dec 2018 18:38:34 +0100 Subject: [PATCH] bpo-35412: Add testcase to test_future4 (GH-11131) Add testcase to test_future4: check unicode literal. --- Lib/test/test_future4.py | 7 ++++++- .../next/Tests/2018-12-12-18-07-58.bpo-35412.kbuJor.rst | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 Misc/NEWS.d/next/Tests/2018-12-12-18-07-58.bpo-35412.kbuJor.rst diff --git a/Lib/test/test_future4.py b/Lib/test/test_future4.py index 413dd4d96b0..b27ca40d2ea 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 00000000000..d696074fb73 --- /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.