mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Enable this test only when subprocess supports non-ascii arguments.
(it is about parsing the python command line arguments, not about subprocess)
This commit is contained in:
parent
f4b27124d2
commit
e25576467b
1 changed files with 5 additions and 6 deletions
|
@ -136,12 +136,11 @@ class CmdLineTest(unittest.TestCase):
|
|||
0)
|
||||
|
||||
# Test handling of non-ascii data
|
||||
if test.support.verbose:
|
||||
print("FileSystemEncoding:", sys.getfilesystemencoding())
|
||||
command = "assert(ord('\xe9') == 0xe9)"
|
||||
self.assertEqual(
|
||||
self.exit_code('-c', command),
|
||||
0)
|
||||
if sys.getfilesystemencoding() != 'ascii':
|
||||
command = "assert(ord('\xe9') == 0xe9)"
|
||||
self.assertEqual(
|
||||
self.exit_code('-c', command),
|
||||
0)
|
||||
|
||||
|
||||
def test_main():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue