From b29ccdd4829957ed541326c02f6c2cf9805df67e Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Mon, 6 Nov 2017 12:00:21 +0100 Subject: [PATCH] test.test_args: don't hardcode python2 This will use python3 in a python3 env and python2 in a python2 one. --- bpython/test/test_args.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 """))