Skip to content

Commit bb76ce3

Browse files
committed
Test core functions without importing EV3 module
Importing the EV3 module attempts to register LEDs, which fails in the test environment.
1 parent def9738 commit bb76ce3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/api_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from populate_arena import populate_arena
1010
from clean_arena import clean_arena
1111

12-
import ev3dev.ev3 as ev3
12+
import ev3dev.core as ev3
1313

1414
ev3.Device.DEVICE_ROOT_PATH = os.path.join(FAKE_SYS, 'arena')
1515

0 commit comments

Comments
 (0)