diff --git a/tests/test_diceware.py b/tests/test_diceware.py index 2bf13fd3a4da58b2933e007ff8c8b69d6fba6003..c52dd90d4bba4459cce37243f998167e91062e3e 100644 --- a/tests/test_diceware.py +++ b/tests/test_diceware.py @@ -71,10 +71,10 @@ class TestHandleOptions(object): def test_handle_options_caps_conflicting_raises_exc(self): # conflicting caps-settings raise an exception - with pytest.raises(SystemExit) as exc_info: - options = handle_options(['--caps', '--no-caps']) - with pytest.raises(SystemExit) as exc_info: - options = handle_options(['--no-caps', '--caps']) + with pytest.raises(SystemExit): + handle_options(['--caps', '--no-caps']) + with pytest.raises(SystemExit): + handle_options(['--no-caps', '--caps']) def test_handle_options_delimiter(self): # we can set delimiter