Kaydet (Commit) bcc2c125 authored tarafından Tim Peters's avatar Tim Peters

Change raw "except:" constructs to pass on KeyboardInterrupt.

Bugfix candidate?  Don't know -- never bothered me, but it's minor
either way.
üst 1abca4a5
......@@ -430,6 +430,8 @@ def _run_examples_inner(out, fakeout, examples, globs, verbose, name,
compileflags, 1) in globs
got = fakeout.get()
state = OK
except KeyboardInterrupt:
raise
except:
# See whether the exception was expected.
if want.find("Traceback (innermost last):\n") == 0 or \
......@@ -521,6 +523,8 @@ def run_docstring_examples(f, globs, verbose=0, name="NoName",
# just in case CT invents a doc object that has to be forced
# to look like a string <0.9 wink>
doc = str(doc)
except KeyboardInterrupt:
raise
except:
return 0, 0
......
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