Blob Blame History Raw
From ce36c78e7b97a06ec0ea0737e4c418217e0489af Mon Sep 17 00:00:00 2001
From: Karolina Surma <33810531+befeleme@users.noreply.github.com>
Date: Thu, 5 Aug 2021 11:40:23 +0200
Subject: [PATCH] Fix test_other_with_assets_new_style w/Sphinx 4.0

Make the test work with Sphinx 4.0.x.
Fix the typo so that the regression file is actually found.
---
 tests/test_build.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/test_build.py b/tests/test_build.py
index ee01aa9..37a63bd 100644
--- a/tests/test_build.py
+++ b/tests/test_build.py
@@ -64,9 +64,9 @@ def test_other_with_assets(app, check_asset_links):
 
 @pytest.mark.sphinx(testroot="linenos")
 @pytest.mark.skipif(
-    sphinx.version_info[:2] <= (4, 0), reason="Test uses Sphinx 4 code blocks"
+    sphinx.version_info[:2] < (4, 0), reason="Test uses Sphinx 4 code blocks"
 )
-def test_other_With_assets_new_style(app, check_asset_links):
+def test_other_with_assets_new_style(app, check_asset_links):
     check_asset_links(app)