]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-38325: Skip non-BMP tests of test_winconsoleio (GH-18448)
authorVictor Stinner <vstinner@python.org>
Mon, 10 Feb 2020 23:58:23 +0000 (00:58 +0100)
committerGitHub <noreply@github.com>
Mon, 10 Feb 2020 23:58:23 +0000 (00:58 +0100)
Skip tests on non-BMP characters of test_winconsoleio.

Lib/test/test_winconsoleio.py
Misc/NEWS.d/next/Tests/2020-02-11-00-38-32.bpo-38325.HgmfoE.rst [new file with mode: 0644]

index 9a61e48881d903ca0cf98bad049cc86b9c86674b..a44f7bbd27b700917699f25062f40dd082a80e1d 100644 (file)
@@ -144,6 +144,10 @@ class WindowsConsoleIOTests(unittest.TestCase):
         self.assertStdinRoundTrip('ϼўТλФЙ')
         # Combining characters
         self.assertStdinRoundTrip('A͏B ﬖ̳AA̝')
+
+    # bpo-38325
+    @unittest.skipIf(True, "Handling Non-BMP characters is broken")
+    def test_input_nonbmp(self):
         # Non-BMP
         self.assertStdinRoundTrip('\U00100000\U0010ffff\U0010fffd')
 
@@ -163,6 +167,8 @@ class WindowsConsoleIOTests(unittest.TestCase):
 
                 self.assertEqual(actual, expected, 'stdin.read({})'.format(read_count))
 
+    # bpo-38325
+    @unittest.skipIf(True, "Handling Non-BMP characters is broken")
     def test_partial_surrogate_reads(self):
         # Test that reading less than 1 full character works when stdin
         # contains surrogate pairs that cannot be decoded to UTF-8 without
diff --git a/Misc/NEWS.d/next/Tests/2020-02-11-00-38-32.bpo-38325.HgmfoE.rst b/Misc/NEWS.d/next/Tests/2020-02-11-00-38-32.bpo-38325.HgmfoE.rst
new file mode 100644 (file)
index 0000000..7503379
--- /dev/null
@@ -0,0 +1 @@
+Skip tests on non-BMP characters of test_winconsoleio.