8000 fixed MarshallerOverride test · pythonnet/pythonnet@91c8787 · GitHub
[go: up one dir, main page]

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

Appearance settings

Commit 91c8787

Browse files
committed
fixed MarshallerOverride test
1 parent 3bfdef2 commit 91c8787

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/embed_tests/TestCustomArgMarshal.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,13 @@ class CustomArgMarshaling {
4646
public virtual void CallWithInt 88FD (int value) => this.LastArgument = value;
4747
}
4848

49-
// this should override original custom marshaling behavior
49+
// this should override original custom marshaling behavior for any new methods
5050
[PyArgConverter(typeof(CustomArgConverter2))]
51-
class DerivedMarshaling: CustomArgMarshaling { }
51+
class DerivedMarshaling : CustomArgMarshaling {
52+
public override void CallWithInt(int value) {
53+
base.CallWithInt(value);
54+
}
55+
}
5256

5357
class CustomArgConverter : DefaultPyArgumentConverter {
5458
public override bool TryConvertArgument(IntPtr pyarg, Type parameterType, bool needsResolution,

0 commit comments

Comments
 (0)
0