Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e2f4b4 commit 41f0124Copy full SHA for 41f0124
1 file changed
Lib/test/test_warnings/__init__.py
@@ -555,13 +555,7 @@ def test_warn_explicit_non_ascii_filename(self):
555
with self.module.catch_warnings(record=True) as w:
556
self.module.resetwarnings()
557
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")
+ filenames = ["nonascii\xe9\u20ac", "surrogate\udc80"]
565
for filename in filenames:
566
try:
567
os.fsencode(filename)
0 commit comments