summaryrefslogtreecommitdiff
path: root/Lib/test/test_runpy.py
diff options
context:
space:
mode:
authorNed Deily <nad@acm.org>2013-02-11 22:10:59 -0800
committerNed Deily <nad@acm.org>2013-02-11 22:10:59 -0800
commitaa1e1a2755ea822ac32dc807423ada58d761686d (patch)
treeb440811619cbc0932a6b1b6740b997f83ea3ea1e /Lib/test/test_runpy.py
parentc114cc86846c77a0a9e1d44a4a84346f611090b2 (diff)
downloadcpython-git-aa1e1a2755ea822ac32dc807423ada58d761686d.tar.gz
Issue #17111: Prevent test_surrogates (test_fileio) failure on OS X 10.4.
An odd bug in OS X 10.4 causes open(2) on a non-existent, invalid-encoded filename to return errno 22, EINVAL: Invalid argument, instead of the expected errno 2, ENOENT: No such file or directory, *if* the containing directory is not empty. That caused frequent failures when running the buildbot tests on 10.4 depending on the state of the test working directory. The failure is easy to reproduce on 10.4 by running the test directly (not with regrtest), first in an empty directory, then after adding a file to it. The fix is to check for and pass if either errno is returned.
Diffstat (limited to 'Lib/test/test_runpy.py')
0 files changed, 0 insertions, 0 deletions