From 7c57085281ded804de1ca7903759797cca4e2853 Mon Sep 17 00:00:00 2001 From: Alvin Lindstam Date: Wed, 15 Jan 2020 21:59:27 +0100 Subject: [PATCH] Improve test check for windows platform `'win' in sys.platform` returns true on MacOS, since it's platform string is `"darwin"`. This was likely not intended, since the check seems to be testing for a windows platform, and was the only test error on a clean master build for me. --- tests/snippets/stdlib_select.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/snippets/stdlib_select.py b/tests/snippets/stdlib_select.py index 989cfd794..fe246db99 100644 --- a/tests/snippets/stdlib_select.py +++ b/tests/snippets/stdlib_select.py @@ -20,7 +20,7 @@ assert_raises(TypeError, select.select, [Almost()], [], []) assert_raises(TypeError, select.select, [], [], [], "not a number") assert_raises(ValueError, select.select, [], [], [], -1) -if "win" in sys.platform: +if sys.platform in ["win32", "cygwin"]: assert_raises(OSError, select.select, [0], [], []) recvr = socket.socket()