8000
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 b0d63b5 commit 0a33534Copy full SHA for 0a33534
lib/matplotlib/testing/decorators.py
@@ -392,7 +392,7 @@ def decorator(func):
392
_, result_dir = _image_directories(func)
393
old_sig = inspect.signature(func)
394
395
- if not all(k in old_sig.parameters for k in {"fig_test", "fig_ref"}):
+ if not {"fig_test", "fig_ref"}.issubset(old_sig.parameters):
396
raise ValueError("The decorated function must have at least the "
397
"parameters 'fig_ref' and 'fig_test', but your "
398
f"function has the signature {old_sig}")
0 commit comments