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 d467865 commit 7bc9e02Copy full SHA for 7bc9e02
pytest_mpl/kernels.py
@@ -151,7 +151,9 @@ def __init__(self, plugin):
151
152
def equivalent_hash(self, actual, expected, marker=None):
153
if marker:
154
- self.hamming_tolerance = int(marker.kwargs.get(self.option))
+ value = marker.kwargs.get(self.option)
155
+ if value is not None:
156
+ self.hamming_tolerance = int(value)
157
actual = imagehash.hex_to_hash(actual)
158
expected = imagehash.hex_to_hash(expected)
159
self.hamming_distance = actual - expected
0 commit comments