[Python-checkins] cpython: Issue #22834: Drop a redundant comment and use errno instead of an
brett.cannon
python-checkins at python.org
Fri Feb 27 18:13:55 CET 2015
https://hg.python.org/cpython/rev/38c503c2c066
changeset: 94775:38c503c2c066
user: Brett Cannon <brett at python.org>
date: Fri Feb 27 12:13:35 2015 -0500
summary:
Issue #22834: Drop a redundant comment and use errno instead of an
integer.
Thanks to Serhiy Storchaka and Martin Panter for the suggestions.
files:
Lib/test/test_importlib/import_/test_path.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Lib/test/test_importlib/import_/test_path.py b/Lib/test/test_importlib/import_/test_path.py
--- a/Lib/test/test_importlib/import_/test_path.py
+++ b/Lib/test/test_importlib/import_/test_path.py
@@ -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 @@
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=['']):
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list