Skip to content

Commit 19389df

Browse files
committed
Fix expected error message format
1 parent c777414 commit 19389df

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/functional/test_show.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def test_show_with_files_not_found(script, data):
3636
assert any(line.startswith('Location: ') for line in lines)
3737
assert 'Requires: ' in lines
3838
assert 'Files:' in lines
39-
assert 'Cannot locate installed-files.txt' in lines
39+
assert 'Cannot locate RECORD or installed-files.txt' in lines
4040

4141

4242
def test_show_with_files_from_wheel(script, data):
@@ -48,7 +48,7 @@ def test_show_with_files_from_wheel(script, data):
4848
result = script.pip('show', '-f', 'simple.dist')
4949
lines = result.stdout.splitlines()
5050
assert 'Name: simple.dist' in lines
51-
assert 'Cannot locate installed-files.txt' not in lines[6], lines[6]
51+
assert 'Cannot locate RECORD or installed-files.txt' not in lines[6], lines[6]
5252
assert re.search(r"Files:\n( .+\n)+", result.stdout)
5353

5454

@@ -60,7 +60,7 @@ def test_show_with_all_files(script):
6060
script.pip('install', 'initools==0.2')
6161
result = script.pip('show', '--files', 'initools')
6262
lines = result.stdout.splitlines()
63-
assert 'Cannot locate installed-files.txt' not in lines[6], lines[6]
63+
assert 'Cannot locate RECORD or installed-files.txt' not in lines[6], lines[6]
6464
assert re.search(r"Files:\n( .+\n)+", result.stdout)
6565

6666

0 commit comments

Comments
 (0)