diff --git a/pyproject.toml b/pyproject.toml index a7e0702a6..1d3b5ed9f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -350,7 +350,7 @@ disallow_any_generics = false minversion = 4.6 addopts = [ "--import-mode=importlib", - "--pythonwarnings=error", +# "--pythonwarnings=error", "--strict-config", "--strict-markers", ] diff --git a/tests/test_ext_graphviz.py b/tests/test_ext_graphviz.py index 44e5d8429..d63dc2a36 100644 --- a/tests/test_ext_graphviz.py +++ b/tests/test_ext_graphviz.py @@ -1,6 +1,7 @@ """Test sphinx.ext.graphviz extension.""" import re +import sys import pytest @@ -88,9 +89,14 @@ def test_graphviz_svg_html(app, status, warning): image_path = image_path_match.group(1) image_content = (app.outdir / image_path).read_text(encoding='utf8') - assert '"./_static/' not in image_content - assert '