Skip to content

Commit cb1a787

Browse files
author
Dan Davis
committed
Fix pypa#7280 - another attempt to satisfy older versions of Python
- IOError persists as an issue in Python 2.7.17 on win32
1 parent fc5450f commit cb1a787

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/lib/filesystem.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ def external_file_opener(conn):
7070
lock_action(f)
7171
elif action == 'noread':
7272
make_unreadable_file(path)
73-
except (IOError, OSError):
73+
# IOError *is* OSError in modern Python
74+
except IOError:
7475
traceback.print_exc(None, sys.stderr)
7576

7677
# Indicate the file is opened

0 commit comments

Comments
 (0)