Skip to content

Commit 0e4668c

Browse files
committed
str to int raises ValueError
1 parent 88f2cfa commit 0e4668c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tests/test_conversion.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ def test_uint32_conversion():
343343
ob.UInt32Field = System.UInt32(0)
344344
assert ob.UInt32Field == 0
345345

346-
with pytest.raises(TypeError):
346+
with pytest.raises(ValueError):
347347
ConversionTest().UInt32Field = "spam"
348348

349349
with pytest.raises(TypeError):
@@ -382,7 +382,7 @@ def test_uint64_conversion():
382382
ob.UInt64Field = System.UInt64(0)
383383
assert ob.UInt64Field == 0
384384

385-
with pytest.raises(TypeError):
385+
with pytest.raises(ValueError):
386386
ConversionTest().UInt64Field = "spam"
387387

388388
with pytest.raises(TypeError):

0 commit comments

Comments
 (0)