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

Skip to content

Commit f1a50b8

Browse files
Fix failing 'test_double_conversion' test
Fix incorrect part of 'test_double_conversion' test in test_conversion.py. An 'OverflowError' was expected for valid values, which represent Python 'inf' and '-inf'. The problem was identified with support of conversion for Python 'inf' and '-inf' to .NET System.Double PositiveInfinity and NegativeInfinity. See also: #487.
1 parent a9c3d8b commit f1a50b8

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/tests/test_conversion.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -466,17 +466,6 @@ def test_double_conversion():
466466
with pytest.raises(TypeError):
467467
ConversionTest().DoubleField = None
468468

469-
with pytest.raises(OverflowError):
470-
ConversionTest().DoubleField = 1.7976931348623159e308
471-
472-
with pytest.raises(OverflowError):
473-
ConversionTest().DoubleField = -1.7976931348623159e308
474-
475-
with pytest.raises(OverflowError):
476-
_ = System.Double(1.7976931348623159e308)
477-
478-
with pytest.raises(OverflowError):
479-
_ = System.Double(-1.7976931348623159e308)
480469

481470

482471
def test_decimal_conversion():

0 commit comments

Comments
 (0)