We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3770e5c commit c9ab4eaCopy full SHA for c9ab4ea
2 files changed
src/testing/methodtest.cs
@@ -151,6 +151,16 @@ public static string TestOverloadedObjectTwo(object a, object b)
151
return "Got object-object";
152
}
153
154
+ public static string TestOverloadedObjectThree(object a, int b)
155
+ {
156
+ return "Got object-int";
157
+ }
158
+
159
+ public static string TestOverloadedObjectThree(int a, object b)
160
161
+ return "Got int-object";
162
163
164
public static bool TestStringOutParams(string s, out string s1)
165
{
166
s1 = "output string";
src/tests/test_method.py
@@ -806,3 +806,10 @@ def test_object_in_multiparam():
806
807
res = MethodTest.TestOverloadedObjectTwo("foo", "bar")
808
assert res == "Got object-object"
809
810
811
+def test_object_in_multiparam_exception():
812
+ """Test method with object multiparams behaves"""
813
814
+ with pytest.raises(TypeError):
815
+ MethodTest.TestOverloadedObjectThree("foo", "bar")
0 commit comments