Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixed missing __namespace__ in C#-derived Python type
  • Loading branch information
lostmsu committed Apr 23, 2020
commit 25fe10274404dd8974e0855c7a43fb14c0888f18
1 change: 1 addition & 0 deletions src/tests/test_conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,7 @@ def test_sbyte_array_conversion():
def test_codecs():
"""Test codec registration from Python"""
class ListAsRawEncoder(RawProxyEncoder):
__namespace__ = "Python.Test"
def CanEncode(self, clr_type):
return clr_type.Name == "List`1" and clr_type.Namespace == "System.Collections.Generic"

Expand Down