summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2023-06-08 16:59:19 +0200
committerFlorian Bruhin <me@the-compiler.org>2023-06-08 16:59:19 +0200
commit8b058389b7db591fb52b99fe9f7afbacfeabd901 (patch)
treed3e4cbec5777e20342e1dda3709e1863ed4f5fe5 /tests
parentf80f454704eb362851ed68e835bd363a35e17892 (diff)
downloadqutebrowser-8b058389b7db591fb52b99fe9f7afbacfeabd901.tar.gz
qutebrowser-8b058389b7db591fb52b99fe9f7afbacfeabd901.zip
test: Adjust test_nul_bytes version check
Python 3.11.4 also got the fix backported which turns this into a SyntaxError: https://github.com/python/cpython/pull/104195
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/config/test_configfiles.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/config/test_configfiles.py b/tests/unit/config/test_configfiles.py
index bd35ced4f..a8d406ed5 100644
--- a/tests/unit/config/test_configfiles.py
+++ b/tests/unit/config/test_configfiles.py
@@ -1190,7 +1190,7 @@ class TestConfigPy:
assert len(excinfo.value.errors) == 1
error = excinfo.value.errors[0]
- if sys.version_info >= (3, 12):
+ if sys.version_info >= (3, 11, 4):
assert isinstance(error.exception, SyntaxError)
assert error.text == "Unhandled exception"
assert error.traceback is not None # tested in more detail by test below