Skip to content

Commit

Permalink
TST: Using the matplotlib autouse testing fixture
Browse files Browse the repository at this point in the history
This takes care of all the cleanup of figures and state
for each test.
  • Loading branch information
greglucas committed Aug 6, 2020
1 parent 640774d commit e2af009
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/cartopy/tests/mpl/conftest.py
@@ -0,0 +1,9 @@
# Copyright Cartopy Contributors
#
# This file is part of Cartopy and is released under the LGPL license.
# See COPYING and COPYING.LESSER in the root of the repository for full
# licensing details.

# This is a matplotlib autouse fixture that will close all plots
# and reset any parameters that may have been modified.
from matplotlib.testing.conftest import mpl_test_settings # noqa: F401

0 comments on commit e2af009

Please sign in to comment.