@@ -43,8 +43,8 @@ class nonascii:
43
43
44
44
if test .support .HAVE_DOCSTRINGS :
45
45
expected_data_docstrings = (
46
- 'dictionary for instance variables (if defined) ' ,
47
- 'list of weak references to the object (if defined) ' ,
46
+ 'dictionary for instance variables' ,
47
+ 'list of weak references to the object' ,
48
48
) * 2
49
49
else :
50
50
expected_data_docstrings = ('' , '' , '' , '' )
@@ -108,10 +108,10 @@ class C(builtins.object)
108
108
| Data descriptors defined here:
109
109
|
110
110
| __dict__
111
- | dictionary for instance variables (if defined)
111
+ | dictionary for instance variables
112
112
|
113
113
| __weakref__
114
- | list of weak references to the object (if defined)
114
+ | list of weak references to the object
115
115
116
116
FUNCTIONS
117
117
doc_func()
@@ -169,16 +169,16 @@ class A(builtins.object)
169
169
170
170
Data descriptors defined here:
171
171
__dict__
172
- dictionary for instance variables (if defined)
172
+ dictionary for instance variables
173
173
__weakref__
174
- list of weak references to the object (if defined)
174
+ list of weak references to the object
175
175
176
176
class B(builtins.object)
177
177
Data descriptors defined here:
178
178
__dict__
179
- dictionary for instance variables (if defined)
179
+ dictionary for instance variables
180
180
__weakref__
181
- list of weak references to the object (if defined)
181
+ list of weak references to the object
182
182
Data and other attributes defined here:
183
183
NO_MEANING = 'eggs'
184
184
__annotations__ = {'NO_MEANING': <class 'str'>}
@@ -195,9 +195,9 @@ class C(builtins.object)
195
195
__class_getitem__(item) from builtins.type
196
196
Data descriptors defined here:
197
197
__dict__
198
- dictionary for instance variables (if defined)
198
+ dictionary for instance variables
199
199
__weakref__
200
- list of weak references to the object (if defined)
200
+ list of weak references to the object
201
201
202
202
Functions
203
203
doc_func()
@@ -829,10 +829,10 @@ class B(A)
829
829
| Data descriptors inherited from A:
830
830
|
831
831
| __dict__
832
- | dictionary for instance variables (if defined)
832
+ | dictionary for instance variables
833
833
|
834
834
| __weakref__
835
- | list of weak references to the object (if defined)
835
+ | list of weak references to the object
836
836
''' % __name__ )
837
837
838
838
doc = pydoc .render_doc (B , renderer = pydoc .HTMLDoc ())
@@ -861,9 +861,9 @@ class B(A)
861
861
862
862
Data descriptors inherited from A:
863
863
__dict__
864
- dictionary for instance variables (if defined)
864
+ dictionary for instance variables
865
865
__weakref__
866
- list of weak references to the object (if defined)
866
+ list of weak references to the object
867
867
"""
868
868
as_text = html2text (doc )
869
869
expected_lines = [line .strip () for line in expected_text .split ("\n " ) if line ]
0 commit comments