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
3e60a9d6
Commit
3e60a9d6
authored
Dec 08, 2013
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #19535: Fixed test_docxmlrpc when python is run with -OO.
parent
a82f74de
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
Lib/test/test_docxmlrpc.py
Lib/test/test_docxmlrpc.py
+4
-2
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Lib/test/test_docxmlrpc.py
View file @
3e60a9d6
...
...
@@ -202,10 +202,12 @@ class DocXMLRPCHTTPGETServer(unittest.TestCase):
""" Test that annotations works as expected """
self
.
client
.
request
(
"GET"
,
"/"
)
response
=
self
.
client
.
getresponse
()
docstring
=
(
b''
if
sys
.
flags
.
optimize
>=
2
else
b'<dd><tt>Use function annotations.</tt></dd>'
)
self
.
assertIn
(
(
b'<dl><dt><a name="-annotation"><strong>annotation</strong></a>'
b'(x: int)</dt>
<dd><tt>Use function annotations.</tt>
'
b'<
/dd></dl>
\
n
<
dl><dt><a name="-method_annotation"><strong>'
b'(x: int)</dt>
'
+
docstring
+
b'</dl>
\
n
'
b'<dl><dt><a name="-method_annotation"><strong>'
b'method_annotation</strong></a>(x: bytes)</dt></dl>'
),
response
.
read
())
...
...
Misc/NEWS
View file @
3e60a9d6
...
...
@@ -97,6 +97,8 @@ Library
Tests
-----
- Issue #19535: Fixed test_docxmlrpc when python is run with -OO.
- Issue #19926: Removed unneeded test_main from test_abstract_numbers.
Patch by Vajrasky Kok.
...
...
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