From d80779d71e606a503d5b1568db248ea6cdd3e137 Mon Sep 17 00:00:00 2001 From: Cosimo Lupo Date: Thu, 11 Mar 2021 18:23:26 +0000 Subject: [PATCH] py23_test: remove py27 test always skipped now --- Tests/misc/py23_test.py | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/Tests/misc/py23_test.py b/Tests/misc/py23_test.py index 1a21d5a77..911ecce73 100644 --- a/Tests/misc/py23_test.py +++ b/Tests/misc/py23_test.py @@ -389,35 +389,6 @@ class IsCloseTests(unittest.TestCase): self.assertAllNotClose(fraction_examples, rel_tol=1e-9) -@unittest.skipUnless( - (sys.version_info[0] == 2 and sys.maxunicode < 0x10FFFF), - "requires 'narrow' Python 2.7 build") -class NarrowUnicodeBuildTest(unittest.TestCase): - - def test_unichr(self): - from __builtin__ import unichr as narrow_unichr - - self.assertRaises( - ValueError, - narrow_unichr, 0xFFFF + 1) - - self.assertEqual(unichr(1114111), u'\U0010FFFF') - - self.assertRaises( - ValueError, - unichr, 0x10FFFF + 1) - - def test_byteord(self): - from __builtin__ import ord as narrow_ord - - self.assertRaises( - TypeError, - narrow_ord, u'\U00010000') - - self.assertEqual(byteord(u'\U00010000'), 0xFFFF + 1) - self.assertEqual(byteord(u'\U0010FFFF'), 1114111) - - class TestRedirectStream: redirect_stream = None