mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +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
|
||||
|
||||
sys.save_stdout = sys.stdout
|
||||
|
||||
class Error(Exception):
|
||||
"""Base class for regression test exceptions."""
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue