We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83a20eb commit 6e3b8b3Copy full SHA for 6e3b8b3
test/test_interface_ixxat.py
@@ -51,6 +51,18 @@ def setUp(self):
51
raise unittest.SkipTest("not available on this platform")
52
53
def test_bus_creation(self):
54
+ try:
55
+ configs = can.detect_available_configs("ixxat")
56
+ if configs:
57
+ for interface_kwargs in configs:
58
+ bus = can.Bus(**interface_kwargs)
59
+ bus.shutdown()
60
+ else:
61
+ raise unittest.SkipTest("No adapters were detected")
62
+ except can.CanInterfaceNotImplementedError:
63
+ raise unittest.SkipTest("not available on this platform")
64
+
65
+ def test_bus_creation_incorrect_channel(self):
66
# non-existent channel -> use arbitrary high value
67
with self.assertRaises(can.CanInitializationError):
68
can.Bus(interface="ixxat", channel=0xFFFF)
0 commit comments