bpo-38325: Skip non-BMP tests of test_winconsoleio (GH-18448)

Skip tests on non-BMP characters of test_winconsoleio.
This commit is contained in:
Victor Stinner 2020-02-11 00:58:23 +01:00 committed by GitHub
parent c4a65ed7fe
commit 038770edc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -144,6 +144,10 @@ class WindowsConsoleIOTests(unittest.TestCase):
self.assertStdinRoundTrip('ϼўТλФЙ') self.assertStdinRoundTrip('ϼўТλФЙ')
# Combining characters # Combining characters
self.assertStdinRoundTrip('A͏B ﬖ̳AA̝') self.assertStdinRoundTrip('A͏B ﬖ̳AA̝')
# bpo-38325
@unittest.skipIf(True, "Handling Non-BMP characters is broken")
def test_input_nonbmp(self):
# Non-BMP # Non-BMP
self.assertStdinRoundTrip('\U00100000\U0010ffff\U0010fffd') self.assertStdinRoundTrip('\U00100000\U0010ffff\U0010fffd')
@ -163,6 +167,8 @@ class WindowsConsoleIOTests(unittest.TestCase):
self.assertEqual(actual, expected, 'stdin.read({})'.format(read_count)) 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): def test_partial_surrogate_reads(self):
# Test that reading less than 1 full character works when stdin # Test that reading less than 1 full character works when stdin
# contains surrogate pairs that cannot be decoded to UTF-8 without # contains surrogate pairs that cannot be decoded to UTF-8 without

View File

@ -0,0 +1 @@
Skip tests on non-BMP characters of test_winconsoleio.