Skip to content

Commit 9b7c418

Browse files
[3.14] gh-127146: Emscripten: Don't need to avoid unpaired surrogate anymore (GH-136707) (#136717)
This might have been fixed by gh-136624, or by some Emscripten change. In any case, it no longer seems to be needed. (cherry picked from commit dcd27aa) Co-authored-by: Hood Chatham <[email protected]>
1 parent 4eee754 commit 9b7c418

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)