diff --git a/idelib/schemata/mide_ide.xml b/idelib/schemata/mide_ide.xml index 4f420d4..42d7ce4 100644 --- a/idelib/schemata/mide_ide.xml +++ b/idelib/schemata/mide_ide.xml @@ -97,7 +97,9 @@ WiSpi API Level for network co-processor Network Co-Processor Application Firmware Version Indicates the version of the key table, 0 if not present - Present in the device's DEVINFO if it supports control via serial + Present in the device's DEVINFO if it supports control via serial + Bytes to be escaped during command packet encoding (in addition to the standard HDLC break and HDLC escape characters) + Element in the device's DEVINFO indicating it supports control via the COMMAND and RESPONSE files. 0 is unsupported, 1 is supported; assumed to be 1 if not present. diff --git a/testing/test_dataset.py b/testing/test_dataset.py index a2ab54b..58cbd57 100644 --- a/testing/test_dataset.py +++ b/testing/test_dataset.py @@ -34,7 +34,7 @@ from idelib import importer from idelib import parsers -from testing.utils import nullcontext +from contextlib import nullcontext from .file_streams import makeStreamLike @@ -1711,7 +1711,7 @@ def testGetValueAt(self, testIDE, at, raises): expected = np.zeros([4]) expected[0] = at for i in range(1, 4): - expected[i] = np.interp([at], vals[0], vals[i]) + expected[i] = np.interp([at], vals[0], vals[i])[0] else: expected = None diff --git a/testing/test_matfile.py b/testing/test_matfile.py index d455e47..62ba3d3 100644 --- a/testing/test_matfile.py +++ b/testing/test_matfile.py @@ -32,7 +32,7 @@ from idelib import parsers from idelib import matfile -from testing.utils import nullcontext +from contextlib import nullcontext from .file_streams import makeStreamLike diff --git a/testing/utils.py b/testing/utils.py deleted file mode 100644 index 4297468..0000000 --- a/testing/utils.py +++ /dev/null @@ -1,9 +0,0 @@ -class nullcontext: - """ A replacement for `contextlib.nullcontext` for python versions before 3.7 - """ - - def __enter__(self): - pass - - def __exit__(self, exc_type, exc_val, exc_tb): - pass