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:
parent
f80f454704
commit
8b058389b7
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue