Skip to content

Commit 24de043

Browse files
authored
Merge pull request #9106 from tacaswell/tst_avoid_cpython_bug
TST: do not do import in finally block
2 parents 64a7bd5 + ee26c7c commit 24de043

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/matplotlib/testing/conftest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ def mpl_test_settings(request):
4949
yield
5050
finally:
5151
if backend is not None:
52-
import matplotlib.pyplot as plt
5352
plt.switch_backend(prev_backend)
5453
_do_cleanup(original_units_registry,
5554
original_settings)

0 commit comments

Comments
 (0)