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()
_______________________________________________
pypy-issue mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-issue