@@ -40,8 +40,8 @@ class nonascii:
40
40
41
41
if test .support .HAVE_DOCSTRINGS :
42
42
expected_data_docstrings = (
43
- 'dictionary for instance variables (if defined) ' ,
44
- 'list of weak references to the object (if defined) ' ,
43
+ 'dictionary for instance variables' ,
44
+ 'list of weak references to the object' ,
45
45
) * 2
46
46
else :
47
47
expected_data_docstrings = ('' , '' , '' , '' )
@@ -105,10 +105,10 @@ class C(builtins.object)
105
105
| Data descriptors defined here:
106
106
|\x20 \x20
107
107
| __dict__
108
- | dictionary for instance variables (if defined)
108
+ | dictionary for instance variables
109
109
|\x20 \x20
110
110
| __weakref__
111
- | list of weak references to the object (if defined)
111
+ | list of weak references to the object
112
112
113
113
FUNCTIONS
114
114
doc_func()
@@ -166,16 +166,16 @@ class A(builtins.object)
166
166
167
167
Data descriptors defined here:
168
168
__dict__
169
- dictionary for instance variables (if defined)
169
+ dictionary for instance variables
170
170
__weakref__
171
- list of weak references to the object (if defined)
171
+ list of weak references to the object
172
172
173
173
class B(builtins.object)
174
174
Data descriptors defined here:
175
175
__dict__
176
- dictionary for instance variables (if defined)
176
+ dictionary for instance variables
177
177
__weakref__
178
- list of weak references to the object (if defined)
178
+ list of weak references to the object
179
179
Data and other attributes defined here:
180
180
NO_MEANING = 'eggs'
181
181
__annotations__ = {'NO_MEANING': <class 'str'>}
@@ -192,9 +192,9 @@ class C(builtins.object)
192
192
__class_getitem__(item) from builtins.type
193
193
Data descriptors defined here:
194
194
__dict__
195
- dictionary for instance variables (if defined)
195
+ dictionary for instance variables
196
196
__weakref__
197
- list of weak references to the object (if defined)
197
+ list of weak references to the object
198
198
199
199
Functions
200
200
doc_func()
@@ -826,10 +826,10 @@ class B(A)
826
826
| Data descriptors inherited from A:
827
827
|\x20 \x20
828
828
| __dict__
829
- | dictionary for instance variables (if defined)
829
+ | dictionary for instance variables
830
830
|\x20 \x20
831
831
| __weakref__
832
- | list of weak references to the object (if defined)
832
+ | list of weak references to the object
833
833
''' % __name__ )
834
834
835
835
doc = pydoc .render_doc (B , renderer = pydoc .HTMLDoc ())
@@ -858,9 +858,9 @@ class B(A)
858
858
859
859
Data descriptors inherited from A:
860
860
__dict__
861
- dictionary for instance variables (if defined)
861
+ dictionary for instance variables
862
862
__weakref__
863
- list of weak references to the object (if defined)
863
+ list of weak references to the object
864
864
"""
865
865
as_text = html2text (doc )
866
866
expected_lines = [line .strip () for line in expected_text .split ("\n " ) if line ]
0 commit comments