diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-12-17 08:34:06 (GMT) |
---|---|---|
committer | Victor Stinner <vstinner@redhat.com> | 2018-12-17 08:34:06 (GMT) |
commit | 2d91a1325f7def1cc3762cadf5f5a99a55dac78a (patch) | |
tree | 05a74aa40a6d755d1c36d418e9022c59044645a8 | |
parent | 9a4758550d96030ee7e7f7c7c68b435db1a2a825 (diff) | |
download | cpython-2d91a1325f7def1cc3762cadf5f5a99a55dac78a.zip cpython-2d91a1325f7def1cc3762cadf5f5a99a55dac78a.tar.gz cpython-2d91a1325f7def1cc3762cadf5f5a99a55dac78a.tar.bz2 |
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@redhat.com>
-rw-r--r-- | Lib/test/test_future4.py | 7 | ||||
-rw-r--r-- | Misc/NEWS.d/next/Tests/2018-12-12-18-07-58.bpo-35412.kbuJor.rst | 1 |
2 files changed, 7 insertions, 1 deletions
diff --git a/Lib/test/test_future4.py b/Lib/test/test_future4.py index 413dd4d..b27ca40 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 0000000..d696074 --- /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. |