Skip to content
Snippets Groups Projects
Commit ee7b8f32 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

tests/object_dict.py: Add test for obj.__dict__ .

parent 3c014a67
Branches
No related tags found
No related merge requests found
import sys
class Foo:
def __init__(self):
self.a = 1
self.b = "bar"
o = Foo()
if not hasattr(o, "__dict__"):
print("SKIP")
sys.exit()
print(o.__dict__ == {'a': 1, 'b': 'bar'})
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment