diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-11-01 12:52:03 (GMT) |
---|---|---|
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-11-01 12:52:03 (GMT) |
commit | 1511a5a3af26c99d73ae2933c74aed25ad1e8722 (patch) | |
tree | 94430d67cc060e1d386be82fd03d9d38e5d93c42 /Lib/test/test_cmd_line_script.py | |
parent | 700835a57ec86a9904c1baf7570f99b934c33dff (diff) | |
parent | 90c0eb28c5ff1da76b258f9cf6a54abc6df19675 (diff) | |
download | cpython-1511a5a3af26c99d73ae2933c74aed25ad1e8722.zip cpython-1511a5a3af26c99d73ae2933c74aed25ad1e8722.tar.gz cpython-1511a5a3af26c99d73ae2933c74aed25ad1e8722.tar.bz2 |
Merge issue #16218: Support non ascii characters in python launcher.
Patch by Serhiy Storchaka.
Diffstat (limited to 'Lib/test/test_cmd_line_script.py')
-rw-r--r-- | Lib/test/test_cmd_line_script.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Lib/test/test_cmd_line_script.py b/Lib/test/test_cmd_line_script.py index 17dfbc2..6e097e3 100644 --- a/Lib/test/test_cmd_line_script.py +++ b/Lib/test/test_cmd_line_script.py @@ -363,6 +363,15 @@ class CmdLineTest(unittest.TestCase): self.assertTrue(text[1].startswith(' File ')) self.assertTrue(text[3].startswith('NameError')) + def test_non_utf8(self): + # Issue #16218 + with temp_dir() as script_dir: + script_name = _make_test_script(script_dir, + '\udcf1\udcea\udcf0\udce8\udcef\udcf2') + self._check_script(script_name, script_name, script_name, + script_dir, None, + importlib.machinery.SourceFileLoader) + def test_main(): support.run_unittest(CmdLineTest) support.reap_children() |