Skip to content

Commit fd5d482

Browse files
floklisebastinas
authored andcommitted
test.test_args: don't hardcode python2 (bpython#716)
This will use python3 in a python3 env and python2 in a python2 one.
1 parent 1c5484f commit fd5d482

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bpython/test/test_args.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def test_exec_dunder_file(self):
4040
def test_exec_nonascii_file(self):
4141
with tempfile.NamedTemporaryFile(mode="w") as f:
4242
f.write(dedent('''\
43-
#!/usr/bin/env python2
43+
#!/usr/bin/env python
4444
# coding: utf-8
4545
"你好 # nonascii"
4646
'''))
@@ -55,7 +55,7 @@ def test_exec_nonascii_file(self):
5555
def test_exec_nonascii_file_linenums(self):
5656
with tempfile.NamedTemporaryFile(mode="w") as f:
5757
f.write(dedent("""\
58-
#!/usr/bin/env python2
58+
#!/usr/bin/env python
5959
# coding: utf-8
6060
1/0
6161
"""))

0 commit comments

Comments
 (0)