Skip to content

Commit ed0ff87

Browse files
committed
enable udp_multicast back2back tests on windows
1 parent a25212e commit ed0ff87

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

test/back2back_test.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
IS_PYPY,
2222
IS_TRAVIS,
2323
IS_UNIX,
24+
IS_WINDOWS,
2425
TEST_CAN_FD,
2526
TEST_INTERFACE_SOCKETCAN,
2627
)
@@ -303,8 +304,8 @@ class BasicTestSocketCan(Back2BackTestCase):
303304
# this doesn't even work on Travis CI for macOS; for example, see
304305
# https://travis-ci.org/github/hardbyte/python-can/jobs/745389871
305306
@unittest.skipUnless(
306-
IS_UNIX and not (IS_CI and IS_OSX),
307-
"only supported on Unix systems (but not on macOS at Travis CI and GitHub Actions)",
307+
(IS_UNIX and not (IS_CI and IS_OSX)) or IS_WINDOWS,
308+
"only supported on Unix and Windows systems (but not on macOS at Travis CI and GitHub Actions)",
308309
)
309310
class BasicTestUdpMulticastBusIPv4(Back2BackTestCase):
310311
INTERFACE_1 = "udp_multicast"
@@ -320,8 +321,8 @@ def test_unique_message_instances(self):
320321
# this doesn't even work for loopback multicast addresses on Travis CI; for example, see
321322
# https://travis-ci.org/github/hardbyte/python-can/builds/745065503
322323
@unittest.skipUnless(
323-
IS_UNIX and not (IS_TRAVIS or (IS_CI and IS_OSX)),
324-
"only supported on Unix systems (but not on Travis CI; and not on macOS at GitHub Actions)",
324+
(IS_UNIX and not (IS_TRAVIS or (IS_CI and IS_OSX))) or IS_WINDOWS,
325+
"only supported on Unix and Windows systems (but not on Travis CI; and not on macOS at GitHub Actions)",
325326
)
326327
class BasicTestUdpMulticastBusIPv6(Back2BackTestCase):
327328
HOST_LOCAL_MCAST_GROUP_IPv6 = "ff11:7079:7468:6f6e:6465:6d6f:6d63:6173"

0 commit comments

Comments
 (0)