File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -202,10 +202,12 @@ def test_annotations(self):
202202 """ Test that annotations works as expected """
203203 self .client .request ("GET" , "/" )
204204 response = self .client .getresponse ()
205+ docstring = (b'' if sys .flags .optimize >= 2 else
206+ b'<dd><tt>Use function annotations.</tt></dd>' )
205207 self .assertIn (
206208 (b'<dl><dt><a name="-annotation"><strong>annotation</strong></a>'
207- b'(x: int)</dt><dd><tt>Use function annotations.</tt> '
208- b'</dd></dl> \n < dl><dt><a name="-method_annotation"><strong>'
209+ b'(x: int)</dt>' + docstring + b'</dl> \n '
210+ b'<dl><dt><a name="-method_annotation"><strong>'
209211 b'method_annotation</strong></a>(x: bytes)</dt></dl>' ),
210212 response .read ())
211213
Original file line number Diff line number Diff line change @@ -97,6 +97,8 @@ Library
9797Tests
9898-----
9999
100+ - Issue #19535: Fixed test_docxmlrpc when python is run with -OO.
101+
100102- Issue #19926: Removed unneeded test_main from test_abstract_numbers.
101103 Patch by Vajrasky Kok.
102104
You can’t perform that action at this time.
0 commit comments