diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/test_binmap.py b/tests/test_binmap.py index 9f136b7..7d494d7 100644 --- a/tests/test_binmap.py +++ b/tests/test_binmap.py @@ -109,11 +109,11 @@ def test_value_bounds(self): t = Temp() with pytest.raises(struct.error) as excinfo: t.temp = 256 - assert "ubyte format requires 0 <= number <= 255" in str(excinfo) + assert "format requires 0 <= number <= 255" in str(excinfo) with pytest.raises(struct.error) as excinfo: t.temp = -1 - assert "ubyte format requires 0 <= number <= 255" in str(excinfo) + assert "format requires 0 <= number <= 255" in str(excinfo) def test_compare_equal(self): t1 = Temp(temp=10)