Skip to content

Commit ef8299d

Browse files
committed
pip list now normalizes the project name
1 parent c1da53d commit ef8299d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/functional/test_list.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,10 @@ def test_multiple_exclude_and_normalization(script, tmpdir):
100100
script.pip("install", "--no-index", req_path)
101101
result = script.pip("list")
102102
print(result.stdout)
103-
assert "Normalizable-Name" in result.stdout
103+
assert "normalizable-name" in result.stdout
104104
assert "pip" in result.stdout
105105
result = script.pip("list", "--exclude", "normalizablE-namE", "--exclude", "pIp")
106-
assert "Normalizable-Name" not in result.stdout
106+
assert "normalizable-name" not in result.stdout
107107
assert "pip" not in result.stdout
108108

109109

@@ -477,10 +477,10 @@ def test_not_required_flag(script, data):
477477
'install', '-f', data.find_links, '--no-index', 'TopoRequires4'
478478
)
479479
result = script.pip('list', '--not-required', expect_stderr=True)
480-
assert 'TopoRequires4 ' in result.stdout, str(result)
481-
assert 'TopoRequires ' not in result.stdout
482-
assert 'TopoRequires2 ' not in result.stdout
483-
assert 'TopoRequires3 ' not in result.stdout
480+
assert 'toporequires4 ' in result.stdout, str(result)
481+
assert 'toporequires ' not in result.stdout
482+
assert 'toporequires2 ' not in result.stdout
483+
assert 'toporequires3 ' not in result.stdout
484484

485485

486486
def test_list_freeze(simple_script):

0 commit comments

Comments
 (0)