Skip to content

Commit 668df4b

Browse files
committed
Fix python2 crash due to PEP 3151 OSError exception restructure.
1 parent 8125700 commit 668df4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pytest_nodev/blacklists.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
# python 2 support via python-future
3333
from __future__ import unicode_literals
34-
from builtins import open, FileNotFoundError
34+
from builtins import open
3535

3636

3737
MODULE_BLACKLIST = [
@@ -153,5 +153,5 @@
153153
try:
154154
with open('object_blacklist.txt') as fp:
155155
OBJECT_BLACKLIST += [line.rstrip('\n') for line in fp if line.strip()]
156-
except FileNotFoundError:
156+
except IOError:
157157
pass

0 commit comments

Comments
 (0)