Skip to content

Commit

Permalink
Ran pyupgrade for Python 3.7+.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Dec 11, 2022
1 parent c72c1dd commit e7c769c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions pip_run/tests/test_launch.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import unicode_literals

import sys
import subprocess
import textwrap
Expand Down
6 changes: 3 additions & 3 deletions pip_run/tests/test_scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def test_pkg_imported(tmp_path):
pip_args = ['path.py']
cmd = [sys.executable, '-m', 'pip-run'] + pip_args + ['--', str(script)]

out = subprocess.check_output(cmd, universal_newlines=True)
out = subprocess.check_output(cmd, text=True)
assert 'Successfully imported path.py' in out


Expand Down Expand Up @@ -161,7 +161,7 @@ def test_pkg_loaded_from_alternate_index(tmp_path):
)
cmd = [sys.executable, '-m', 'pip-run', '-v', '--', tmp_path / 'script']

out = subprocess.check_output(cmd, universal_newlines=True)
out = subprocess.check_output(cmd, text=True)
assert 'Successfully imported path.py' in out
assert 'devpi.net' in out

Expand Down Expand Up @@ -202,5 +202,5 @@ def test_pkg_loaded_from_url(tmp_path):

script = tmp_path.joinpath('script_dir', 'script')
cmd = [sys.executable, '-m', 'pip-run', '--no-index', '--', str(script)]
out = subprocess.check_output(cmd, universal_newlines=True)
out = subprocess.check_output(cmd, text=True)
assert 'Successfully imported barbazquux.py' in out

0 comments on commit e7c769c

Please sign in to comment.