We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98e2f6a commit 781e516Copy full SHA for 781e516
pygmt/helpers/testing.py
@@ -89,6 +89,8 @@ def wrapper(*args, ext="png", request=None, **kwargs):
89
file_name = "".join(c for c in request.node.name if c in allowed_chars)
90
except AttributeError: # 'NoneType' object has no attribute 'node'
91
file_name = func.__name__
92
+
93
+ fig_ref, fig_test = None, None
94
try:
95
fig_ref, fig_test = func(*args, **kwargs)
96
ref_image_path = Path(result_dir) / f"{file_name}-expected.{ext}"
0 commit comments