[New-bugs-announce] [issue32890] os: Some functions may report bogus errors on Windows
Alexey Izbyshev
report at bugs.python.org
Tue Feb 20 18:54:16 EST 2018
New submission from Alexey Izbyshev <izbyshev at ispras.ru>:
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 <report at bugs.python.org>
<https://bugs.python.org/issue32890>
_______________________________________
More information about the New-bugs-announce
mailing list