Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
4fb1fe8b
Commit
4fb1fe8b
authored
Oct 04, 2001
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
class_docstrings(): The new-style class tests should use new-style
classes (sheesh!).
parent
59f809d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Lib/test/test_descr.py
Lib/test/test_descr.py
+4
-4
No files found.
Lib/test/test_descr.py
View file @
4fb1fe8b
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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