mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Set sys.save_stdout (to sys.stdout), so doctest-using tests can be run
standalone.
This commit is contained in:
parent
9081bb1d21
commit
ad39aba2f6
1 changed files with 2 additions and 0 deletions
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
sys.save_stdout = sys.stdout
|
||||||
|
|
||||||
class Error(Exception):
|
class Error(Exception):
|
||||||
"""Base class for regression test exceptions."""
|
"""Base class for regression test exceptions."""
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue