3bd12a8
From ce36c78e7b97a06ec0ea0737e4c418217e0489af Mon Sep 17 00:00:00 2001
3bd12a8
From: Karolina Surma <33810531+befeleme@users.noreply.github.com>
3bd12a8
Date: Thu, 5 Aug 2021 11:40:23 +0200
3bd12a8
Subject: [PATCH] Fix test_other_with_assets_new_style w/Sphinx 4.0
3bd12a8
3bd12a8
Make the test work with Sphinx 4.0.x.
3bd12a8
Fix the typo so that the regression file is actually found.
3bd12a8
---
3bd12a8
 tests/test_build.py | 4 ++--
3bd12a8
 1 file changed, 2 insertions(+), 2 deletions(-)
3bd12a8
3bd12a8
diff --git a/tests/test_build.py b/tests/test_build.py
3bd12a8
index ee01aa9..37a63bd 100644
3bd12a8
--- a/tests/test_build.py
3bd12a8
+++ b/tests/test_build.py
3bd12a8
@@ -64,9 +64,9 @@ def test_other_with_assets(app, check_asset_links):
3bd12a8
 
3bd12a8
 @pytest.mark.sphinx(testroot="linenos")
3bd12a8
 @pytest.mark.skipif(
3bd12a8
-    sphinx.version_info[:2] <= (4, 0), reason="Test uses Sphinx 4 code blocks"
3bd12a8
+    sphinx.version_info[:2] < (4, 0), reason="Test uses Sphinx 4 code blocks"
3bd12a8
 )
3bd12a8
-def test_other_With_assets_new_style(app, check_asset_links):
3bd12a8
+def test_other_with_assets_new_style(app, check_asset_links):
3bd12a8
     check_asset_links(app)
3bd12a8
 
3bd12a8