diff options
author | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2008-09-09 07:04:36 (GMT) |
---|---|---|
committer | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2008-09-09 07:04:36 (GMT) |
commit | 14b785192bb2b83b7826e9c0374c6d63e63f0f04 (patch) | |
tree | 0ed4b81db98e6900b22f71f9fe2763c080084b24 /Lib/test/test_cmd_line.py | |
parent | f7bfcfbb68d71611e7ffae3de7b425c68433f59a (diff) | |
download | cpython-14b785192bb2b83b7826e9c0374c6d63e63f0f04.zip cpython-14b785192bb2b83b7826e9c0374c6d63e63f0f04.tar.gz cpython-14b785192bb2b83b7826e9c0374c6d63e63f0f04.tar.bz2 |
#3705: Fix crash when given a non-ascii value on the command line for the "-c" and "-m" parameters
Second part, for Windows.
Reviewed by Antoine Pitrou
Diffstat (limited to 'Lib/test/test_cmd_line.py')
-rw-r--r-- | Lib/test/test_cmd_line.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_cmd_line.py b/Lib/test/test_cmd_line.py index d63dfa1..fc0e3a7 100644 --- a/Lib/test/test_cmd_line.py +++ b/Lib/test/test_cmd_line.py @@ -135,6 +135,12 @@ class CmdLineTest(unittest.TestCase): self.exit_code('-c', 'pass'), 0) + # Test handling of non-ascii data + command = "assert(ord('\xe9') == 0xe9)" + self.assertEqual( + self.exit_code('-c', command), + 0) + def test_main(): test.support.run_unittest(CmdLineTest) |