Skip to content

Commit

Permalink
Merge pull request #6140 from jdufresne/check-call
Browse files Browse the repository at this point in the history
Remove workaround for unsupported Pythons
  • Loading branch information
pradyunsg authored Jan 17, 2019
2 parents 35b1cc1 + a06d846 commit 0637aad
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions tests/lib/local_repos.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,9 @@
from pip._internal.vcs import bazaar, git, mercurial, subversion
from tests.lib import path_to_url

if hasattr(subprocess, "check_call"):
subprocess_call = subprocess.check_call
else:
subprocess_call = subprocess.call


def _create_initools_repository(directory):
subprocess_call('svnadmin create INITools'.split(), cwd=directory)
subprocess.check_call('svnadmin create INITools'.split(), cwd=directory)


def _dump_initools_repository(directory):
Expand All @@ -26,7 +21,7 @@ def _dump_initools_repository(directory):
initools_folder = os.path.join(directory, 'INITools')
devnull = open(os.devnull, 'w')
dump = open(filename)
subprocess_call(
subprocess.check_call(
['svnadmin', 'load', initools_folder],
stdin=dump,
stdout=devnull,
Expand Down

0 comments on commit 0637aad

Please sign in to comment.