Skip to content

Commit 1ca0d87

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

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/scancode/test_extract_cli.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,5 +255,9 @@ 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-
assert result.exit_code == 0
259-
assert 'ERROR extracting' not in result.output
258+
try:
259+
assert result.exit_code == 0
260+
assert 'ERROR extracting' not in result.output
261+
except Exception as e:
262+
print(result.output)
263+
raise e

0 commit comments

Comments
 (0)