File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ details about the cause of the failure
30
30
- ` PyObject ` now implements ` IEnumerable<PyObject> ` in addition to ` IEnumerable `
31
31
- floating point values passed from Python are no longer silently truncated
32
32
when .NET expects an integer [ #1342 ] [ i1342 ]
33
+ - More specific error messages for method argument mismatch
33
34
34
35
### Fixed
35
36
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ public void TestNoOverloadException() {
25
25
dynamic callWith42 = PythonEngine . Eval ( "lambda f: f([42])" ) ;
26
26
var error = Assert . Throws < PythonException > ( ( ) => callWith42 ( aFunctionThatCallsIntoPython . ToPython ( ) ) ) ;
27
27
Assert . AreEqual ( "TypeError" , error . PythonTypeName ) ;
28
- string expectedArgTypes = "(got type list) " ;
28
+ string expectedArgTypes = "an integer is required " ;
29
29
StringAssert . EndsWith ( expectedArgTypes , error . Message ) ;
30
30
}
31
31
}
You can’t perform that action at this time.
0 commit comments