Skip to content

Commit f97c605

Browse files
authored
Fix pytest-mpl default tolerance hook (#512)
1 parent 808d34d commit f97c605

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ultraplot/tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,6 @@ def pytest_configure(config):
9494
if config.getoption("--mpl-default-tolerance") is None and not config.getini(
9595
"mpl-default-tolerance"
9696
):
97-
config.setini("mpl-default-tolerance", "3")
97+
config.option.mpl_default_tolerance = "3"
9898
except Exception as e:
9999
print(f"Error setting mpl default tolerance: {e}")

0 commit comments

Comments
 (0)