micropython: add micropython component
This commit is contained in:
13
components/language/micropython/tests/basics/object_dict.py
Normal file
13
components/language/micropython/tests/basics/object_dict.py
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
class Foo:
|
||||
|
||||
def __init__(self):
|
||||
self.a = 1
|
||||
self.b = "bar"
|
||||
|
||||
o = Foo()
|
||||
if not hasattr(o, "__dict__"):
|
||||
print("SKIP")
|
||||
raise SystemExit
|
||||
|
||||
print(o.__dict__ == {'a': 1, 'b': 'bar'})
|
Reference in New Issue
Block a user