Skip to content

Commit 3208bd2

Browse files
committed
added regression test for #1427
(stack overflow trying to pass `System.Type` to `CanEncode`)
1 parent a2304dc commit 3208bd2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_conversion.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -711,6 +711,9 @@ def CanEncode(self, clr_type):
711711
list_raw_encoder = ListAsRawEncoder()
712712
PyObjectConversions.RegisterEncoder(list_raw_encoder)
713713

714+
# regression for https://github.com/pythonnet/pythonnet/issues/1427
715+
system_type = list_raw_encoder.GetType()
716+
714717
ob = ConversionTest()
715718

716719
l = ob.ListField

0 commit comments

Comments
 (0)