mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
#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
This commit is contained in:
parent
f7bfcfbb68
commit
14b785192b
4 changed files with 33 additions and 27 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue