From 8b058389b7db591fb52b99fe9f7afbacfeabd901 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 8 Jun 2023 16:59:19 +0200 Subject: 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 --- tests/unit/config/test_configfiles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-54-g00ecf