From a392f4d5f43b80f70031faa6461ae2a7c0961949 Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+aa-turner@users.noreply.github.com> Date: Sat, 12 Aug 2023 02:57:55 +0100 Subject: [PATCH] Fix ``test_graphviz_svg_html`` on Windows --- pyproject.toml | 2 +- tests/test_ext_graphviz.py | 12 +++++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) 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 '