New submission from Alexey Izbyshev <[email protected]>:
Demo:
>>> os.execve('', ['a'], {})
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: [WinError 0] The operation completed successfully: ''
The reason is that path_error() used throughout os module always uses
GetLastError() on Windows, but some functions are implemented via CRT calls
which report errors via errno. It seems that commit 292c83554 caused this issue.
----------
messages: 312446
nosy: izbyshev, vstinner
priority: normal
severity: normal
status: open
title: os: Some functions may report bogus errors on Windows
type: behavior
versions: Python 3.6, Python 3.7
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue32890>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com