Skip to content

Commit 3c7e2cc

Browse files
committed
V4.0 Python fix test
1 parent 813a24e commit 3c7e2cc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

binding/python/test_rhino.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
from parameterized import parameterized
1616

17-
from _rhino import Rhino, RhinoError
17+
from _rhino import Rhino, RhinoError, list_hardware_devices
1818
from test_util import *
1919

2020
within_context_parameters, out_of_context_parameters = load_test_data()
@@ -109,7 +109,9 @@ def test_reset(self):
109109
self.assertTrue(inference.is_understood)
110110

111111
def test_available_devices(self) -> None:
112-
res = list_hardware_devices(library_path=default_library_path("../.."))
112+
relative_path = '../..'
113+
114+
res = list_hardware_devices(library_path=pv_library_path(relative_path))
113115
self.assertGreater(len(res), 0)
114116
for x in res:
115117
self.assertIsInstance(x, str)

0 commit comments

Comments
 (0)