Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0e4668c

Browse files
committed
str to int raisesValueError
1 parent88f2cfa commit0e4668c

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
assertob.UInt32Field==0
345345

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

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

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

388388
withpytest.raises(TypeError):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp