Fix some tests

This commit is contained in:
Michael Droettboom 2018-07-25 11:07:57 -04:00
parent 73934a3f44
commit 6c1b25101b
2 changed files with 14 additions and 1 deletions

View File

@ -0,0 +1,13 @@
diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py
index ddcd2cc387..f422f2feb6 100644
--- a/Lib/test/support/__init__.py
+++ b/Lib/test/support/__init__.py
@@ -880,6 +880,8 @@ if os.name == 'nt':
'Unicode filename tests may not be effective'
% (TESTFN_UNENCODABLE, TESTFN_ENCODING))
TESTFN_UNENCODABLE = None
+elif sys.platform == 'emscripten':
+ pass
# Mac OS X denies unencodable filenames (invalid utf-8)
elif sys.platform != 'darwin':
try:

View File

@ -295,7 +295,7 @@ test_lzma
test_macpath platform-specific
test_macurl2path
test_mailbox crash
test_mailcap
test_mailcap nonsense
test_marshal
test_math floating-point
test_memoryio