Skip to content

Commit 417ace5

Browse files
committed
missing import
1 parent cb00c3b commit 417ace5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/test_eds.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from configparser import RawConfigParser
44

55
import canopen
6-
from canopen.objectdictionary.eds import _signed_int_from_hex
6+
from canopen.objectdictionary.eds import _signed_int_from_hex, build_variable
77
from canopen.utils import pretty_index
88

99
from .util import DATATYPES_EDS, SAMPLE_EDS, tmp_file
@@ -190,7 +190,7 @@ def test_build_variable_range_warnings(self):
190190
eds.read(DATATYPES_EDS)
191191
eds[index][option] = value
192192
with self.assertLogs(level="WARN") as cm:
193-
build_variable(eds, index, 42, objectcodes.VAR, int(index, 16))
193+
build_variable(eds, index, node_id=42, object_type=7, index=int(index, 16))
194194
self.assertRegex(cm.output[0], option)
195195

196196
def test_array_compact_subobj(self):

0 commit comments

Comments
 (0)