We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dfe8c4b + 1156b29 commit cff3535Copy full SHA for cff3535
test.py
@@ -34,6 +34,7 @@
34
import sys
35
import unittest
36
import threading
37
+import errno
38
39
import filelock
40
@@ -82,16 +83,20 @@ def setUp(self):
82
83
"""Deletes the potential lock file at :attr:`LOCK_PATH`."""
84
try:
85
os.remove(self.LOCK_PATH)
- except FileNotFoundError:
86
- pass
+ except OSError as e:
87
+ # FileNotFound
88
+ if e.errno != errno.ENOENT:
89
+ raise
90
return None
91
92
def tearDown(self):
93
94
95
- except OSError:
96
97
98
99
100
101
102
def test_simple(self):
0 commit comments