Skip to content

Commit b86e3e3

Browse files
committed
Print more detailed failure message #749
Signed-off-by: Philippe Ombredanne <[email protected]>
1 parent 1ca0d87 commit b86e3e3

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tests/scancode/test_extract_cli.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -255,9 +255,6 @@ def test_extractcode_command_can_extract_nuget(monkeypatch):
255255
monkeypatch.setattr(click._termui_impl, 'isatty', lambda _: True)
256256
runner = CliRunner()
257257
result = runner.invoke(extract_cli.extractcode, ['--verbose', test_dir], catch_exceptions=False)
258-
try:
259-
assert result.exit_code == 0
260-
assert 'ERROR extracting' not in result.output
261-
except Exception as e:
258+
if result.exit_code != 0:
262259
print(result.output)
263-
raise e
260+
assert 'ERROR extracting' not in result.output

0 commit comments

Comments
 (0)