Skip to content

Commit

Permalink
fix for test bug introduced by 9699f40
Browse files Browse the repository at this point in the history
  • Loading branch information
jantman committed Dec 24, 2017
1 parent e27f094 commit cdc0645
Showing 1 changed file with 33 additions and 33 deletions.
66 changes: 33 additions & 33 deletions versionfinder/tests/test_acceptance.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ def test_install_local_master(self, capsys, tmpdir):
path = str(tmpdir)
self._make_venv(path)
test_src = self._git_clone_test()
with capsys.disabled(capsys):
with capsys.disabled():
print("\n%s() venv=%s src=%s" % (
inspect.stack()[0][0].f_code.co_name, path, test_src))
self._pip_install(path, [test_src])
Expand All @@ -489,7 +489,7 @@ def test_install_local_e(self, capsys, tmpdir):
path = str(tmpdir)
self._make_venv(path)
test_src = self._git_clone_test()
with capsys.disabled(capsys):
with capsys.disabled():
print("\n%s() venv=%s src=%s" % (
inspect.stack()[0][0].f_code.co_name, path, test_src))
self._pip_install(path, ['-e', test_src])
Expand Down Expand Up @@ -518,7 +518,7 @@ def test_install_local_e_dirty(self, capsys, tmpdir):
path = str(tmpdir)
self._make_venv(path)
test_src = self._git_clone_test()
with capsys.disabled(capsys):
with capsys.disabled():
print("\n%s() venv=%s src=%s" % (
inspect.stack()[0][0].f_code.co_name, path, test_src))
self._pip_install(path, ['-e', test_src])
Expand Down Expand Up @@ -551,7 +551,7 @@ def test_install_local_e_tag(self, capsys, tmpdir):
path = str(tmpdir)
self._make_venv(path)
test_src = self._git_clone_test(ref=TEST_TAG_COMMIT)
with capsys.disabled(capsys):
with capsys.disabled():
print("\n%s() venv=%s src=%s" % (
inspect.stack()[0][0].f_code.co_name, path, test_src))
self._pip_install(path, ['-e', test_src])
Expand Down Expand Up @@ -580,7 +580,7 @@ def test_install_local_e_checkout_tag(self, capsys, tmpdir):
path = str(tmpdir)
self._make_venv(path)
test_src = self._git_clone_test()
with capsys.disabled(capsys):
with capsys.disabled():
print("\n%s() venv=%s src=%s" % (
inspect.stack()[0][0].f_code.co_name, path, test_src))
self._pip_install(path, ['-e', test_src])
Expand Down Expand Up @@ -610,7 +610,7 @@ def test_install_local_e_checkout_commit(self, capsys, tmpdir):
path = str(tmpdir)
self._make_venv(path)
test_src = self._git_clone_test()
with capsys.disabled(capsys):
with capsys.disabled():
print("\n%s() venv=%s src=%s" % (
inspect.stack()[0][0].f_code.co_name, path, test_src))
self._pip_install(path, ['-e', test_src])
Expand Down Expand Up @@ -640,7 +640,7 @@ def test_install_local_e_multiple_remotes(self, capsys, tmpdir):
path = str(tmpdir)
self._make_venv(path)
test_src = self._git_clone_test()
with capsys.disabled(capsys):
with capsys.disabled():
print("\n%s() venv=%s src=%s" % (
inspect.stack()[0][0].f_code.co_name, path, test_src))
self._git_add_remote(test_src, 'testremote',
Expand Down Expand Up @@ -672,7 +672,7 @@ def test_install_local_e_multiple_remotes(self, capsys, tmpdir):
def test_install_sdist(self, capsys, tmpdir):
path = str(tmpdir)
self._make_venv(path)
with capsys.disabled(capsys):
with capsys.disabled():
print("\n%s() venv=%s src=%s" % (
inspect.stack()[0][0].f_code.co_name, path, TEST_TARBALL_PATH))
self._pip_install(path, [TEST_TARBALL_PATH])
Expand Down Expand Up @@ -701,7 +701,7 @@ def test_install_sdist_pip154(self, capsys, tmpdir):
"""regression test for issue #55"""
path = str(tmpdir)
self._make_venv(path)
with capsys.disabled(capsys):
with capsys.disabled():
print("\n%s() venv=%s src=%s" % (
inspect.stack()[0][0].f_code.co_name, path, TEST_TARBALL_PATH))
self._pip_install(path, ['--force-reinstall', 'pip==1.5.4'])
Expand All @@ -726,7 +726,7 @@ def test_install_sdist_pip154(self, capsys, tmpdir):
def test_install_bdist_wheel(self, capsys, tmpdir):
path = str(tmpdir)
self._make_venv(path)
with capsys.disabled(capsys):
with capsys.disabled():
print("\n%s() venv=%s src=%s" % (
inspect.stack()[0][0].f_code.co_name, path, TEST_WHEEL_PATH))
self._pip_install(path, [TEST_WHEEL_PATH])
Expand All @@ -752,7 +752,7 @@ def test_install_bdist_wheel_no_git_binary(self, capsys, tmpdir):
e['GIT_PYTHON_GIT_EXECUTABLE'] = '/tmp/NoSuchFile'
path = str(tmpdir)
self._make_venv(path)
with capsys.disabled(capsys):
with capsys.disabled():
print("\n%s() venv=%s src=%s" % (
inspect.stack()[0][0].f_code.co_name, path, TEST_WHEEL_PATH))
self._pip_install(path, [TEST_WHEEL_PATH])
Expand All @@ -776,7 +776,7 @@ def test_install_bdist_wheel_no_git_binary(self, capsys, tmpdir):
def test_install_git(self, capsys, tmpdir):
path = str(tmpdir)
self._make_venv(path)
with capsys.disabled(capsys):
with capsys.disabled():
print("\n%s() venv=%s src=%s" % (
inspect.stack()[0][0].f_code.co_name, path, 'git'))
self._pip_install(path, [
Expand Down Expand Up @@ -804,7 +804,7 @@ def test_install_git(self, capsys, tmpdir):
def test_install_git_fork(self, capsys, tmpdir):
path = str(tmpdir)
self._make_venv(path)
with capsys.disabled(capsys):
with capsys.disabled():
print("\n%s() venv=%s src=%s" % (
inspect.stack()[0][0].f_code.co_name, path, 'git'))
self._pip_install(path, [
Expand Down Expand Up @@ -832,7 +832,7 @@ def test_install_git_fork(self, capsys, tmpdir):
def test_install_git_commit(self, capsys, tmpdir):
path = str(tmpdir)
self._make_venv(path)
with capsys.disabled(capsys):
with capsys.disabled():
print("\n%s() venv=%s src=%s" % (
inspect.stack()[0][0].f_code.co_name, path, 'git'))
self._pip_install(path, [
Expand Down Expand Up @@ -861,7 +861,7 @@ def test_install_git_commit(self, capsys, tmpdir):
def test_install_git_tag(self, capsys, tmpdir):
path = str(tmpdir)
self._make_venv(path)
with capsys.disabled(capsys):
with capsys.disabled():
print("\n%s() venv=%s src=%s" % (
inspect.stack()[0][0].f_code.co_name, path, 'git'))
self._pip_install(path, [
Expand Down Expand Up @@ -890,7 +890,7 @@ def test_install_git_tag(self, capsys, tmpdir):
def test_install_git_branch(self, capsys, tmpdir):
path = str(tmpdir)
self._make_venv(path)
with capsys.disabled(capsys):
with capsys.disabled():
print("\n%s() venv=%s src=%s" % (
inspect.stack()[0][0].f_code.co_name, path, 'git'))
self._pip_install(path, [
Expand Down Expand Up @@ -919,7 +919,7 @@ def test_install_git_branch(self, capsys, tmpdir):
def test_install_git_e(self, capsys, tmpdir):
path = str(tmpdir)
self._make_venv(path)
with capsys.disabled(capsys):
with capsys.disabled():
print("\n%s() venv=%s src=%s" % (
inspect.stack()[0][0].f_code.co_name, path, 'git'))
self._pip_install(path, [
Expand Down Expand Up @@ -952,7 +952,7 @@ def test_install_git_e(self, capsys, tmpdir):
def test_install_git_e_fork(self, capsys, tmpdir):
path = str(tmpdir)
self._make_venv(path)
with capsys.disabled(capsys):
with capsys.disabled():
print("\n%s() venv=%s src=%s" % (
inspect.stack()[0][0].f_code.co_name, path, 'git'))
self._pip_install(path, [
Expand Down Expand Up @@ -991,7 +991,7 @@ def test_install_git_e_fork(self, capsys, tmpdir):
def test_install_git_e_multiple_remotes(self, capsys, tmpdir):
path = str(tmpdir)
self._make_venv(path)
with capsys.disabled(capsys):
with capsys.disabled():
print("\n%s() venv=%s src=%s" % (
inspect.stack()[0][0].f_code.co_name, path, 'git'))
self._pip_install(path, [
Expand Down Expand Up @@ -1028,7 +1028,7 @@ def test_install_git_e_multiple_remotes(self, capsys, tmpdir):
def test_install_git_e_dirty(self, capsys, tmpdir):
path = str(tmpdir)
self._make_venv(path)
with capsys.disabled(capsys):
with capsys.disabled():
print("\n%s() venv=%s src=%s" % (
inspect.stack()[0][0].f_code.co_name, path, 'git'))
self._pip_install(path, [
Expand Down Expand Up @@ -1068,7 +1068,7 @@ def test_install_git_e_dirty(self, capsys, tmpdir):
def test_install_git_e_commit(self, capsys, tmpdir):
path = str(tmpdir)
self._make_venv(path)
with capsys.disabled(capsys):
with capsys.disabled():
print("\n%s() venv=%s src=%s" % (
inspect.stack()[0][0].f_code.co_name, path, 'git'))
self._pip_install(path, [
Expand Down Expand Up @@ -1102,7 +1102,7 @@ def test_install_git_e_commit(self, capsys, tmpdir):
def test_install_git_e_tag(self, capsys, tmpdir):
path = str(tmpdir)
self._make_venv(path)
with capsys.disabled(capsys):
with capsys.disabled():
print("\n%s() venv=%s src=%s" % (
inspect.stack()[0][0].f_code.co_name, path, 'git'))
self._pip_install(path, [
Expand Down Expand Up @@ -1136,7 +1136,7 @@ def test_install_git_e_tag(self, capsys, tmpdir):
def test_install_git_e_branch(self, capsys, tmpdir):
path = str(tmpdir)
self._make_venv(path)
with capsys.disabled(capsys):
with capsys.disabled():
print("\n%s() venv=%s src=%s" % (
inspect.stack()[0][0].f_code.co_name, path, 'git'))
self._pip_install(path, [
Expand Down Expand Up @@ -1172,7 +1172,7 @@ def test_install_sdist_in_git_repo(self, capsys, tmpdir):
path = str(tmpdir)
self._make_git_repo(path)
self._make_venv(path)
with capsys.disabled(capsys):
with capsys.disabled():
print("\n%s() venv=%s src=%s" % (
inspect.stack()[0][0].f_code.co_name, path, TEST_TARBALL_PATH))
self._pip_install(path, [TEST_TARBALL_PATH])
Expand All @@ -1198,7 +1198,7 @@ def test_install_wheel_in_git_repo(self, capsys, tmpdir):
path = str(tmpdir)
self._make_git_repo(path)
self._make_venv(path)
with capsys.disabled(capsys):
with capsys.disabled():
print("\n%s() venv=%s src=%s" % (
inspect.stack()[0][0].f_code.co_name, path, TEST_WHEEL_PATH))
self._pip_install(path, [TEST_WHEEL_PATH])
Expand Down Expand Up @@ -1227,7 +1227,7 @@ def test_develop(self, capsys, tmpdir):
path = str(tmpdir)
self._make_venv(path)
test_src = self._git_clone_test()
with capsys.disabled(capsys):
with capsys.disabled():
print("\n%s() venv=%s src=%s" % (
inspect.stack()[0][0].f_code.co_name, path, test_src))
with chdir(test_src):
Expand Down Expand Up @@ -1264,7 +1264,7 @@ def test_install(self, capsys, tmpdir):
path = str(tmpdir)
self._make_venv(path)
test_src = self._git_clone_test()
with capsys.disabled(capsys):
with capsys.disabled():
print("\n%s() venv=%s src=%s" % (
inspect.stack()[0][0].f_code.co_name, path, test_src))
with chdir(test_src):
Expand Down Expand Up @@ -1301,7 +1301,7 @@ def test_install_local_master(self, capsys, tmpdir):
path = str(tmpdir)
self._make_venv(path)
test_src = self._git_clone_test()
with capsys.disabled(capsys):
with capsys.disabled():
print("\n%s() venv=%s src=%s" % (
inspect.stack()[0][0].f_code.co_name, path, test_src))
self._easy_install(path, [test_src])
Expand All @@ -1326,7 +1326,7 @@ def test_install_sdist(self, capsys, tmpdir):
"""regression test for issue #73"""
path = str(tmpdir)
self._make_venv(path)
with capsys.disabled(capsys):
with capsys.disabled():
print("\n%s() venv=%s src=%s" % (
inspect.stack()[0][0].f_code.co_name, path, TEST_TARBALL_PATH))
self._easy_install(path, [TEST_TARBALL_PATH])
Expand All @@ -1353,7 +1353,7 @@ def test_install_egg(self, capsys, tmpdir):
pytest.skip("No egg for python version")
path = str(tmpdir)
self._make_venv(path)
with capsys.disabled(capsys):
with capsys.disabled():
print("\n%s() venv=%s src=%s" % (
inspect.stack()[0][0].f_code.co_name, path, TEST_EGG_PATH))
self._easy_install(path, [TEST_TARBALL_PATH])
Expand All @@ -1379,7 +1379,7 @@ def test_install_local_master_in_git_repo(self, capsys, tmpdir):
self._make_venv(path)
self._make_git_repo(path)
test_src = self._git_clone_test()
with capsys.disabled(capsys):
with capsys.disabled():
print("\n%s() venv=%s src=%s" % (
inspect.stack()[0][0].f_code.co_name, path, test_src))
self._easy_install(path, [test_src])
Expand All @@ -1405,7 +1405,7 @@ def test_install_sdist_in_git_repo(self, capsys, tmpdir):
path = str(tmpdir)
self._make_venv(path)
self._make_git_repo(path)
with capsys.disabled(capsys):
with capsys.disabled():
print("\n%s() venv=%s src=%s" % (
inspect.stack()[0][0].f_code.co_name, path, TEST_TARBALL_PATH))
self._easy_install(path, [TEST_TARBALL_PATH])
Expand Down Expand Up @@ -1433,7 +1433,7 @@ def test_install_egg_in_git_repo(self, capsys, tmpdir):
path = str(tmpdir)
self._make_venv(path)
self._make_git_repo(path)
with capsys.disabled(capsys):
with capsys.disabled():
print("\n%s() venv=%s src=%s" % (
inspect.stack()[0][0].f_code.co_name, path, TEST_EGG_PATH))
self._easy_install(path, [TEST_TARBALL_PATH])
Expand Down

0 comments on commit cdc0645

Please sign in to comment.