-
Notifications
You must be signed in to change notification settings - Fork 636
udp_multicast interface: support windows #1914
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 8 commits
f2a3274
6c896eb
0e589dc
55e1a3d
0b72ca3
a25212e
ed0ff87
6d6ed34
364183a
e690279
28d6282
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,7 @@ | |
IS_PYPY, | ||
IS_TRAVIS, | ||
IS_UNIX, | ||
IS_WINDOWS, | ||
TEST_CAN_FD, | ||
TEST_INTERFACE_SOCKETCAN, | ||
) | ||
|
@@ -303,8 +304,8 @@ class BasicTestSocketCan(Back2BackTestCase): | |
# this doesn't even work on Travis CI for macOS; for example, see | ||
# https://travis-ci.org/github/hardbyte/python-can/jobs/745389871 | ||
@unittest.skipUnless( | ||
IS_UNIX and not (IS_CI and IS_OSX), | ||
"only supported on Unix systems (but not on macOS at Travis CI and GitHub Actions)", | ||
(IS_UNIX and not (IS_CI and IS_OSX)) or IS_WINDOWS, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You can replace this with |
||
"only supported on Unix and Windows systems (but not on macOS at Travis CI and GitHub Actions)", | ||
) | ||
class BasicTestUdpMulticastBusIPv4(Back2BackTestCase): | ||
INTERFACE_1 = "udp_multicast" | ||
|
@@ -320,8 +321,8 @@ def test_unique_message_instances(self): | |
# this doesn't even work for loopback multicast addresses on Travis CI; for example, see | ||
# https://travis-ci.org/github/hardbyte/python-can/builds/745065503 | ||
@unittest.skipUnless( | ||
IS_UNIX and not (IS_TRAVIS or (IS_CI and IS_OSX)), | ||
"only supported on Unix systems (but not on Travis CI; and not on macOS at GitHub Actions)", | ||
(IS_UNIX and not (IS_TRAVIS or (IS_CI and IS_OSX))) or IS_WINDOWS, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here, we're not using Travis anymore anyway. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The comment suggests skipping the UdpMulticast tests on macOS was necessary because of an issue with Travis CI. However, the tests may well work in the .github/workflow macOS environment, and skipping them is no longer necessary. Would you agree this is worth a test? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, that might work. There's still a formatting issue, use black to fix it. |
||
"only supported on Unix and Windows systems (but not on Travis CI; and not on macOS at GitHub Actions)", | ||
) | ||
class BasicTestUdpMulticastBusIPv6(Back2BackTestCase): | ||
HOST_LOCAL_MCAST_GROUP_IPv6 = "ff11:7079:7468:6f6e:6465:6d6f:6d63:6173" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could cause an AttributeError on Linux. You could redefine WSAEINVAL as a module constant.