mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
Issue #22834: Drop a redundant comment and use errno instead of an
integer. Thanks to Serhiy Storchaka and Martin Panter for the suggestions.
This commit is contained in:
parent
e2bda9ad68
commit
8004e8577c
1 changed files with 2 additions and 2 deletions
|
|
@ -3,6 +3,7 @@
|
|||
importlib = util.import_importlib('importlib')
|
||||
machinery = util.import_importlib('importlib.machinery')
|
||||
|
||||
import errno
|
||||
import os
|
||||
import sys
|
||||
import tempfile
|
||||
|
|
@ -167,8 +168,7 @@ def test_deleted_cwd(self):
|
|||
with tempfile.TemporaryDirectory() as path:
|
||||
os.chdir(path)
|
||||
except OSError as exc:
|
||||
if exc.errno == 22:
|
||||
# issue #22834
|
||||
if exc.errno == errno.EINVAL:
|
||||
self.skipTest("platform does not allow the deletion of the cwd")
|
||||
raise
|
||||
with util.import_state(path=['']):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue