From faf149bfaf33db7cd47d06cc8d8e546b52fb9371 Mon Sep 17 00:00:00 2001 From: Simon Mutch Date: Wed, 22 Nov 2023 14:33:14 +1100 Subject: [PATCH] :tv: attempt to fix python 3.8 errors in CI --- tests/conftest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/conftest.py b/tests/conftest.py index 84f4f37..fc1d315 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,3 +1,4 @@ +import sys from pathlib import Path import pytest @@ -13,7 +14,7 @@ @pytest.fixture(scope='session') def rootdir(): - if sphinx.version_info[0] < 7: + if sphinx.version_info[0] < 7 or sys.version_info < (3, 9): return sphinx.testing.path.path(__file__).parent.abspath() / 'roots' return (Path(__file__).parent / 'roots').resolve()