diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-10-04 05:48:13 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-10-04 05:48:13 (GMT) |
commit | 4fb1fe8bd20d0d3cfe15d4dcfa520b14c863f10a (patch) | |
tree | 7060a1c4836f76bea11550e409ad6541cd7bafc0 | |
parent | 59f809d3bc333ec0a4d21ad8d375782e0b25c17e (diff) | |
download | cpython-4fb1fe8bd20d0d3cfe15d4dcfa520b14c863f10a.zip cpython-4fb1fe8bd20d0d3cfe15d4dcfa520b14c863f10a.tar.gz cpython-4fb1fe8bd20d0d3cfe15d4dcfa520b14c863f10a.tar.bz2 |
class_docstrings(): The new-style class tests should use new-style
classes (sheesh!).
-rw-r--r-- | Lib/test/test_descr.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py index cd65c2c..a6d527e 100644 --- a/Lib/test/test_descr.py +++ b/Lib/test/test_descr.py @@ -98,24 +98,24 @@ def class_docstrings(): pass verify(Classic2.__doc__ is None) - class NewStatic: + class NewStatic(object): "Another docstring." __dynamic__ = 0 verify(NewStatic.__doc__ == "Another docstring.") verify(NewStatic.__dict__['__doc__'] == "Another docstring.") - class NewStatic2: + class NewStatic2(object): __dynamic__ = 0 pass verify(NewStatic2.__doc__ is None) - class NewDynamic: + class NewDynamic(object): "Another docstring." __dynamic__ = 1 verify(NewDynamic.__doc__ == "Another docstring.") verify(NewDynamic.__dict__['__doc__'] == "Another docstring.") - class NewDynamic2: + class NewDynamic2(object): __dynamic__ = 1 pass verify(NewDynamic2.__doc__ is None) |