Skip to content

Commit da698eb

Browse files
committed
Add test case
1 parent 848727b commit da698eb

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/snippets/class.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,16 @@ def b():
174174
assert a == 2
175175
A.b()
176176

177+
class A:
178+
pass
179+
180+
assert A.__doc__ == None
181+
182+
class B:
183+
"Docstring"
184+
185+
assert B.__doc__ == "Docstring"
186+
177187
# TODO: uncomment once free vars/cells are working
178188
# The symboltable sees that b() is referring to a in the nested scope,
179189
# so it marks it as non local. When it's executed, it walks up the scopes

0 commit comments

Comments
 (0)