Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad36031 commit 0e4b3adCopy full SHA for 0e4b3ad
1 file changed
src/tests/test_conversion.py
@@ -595,11 +595,10 @@ def test_object_conversion():
595
596
# need to test subclass here
597
598
- with pytest.raises(TypeError):
599
- class Foo(object):
600
- pass
601
- ob = ConversionTest()
602
- ob.ObjectField = Foo
+ class Foo(object):
+ pass
+ ob.ObjectField = Foo
+ assert ob.ObjectField == Foo
603
604
605
def test_enum_conversion():
0 commit comments