Commit ee7b8f32 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

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

parent 3c014a67
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'})
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment