Skip to content

Commit

Permalink
Fixed issue in test_freeze for failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
deveshks committed Apr 5, 2020
1 parent 29b4ec7 commit 84baf21
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions tests/functional/test_freeze.py
Original file line number Diff line number Diff line change
Expand Up @@ -832,8 +832,8 @@ def test_freeze_skip_work_dir_pkg(script):
expect_stderr=True, cwd=pkg_path)

# Freeze should not include package simple when run from package directory
result = script.pip('freeze', 'simple', cwd=pkg_path)
_check_output(result.stdout, '')
result = script.pip('freeze', cwd=pkg_path)
assert 'simple==1.0' not in result.stdout


def test_freeze_include_work_dir_pkg(script):
Expand All @@ -852,8 +852,5 @@ def test_freeze_include_work_dir_pkg(script):
script.environ.update({'PYTHONPATH': pkg_path})

# Freeze should include package simple when run from package directory
result = script.pip('freeze', 'simple', cwd=pkg_path)
expected = textwrap.dedent("""\
simple==1.0
<BLANKLINE>""")
_check_output(result.stdout, expected)
result = script.pip('freeze', cwd=pkg_path)
assert 'simple==1.0' in result.stdout

0 comments on commit 84baf21

Please sign in to comment.