Skip to content

Retry: Enable C# parameters of type object accept any argument, passed from Python #889

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Mar 3, 2020
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 ObjectField conversion test
  • Loading branch information
lostmsu committed Feb 27, 2020
commit 0e4b3ad8892f845acdfb692e22ce782396230bd7
9 changes: 4 additions & 5 deletions src/tests/test_conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -595,11 +595,10 @@ def test_object_conversion():

# need to test subclass here

with pytest.raises(TypeError):
class Foo(object):
pass
ob = ConversionTest()
ob.ObjectField = Foo
class Foo(object):
pass
ob.ObjectField = Foo
assert ob.ObjectField == Foo


def test_enum_conversion():
Expand Down