Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2617f66

Browse files
committed
TST: remove dead code path in tests
1 parent 084d79b commit 2617f66

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/matplotlib/tests/test_cbook.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -274,10 +274,7 @@ def transformer(excp):
274274
def test_callbackregistry_custom_exception_handler(monkeypatch, cb, excp):
275275
monkeypatch.setattr(
276276
cbook, "_get_running_interactive_framework", lambda: None)
277-
if excp is not None:
278-
with pytest.raises(excp):
279-
cb.process('foo')
280-
else:
277+
with pytest.raises(excp):
281278
cb.process('foo')
282279

283280

0 commit comments

Comments
 (0)