Improve exception logging to make swallowing/reraising explicit in all cases.

This commit is contained in:
Pavel Minaev 2020-02-20 17:21:21 -08:00 committed by Pavel Minaev
parent bf1fbbc8ee
commit de9ea2cb9c
20 changed files with 93 additions and 92 deletions

View file

@ -134,8 +134,8 @@ def test_with_path_mappings(pyfile, long_tmpdir, target, run):
try:
session.request("source", {"sourceReference": 0})
except Exception as ex:
assert "Source unavailable" in str(ex)
except Exception as exc:
assert "Source unavailable" in str(exc)
else:
pytest.fail("sourceReference=0 should not be valid")