Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Prev Previous commit
Next Next commit
str to int raises ValueError
  • Loading branch information
amos402 committed Jul 29, 2020
commit 0e4668cfcf0de1f040b627fdc0fc456315233c87
4 changes: 2 additions & 2 deletions src/tests/test_conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ def test_uint32_conversion():
ob.UInt32Field = System.UInt32(0)
assert ob.UInt32Field == 0

with pytest.raises(TypeError):
with pytest.raises(ValueError):
ConversionTest().UInt32Field = "spam"

with pytest.raises(TypeError):
Expand Down Expand Up @@ -382,7 +382,7 @@ def test_uint64_conversion():
ob.UInt64Field = System.UInt64(0)
assert ob.UInt64Field == 0

with pytest.raises(TypeError):
with pytest.raises(ValueError):
ConversionTest().UInt64Field = "spam"

with pytest.raises(TypeError):
Expand Down