mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
bpo-43950: Add option to opt-out of PEP-657 (GH-27023)
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> Co-authored-by: Batuhan Taskaya <batuhanosmantaskaya@gmail.com> Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
This commit is contained in:
parent
3d3027c5fc
commit
4823d9a512
18 changed files with 276 additions and 64 deletions
|
@ -2808,10 +2808,12 @@ out of the binary module.
|
|||
|
||||
try:
|
||||
os.fsencode("foo-bär@baz.py")
|
||||
supports_unicode = True
|
||||
except UnicodeEncodeError:
|
||||
# Skip the test: the filesystem encoding is unable to encode the filename
|
||||
pass
|
||||
else:
|
||||
supports_unicode = False
|
||||
|
||||
if supports_unicode and not support.has_no_debug_ranges():
|
||||
def test_unicode(): """
|
||||
Check doctest with a non-ascii filename:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue