mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
TESTFN_UNDECODABLE, TESTFN_NONASCII of test.support from Python 3.4. Backport tests on non-ASCII paths.
This commit is contained in:
commit
269b3ce400
3 changed files with 18 additions and 15 deletions
|
@ -710,6 +710,9 @@ for name in (
|
|||
b'\xae\xd5'
|
||||
# undecodable from UTF-8 (UNIX and Mac OS X)
|
||||
b'\xed\xb2\x80', b'\xed\xb4\x80',
|
||||
# undecodable from shift_jis, cp869, cp874, cp932, cp1250, cp1251, cp1252,
|
||||
# cp1253, cp1254, cp1255, cp1257, cp1258
|
||||
b'\x81\x98',
|
||||
):
|
||||
try:
|
||||
name.decode(TESTFN_ENCODING)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue