[pypy-issue] Issue #2548: pypy3 returns inappropriate errno for utime of a nonexistent file (pypy/pypy)
strombrg
issues-reply at bitbucket.org
Sat Apr 29 20:14:42 EDT 2017
New issue 2548: pypy3 returns inappropriate errno for utime of a nonexistent file
https://bitbucket.org/pypy/pypy/issues/2548/pypy3-returns-inappropriate-errno-for
strombrg:
For the following test script, the 2 pypy3's return errno 25. They probably should return errno 2, like the others tested.
Thanks much for pypy!
#!/usr/local/pypy3-5.7.1/bin/pypy3
#!/usr/local/pypy3-5.5.0/bin/pypy3
#!/usr/local/cpython-2.7/bin/python
#!/usr/local/pypy-5.3.1/bin/pypy
#!/usr/local/jython-2.7.0/bin/jython
#!/usr/local/cpython-3.6/bin/python3
import os
import sys
def main():
try:
os.utime('nonexistent', None)
# except (OSError, IOError):
except OSError:
dummy, errno, dummy = sys.exc_info()
print(errno)
print('hi')
main()
More information about the pypy-issue
mailing list