Skip to content

Commit

Permalink
Report if uninstall of package in pep561 tests failed (python#4884)
Browse files Browse the repository at this point in the history
  • Loading branch information
emmatyping authored Apr 11, 2018
1 parent 92fad7a commit 4649657
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mypy/test/testpep561.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ def install_package(self, pkg: str,
try:
yield
finally:
run_command([python_executable, '-m', 'pip', 'uninstall', '-y', pkg], cwd=package_path)
returncode, lines = run_command([python_executable, '-m', 'pip', 'uninstall',
'-y', pkg], cwd=package_path)
if returncode != 0:
self.fail('\n'.join(lines))

def test_get_pkg_dirs(self) -> None:
"""Check that get_package_dirs works."""
Expand Down

0 comments on commit 4649657

Please sign in to comment.