From 7ce02d999923a1d5eb3cbb45497fe92be09d50e7 Mon Sep 17 00:00:00 2001 From: Jon Parise Date: Tue, 16 Oct 2018 15:29:44 -0700 Subject: [PATCH] Skip fileno-reading test on macOS (darwin) Like Windows, this test also isn't appropriate for macOS (darwin) under Python 3 (although it did work until Python 2.7). --- tests/test_future/test_urllibnet.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_future/test_urllibnet.py b/tests/test_future/test_urllibnet.py index f5f59875..854781ab 100644 --- a/tests/test_future/test_urllibnet.py +++ b/tests/test_future/test_urllibnet.py @@ -109,7 +109,8 @@ def test_getcode(self): # On Windows, socket handles are not file descriptors; this # test can't pass on Windows. - @unittest.skipIf(sys.platform in ('win32',), 'not appropriate for Windows') + @unittest.skipIf(sys.platform in ('darwin', 'win32'), + 'not appropriate for macOS or Windows') @skip26 def test_fileno(self): # Make sure fd returned by fileno is valid.