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
d2133724
Commit
d2133724
authored
Oct 14, 2010
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#9964: fix running test_xml_etree under -OO.
parent
f2cc8a92
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
Lib/test/test_xml_etree.py
Lib/test/test_xml_etree.py
+4
-0
No files found.
Lib/test/test_xml_etree.py
View file @
d2133724
...
...
@@ -1835,6 +1835,10 @@ class CleanContext(object):
checkwarnings
=
None
def
__init__
(
self
,
quiet
=
False
):
if
sys
.
flags
.
optimize
>=
2
:
# under -OO, doctests cannot be run and therefore not all warnings
# will be emitted
quiet
=
True
deprecations
=
(
# Search behaviour is broken if search path starts with "/".
(
"This search is broken in 1.3 and earlier, and will be fixed "
...
...
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