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.
This commit is contained in:
Alvin Lindstam committed 2020-01-15 21:59:27 +01:00
1 parent c07e9323bc
commit 7c57085281
1 file changed
+1 -1
+1 -1
View File
@@ -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()