Skip to content

Commit 8b05838

Browse files
committed
test: Adjust test_nul_bytes version check
Python 3.11.4 also got the fix backported which turns this into a SyntaxError: python/cpython#104195
1 parent f80f454 commit 8b05838

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/unit/config/test_configfiles.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1190,7 +1190,7 @@ def test_nul_bytes(self, confpy):
11901190
assert len(excinfo.value.errors) == 1
11911191
error = excinfo.value.errors[0]
11921192

1193-
if sys.version_info >= (3, 12):
1193+
if sys.version_info >= (3, 11, 4):
11941194
assert isinstance(error.exception, SyntaxError)
11951195
assert error.text == "Unhandled exception"
11961196
assert error.traceback is not None # tested in more detail by test below

0 commit comments

Comments
 (0)