mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
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:
1 parent
c07e9323bc
commit
7c57085281
1 file changed
+1
-1
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user