Skip to content

Commit da403ed

Browse files
committed
Make sure local matplotlibrc files are completely ignored
1 parent b8d6ece commit da403ed

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
0.10 (unreleased)
22
-----------------
33

4-
- No changes yet.
4+
- Make sure local matplotlib files are completely ignored. [#64]
55

66
0.9 (2017-10-12)
77
----------------

pytest_mpl/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def item_function_wrapper(*args, **kwargs):
198198
if not baseline_remote:
199199
baseline_dir = os.path.join(os.path.dirname(item.fspath.strpath), baseline_dir)
200200

201-
with plt.style.context(style), switch_backend(backend):
201+
with plt.style.context(style, after_reset=True), switch_backend(backend):
202202

203203
# Run test and get figure object
204204
if inspect.ismethod(original): # method

0 commit comments

Comments
 (0)