summaryrefslogtreecommitdiff
path: root/tests/conftest.py
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2020-07-03 13:25:25 +0200
committerFlorian Bruhin <me@the-compiler.org>2020-07-03 18:55:46 +0200
commitf861336496eb09f941a710c8f4cfb445fd56ccae (patch)
tree5ed7a00f911b0c76c20016f0d1a3e5636662f7b4 /tests/conftest.py
parent9b55bb2f497a693112bafcf82bf05111b02cc251 (diff)
downloadqutebrowser-f861336496eb09f941a710c8f4cfb445fd56ccae.tar.gz
qutebrowser-f861336496eb09f941a710c8f4cfb445fd56ccae.zip
tests: Disable yaml.CLoader check for nightly Python
Diffstat (limited to 'tests/conftest.py')
-rw-r--r--tests/conftest.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index 32a3144c5..356245929 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -292,8 +292,12 @@ def apply_fake_os(monkeypatch, request):
@pytest.fixture(scope='session', autouse=True)
def check_yaml_c_exts():
- """Make sure PyYAML C extensions are available on CI."""
- if 'CI' in os.environ:
+ """Make sure PyYAML C extensions are available on CI.
+
+ Not available yet with a nightly Python, see:
+ https://github.com/yaml/pyyaml/issues/416
+ """
+ if 'CI' in os.environ and sys.version_info[:2] != (3, 10):
from yaml import CLoader