changeset: 94775:38c503c2c066 user: Brett Cannon date: Fri Feb 27 12:13:35 2015 -0500 files: Lib/test/test_importlib/import_/test_path.py description: Issue #22834: Drop a redundant comment and use errno instead of an integer. Thanks to Serhiy Storchaka and Martin Panter for the suggestions. diff -r 3708585125b8 -r 38c503c2c066 Lib/test/test_importlib/import_/test_path.py --- a/Lib/test/test_importlib/import_/test_path.py Fri Feb 27 17:49:19 2015 +0100 +++ b/Lib/test/test_importlib/import_/test_path.py Fri Feb 27 12:13:35 2015 -0500 @@ -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=['']):