Skip to content

Commit d4585b1

Browse files
committed
Fixed issuse in test_freeze for failing test
1 parent 29b4ec7 commit d4585b1

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

tests/functional/test_freeze.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -832,8 +832,8 @@ def test_freeze_skip_work_dir_pkg(script):
832832
expect_stderr=True, cwd=pkg_path)
833833

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

838838

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

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

0 commit comments

Comments
 (0)