Skip to content

Commit

Permalink
Fix Python version comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
hagenw committed Jul 1, 2024
1 parent 781b92f commit aaf711d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit aaf711d

Please sign in to comment.