Commit d2133724 authored by Georg Brandl's avatar Georg Brandl

#9964: fix running test_xml_etree under -OO.

parent f2cc8a92
......@@ -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 "
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment