Skip an unhelpful test on Windows

On Windows, converting command-line arguments (hopefully!!!) only needs
to deal with valid strings from the OS. So it is not really relevant to
test with non-UTF-8, non-surrogate bytes.
This commit is contained in:
Adrian Sampson 2022-10-01 17:13:57 -07:00
parent 086bab55b1
commit 8baf3e302d
No known key found for this signature in database
GPG key ID: BDB93AB409CC8705

View file

@ -101,6 +101,7 @@ class UtilTest(unittest.TestCase):
])
self.assertEqual(p, 'foo/_/bar')
@unittest.skipIf(sys.platform == 'win32', 'win32')
def test_convert_command_args_keeps_undecodeable_bytes(self):
arg = b'\x82' # non-ascii bytes
cmd_args = util.convert_command_args([arg])