Skip to content

Commit 5f30c06

Browse files
committed
fix settings after readme test
1 parent e62d118 commit 5f30c06

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

test/test_annotate.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ def plot():
3737

3838
def test():
3939
assert_equality(plot, __file__[:-3] + "_reference.tex")
40-
return
4140

4241

4342
if __name__ == "__main__":

test/test_readme.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import pathlib
22

33
import exdown
4+
import matplotlib as mpl
5+
import matplotlib.pyplot as plt
46
import pytest
57

68
this_dir = pathlib.Path(__file__).resolve().parent
@@ -12,3 +14,7 @@
1214
)
1315
def test_readme(string, lineno):
1416
exec(string)
17+
18+
# Close figure and reset defaults
19+
plt.close()
20+
mpl.rcParams.update(mpl.rcParamsDefault)

0 commit comments

Comments
 (0)