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
This commit is contained in:
Florian Bruhin 2023-06-08 16:59:19 +02:00
parent f80f454704
commit 8b058389b7
1 changed files with 1 additions and 1 deletions

View File

@ -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