Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
test.test_args: don't hardcode python2
This will use python3 in a python3 env and python2 in a python2 one.
  • Loading branch information
flokli committed Nov 6, 2017
commit b29ccdd4829957ed541326c02f6c2cf9805df67e
4 changes: 2 additions & 2 deletions bpython/test/test_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
'''))
Expand All @@ -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
"""))
Expand Down