summaryrefslogtreecommitdiff
path: root/Python/Python-ast.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2012-11-07 00:10:14 +0100
committerVictor Stinner <victor.stinner@gmail.com>2012-11-07 00:10:14 +0100
commit64e039af029fff0edb0a59f8950dc1c64fa8a341 (patch)
tree0df357f3c65a79c7284ffcb85aacff0476b3de5d /Python/Python-ast.c
parent8198f5d58e3ff16b6c201ff3e512cea9bed5a3fc (diff)
downloadcpython-git-64e039af029fff0edb0a59f8950dc1c64fa8a341.tar.gz
Issue #16414: Fix test_os on Windows, don't test os.listdir() with undecodable
With the ANSI code page 932, os.listdir(b'\xe7') return an empty list (instead of failing), whereas os.listdir(b'\xff') raises a FileNotFoundError. It looks like a Windows bug: b'\xe7' directory does not exist, FindFirstFileA(b'\xe7') fails with ERROR_FILE_NOT_FOUND (2), instead of ERROR_PATH_NOT_FOUND (3).
Diffstat (limited to 'Python/Python-ast.c')
0 files changed, 0 insertions, 0 deletions