Skip to content
Browse files

scripts: un-break

The pytest.raises context manager is now returning an ExceptionInfo
whose str() doesn't contain the str() of the underlying exception
object. Take str(e.value) directly to make sure we're looking at the
exception string.

Signed-off-by: Marti Bolivar <>
  • Loading branch information...
mbolivar authored and carlescufi committed Jul 25, 2019
1 parent 2b3d9df commit 7118d084c9d0601efdd9ae9cec32f6f6ffb840f3
Showing with 1 addition and 1 deletion.
  1. +1 −1 scripts/west_commands/tests/
@@ -213,7 +213,7 @@ def test_nrfjprog_init(cc, get_snr, req, test_case, runner_config):
if snr is None:
with pytest.raises(ValueError) as e:'flash')
assert 'snr must not be None' in str(e)
assert 'snr must not be None' in str(e.value)
assert req.called

0 comments on commit 7118d08

Please sign in to comment.
You can’t perform that action at this time.