cpython: 910b1cb5176c (original) (raw)
Mercurial > cpython
changeset 87834:910b1cb5176c 3.3
Issue #19535: Fixed test_docxmlrpc when python is run with -OO. [#19535]
Serhiy Storchaka storchaka@gmail.com | |
---|---|
date | Sun, 08 Dec 2013 18:14:49 +0200 |
parents | 3580c718add3 |
children | e71142abf8b6 5ca6e8af0aab |
files | Lib/test/test_docxmlrpc.py Misc/NEWS |
diffstat | 2 files changed, 6 insertions(+), 2 deletions(-)[+] [-] Lib/test/test_docxmlrpc.py 6 Misc/NEWS 2 |
line wrap: on
line diff
--- a/Lib/test/test_docxmlrpc.py +++ b/Lib/test/test_docxmlrpc.py @@ -202,10 +202,12 @@ class DocXMLRPCHTTPGETServer(unittest.Te """ Test that annotations works as expected """ self.client.request("GET", "/") response = self.client.getresponse()
docstring = (b'' if sys.flags.optimize >= 2 else[](#l1.7)
b'<dd><tt>Use function annotations.</tt></dd>')[](#l1.8) self.assertIn([](#l1.9) (b'<dl><dt><a name="-annotation"><strong>annotation</strong></a>'[](#l1.10)
b'(x: int)</dt><dd><tt>Use function annotations.</tt>'[](#l1.11)
b'</dd></dl>\n<dl><dt><a name="-method_annotation"><strong>'[](#l1.12)
b'(x: int)</dt>' + docstring + b'</dl>\n'[](#l1.13)
b'<dl><dt><a name="-method_annotation"><strong>'[](#l1.14) b'method_annotation</strong></a>(x: bytes)</dt></dl>'),[](#l1.15) response.read())[](#l1.16)
--- a/Misc/NEWS +++ b/Misc/NEWS @@ -97,6 +97,8 @@ Library Tests ----- +- Issue #19535: Fixed test_docxmlrpc when python is run with -OO. +