Skip to content

Commit 96f6111

Browse files
committed
Changed expected error message
1 parent bdebad7 commit 96f6111

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ details about the cause of the failure
3030
- `PyObject` now implements `IEnumerable<PyObject>` in addition to `IEnumerable`
3131
- floating point values passed from Python are no longer silently truncated
3232
when .NET expects an integer [#1342][i1342]
33+
- More specific error messages for method argument mismatch
3334

3435
### Fixed
3536

src/embed_tests/TestCallbacks.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public void TestNoOverloadException() {
2525
dynamic callWith42 = PythonEngine.Eval("lambda f: f([42])");
2626
var error = Assert.Throws<PythonException>(() => callWith42(aFunctionThatCallsIntoPython.ToPython()));
2727
Assert.AreEqual("TypeError", error.PythonTypeName);
28-
string expectedArgTypes = "(got type list)";
28+
string expectedArgTypes = "an integer is required";
2929
StringAssert.EndsWith(expectedArgTypes, error.Message);
3030
}
3131
}

0 commit comments

Comments
 (0)