From aaf711df65041e310808aa36108578b93c2c3150 Mon Sep 17 00:00:00 2001 From: Hagen Wierstorf Date: Mon, 1 Jul 2024 10:55:53 +0200 Subject: [PATCH] Fix Python version comparison --- tests/test_io.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/test_io.py b/tests/test_io.py index b6b661a..2275de4 100644 --- a/tests/test_io.py +++ b/tests/test_io.py @@ -1525,8 +1525,12 @@ def test_rmdir(tmpdir): # Error message is broken # for newer version of Python 3.12 # under MacOS and Linux - print(f"{sys.version_info=}") - if sys.version_info == (3, 12, 4) and platform.system() != "Windows": + python_version = ( + sys.version_info.major, + sys.version_info.minor, + sys.version_info.micro, + ) + if python_version == (3, 12, 4) and platform.system() != "Windows": error_msg = "None" else: error_msg = "symbolic link"