Commit 4fb1fe8b authored by Tim Peters's avatar Tim Peters

class_docstrings(): The new-style class tests should use new-style

classes (sheesh!).
parent 59f809d3
...@@ -98,24 +98,24 @@ def class_docstrings(): ...@@ -98,24 +98,24 @@ def class_docstrings():
pass pass
verify(Classic2.__doc__ is None) verify(Classic2.__doc__ is None)
class NewStatic: class NewStatic(object):
"Another docstring." "Another docstring."
__dynamic__ = 0 __dynamic__ = 0
verify(NewStatic.__doc__ == "Another docstring.") verify(NewStatic.__doc__ == "Another docstring.")
verify(NewStatic.__dict__['__doc__'] == "Another docstring.") verify(NewStatic.__dict__['__doc__'] == "Another docstring.")
class NewStatic2: class NewStatic2(object):
__dynamic__ = 0 __dynamic__ = 0
pass pass
verify(NewStatic2.__doc__ is None) verify(NewStatic2.__doc__ is None)
class NewDynamic: class NewDynamic(object):
"Another docstring." "Another docstring."
__dynamic__ = 1 __dynamic__ = 1
verify(NewDynamic.__doc__ == "Another docstring.") verify(NewDynamic.__doc__ == "Another docstring.")
verify(NewDynamic.__dict__['__doc__'] == "Another docstring.") verify(NewDynamic.__dict__['__doc__'] == "Another docstring.")
class NewDynamic2: class NewDynamic2(object):
__dynamic__ = 1 __dynamic__ = 1
pass pass
verify(NewDynamic2.__doc__ is None) verify(NewDynamic2.__doc__ is None)
......
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