diff --git a/bpython/test/test_args.py b/bpython/test/test_args.py index 9c89f73c9..e059b1c6a 100644 --- a/bpython/test/test_args.py +++ b/bpython/test/test_args.py @@ -40,7 +40,7 @@ def test_exec_dunder_file(self): def test_exec_nonascii_file(self): with tempfile.NamedTemporaryFile(mode="w") as f: f.write(dedent('''\ - #!/usr/bin/env python2 + #!/usr/bin/env python # coding: utf-8 "你好 # nonascii" ''')) @@ -55,7 +55,7 @@ def test_exec_nonascii_file(self): def test_exec_nonascii_file_linenums(self): with tempfile.NamedTemporaryFile(mode="w") as f: f.write(dedent("""\ - #!/usr/bin/env python2 + #!/usr/bin/env python # coding: utf-8 1/0 """))