Skip to content

Commit

Permalink
Fix ruff/pyupgrade issue (UP024)
Browse files Browse the repository at this point in the history
UP024 Replace aliased errors with `OSError`

https://docs.astral.sh/ruff/rules/os-error-alias/
  • Loading branch information
DimitriPapadopoulos committed Mar 10, 2024
1 parent 38b58a5 commit d68caf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion distutils/tests/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,6 @@ def test_dont_write_bytecode(self):

def test_grok_environment_error(self):
# test obsolete function to ensure backward compat (#4931)
exc = IOError("Unable to find batch file")
exc = OSError("Unable to find batch file")
msg = grok_environment_error(exc)
assert msg == "error: Unable to find batch file"

0 comments on commit d68caf6

Please sign in to comment.