From 6c1b25101b75deef390a1232b2a7343292af268f Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Wed, 25 Jul 2018 11:07:57 -0400 Subject: [PATCH] Fix some tests --- .../patches/dont-test-undecodable-filenames.patch | 13 +++++++++++++ test/python_tests.txt | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 cpython/patches/dont-test-undecodable-filenames.patch diff --git a/cpython/patches/dont-test-undecodable-filenames.patch b/cpython/patches/dont-test-undecodable-filenames.patch new file mode 100644 index 000000000..544d050bd --- /dev/null +++ b/cpython/patches/dont-test-undecodable-filenames.patch @@ -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: diff --git a/test/python_tests.txt b/test/python_tests.txt index f2e7085b8..a182b4485 100644 --- a/test/python_tests.txt +++ b/test/python_tests.txt @@ -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