Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
ee7b8f32
Commit
ee7b8f32
authored
Jan 03, 2016
by
Paul Sokolovsky
Browse files
tests/object_dict.py: Add test for obj.__dict__ .
parent
3c014a67
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/basics/object_dict.py
0 → 100644
View file @
ee7b8f32
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'
})
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment