Skip to content

Commit 8b83298

Browse files
committed
Fix undefined extra_rcparams
1 parent 6a47655 commit 8b83298

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pytest_mpl/plugin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,8 @@ def save_figure(self, item, fig, filename):
555555

556556
original_source_date_epoch = os.environ.get('SOURCE_DATE_EPOCH', None)
557557

558+
extra_rcparams = {}
559+
558560
if deterministic:
559561

560562
# Make sure we don't modify the original dictionary in case is a common
@@ -566,8 +568,6 @@ def save_figure(self, item, fig, filename):
566568

567569
ext = self._file_extension(item)
568570

569-
extra_rcparams = {}
570-
571571
if ext == 'png':
572572
extra_metadata = {"Software": None}
573573
elif ext == 'pdf':

0 commit comments

Comments
 (0)