]> granicus.if.org Git - python/commitdiff
[3.6] bpo-31380: Skip test_httpservers test_undecodable_file on macOS. (GH-4720)...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 5 Dec 2017 05:03:29 +0000 (21:03 -0800)
committerNed Deily <nad@python.org>
Tue, 5 Dec 2017 05:03:29 +0000 (00:03 -0500)
The undecodable file name cannot be created on macOS APFS file systems.
(cherry picked from commit b3edde8dd44c878e9f039a2165d00ff075157d4b)

Lib/test/test_httpservers.py
Misc/NEWS.d/next/Tests/2017-12-04-23-19-16.bpo-31380.VlMmHW.rst [new file with mode: 0644]

index 22b3bf5235c4173d44f8d98afeac856792e0f798..66e937e04b608deb882fb64c0f7a1faafbe7cc1b 100644 (file)
@@ -370,7 +370,8 @@ class SimpleHTTPServerTestCase(BaseTestCase):
         reader.close()
         return body
 
-    @support.requires_mac_ver(10, 5)
+    @unittest.skipIf(sys.platform == 'darwin',
+                     'undecodable name cannot always be decoded on macOS')
     @unittest.skipIf(sys.platform == 'win32',
                      'undecodable name cannot be decoded on win32')
     @unittest.skipUnless(support.TESTFN_UNDECODABLE,
diff --git a/Misc/NEWS.d/next/Tests/2017-12-04-23-19-16.bpo-31380.VlMmHW.rst b/Misc/NEWS.d/next/Tests/2017-12-04-23-19-16.bpo-31380.VlMmHW.rst
new file mode 100644 (file)
index 0000000..2baecf5
--- /dev/null
@@ -0,0 +1 @@
+Skip test_httpservers test_undecodable_file on macOS: fails on APFS.