STINNER Victor added the comment:

> Looking at test.support, the only errors that I can see being ignored by 
> unlink() is FileNotFoundError and NotADirectoryError (line 399)

Oh wait, I was looking at Python 2.7 code:

def unlink(filename):
    try:
        _unlink(filename)
    except OSError:
        pass

So this issuse seems to be specific to Python 2.7.

----------
title: test.support.unlink() should fail or emit a warning on WindowsError: 
[Error 32] The process cannot access the file ... -> [2.7] 
test.support.unlink() should fail or emit a warning on WindowsError: [Error 32] 
The process cannot access the file ...
versions: +Python 2.7 -Python 3.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30265>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to