Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1f17526

Browse files
committed
fixed ObjectField conversion test
1 parent 2cb16fe commit 1f17526

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/tests/test_conversion.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -595,11 +595,10 @@ def test_object_conversion():
595595

596596
# need to test subclass here
597597

598-
with pytest.raises(TypeError):
599-
class Foo(object):
600-
pass
601-
ob = ConversionTest()
602-
ob.ObjectField = Foo
598+
class Foo(object):
599+
pass
600+
ob.ObjectField = Foo
601+
assert ob.ObjectField == Foo
603602

604603

605604
def test_enum_conversion():

0 commit comments

Comments
 (0)