Skip to content

Commit dcd27aa

Browse files
authored
pythongh-127146: Emscripten: Don't need to avoid unpaired surrogate anymore (python#136707)
This might have been fixed by pythongh-136624, or by some Emscripten change. In any case, it no longer seems to be needed.
1 parent bde808a commit dcd27aa

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

Lib/test/test_warnings/__init__.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -555,13 +555,7 @@ def test_warn_explicit_non_ascii_filename(self):
555555
with self.module.catch_warnings(record=True) as w:
556556
self.module.resetwarnings()
557557
self.module.filterwarnings("always", category=UserWarning)
558-
filenames = ["nonascii\xe9\u20ac"]
559-
if not support.is_emscripten:
560-
# JavaScript does not like surrogates.
561-
# Invalid UTF-8 leading byte 0x80 encountered when
562-
# deserializing a UTF-8 string in wasm memory to a JS
563-
# string!
564-
filenames.append("surrogate\udc80")
558+
filenames = ["nonascii\xe9\u20ac", "surrogate\udc80"]
565559
for filename in filenames:
566560
try:
567561
os.fsencode(filename)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy