summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_doctest.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-04-24 18:41:02 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-04-24 18:41:02 (GMT)
commite437a10d15ddfd21d406e591acccf12ff443194e (patch)
treef6227687646fda64f9eaf485ae2d9c3f55709232 /Lib/test/test_doctest.py
parent597d15afe45ea3a8613d336e68a0a98b8846e603 (diff)
downloadcpython-e437a10d15ddfd21d406e591acccf12ff443194e.zip
cpython-e437a10d15ddfd21d406e591acccf12ff443194e.tar.gz
cpython-e437a10d15ddfd21d406e591acccf12ff443194e.tar.bz2
Issue #23277: Remove unused imports in tests.
Diffstat (limited to 'Lib/test/test_doctest.py')
-rw-r--r--Lib/test/test_doctest.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/test/test_doctest.py b/Lib/test/test_doctest.py
index f7c4806..b9bd135 100644
--- a/Lib/test/test_doctest.py
+++ b/Lib/test/test_doctest.py
@@ -1876,7 +1876,6 @@ if not hasattr(sys, 'gettrace') or not sys.gettrace():
To demonstrate this, we'll create a fake standard input that
captures our debugger input:
- >>> import tempfile
>>> real_stdin = sys.stdin
>>> sys.stdin = _FakeInput([
... 'print(x)', # print data defined by the example
@@ -1917,7 +1916,7 @@ if not hasattr(sys, 'gettrace') or not sys.gettrace():
... finally:
... sys.stdin = real_stdin
--Return--
- > <doctest test.test_doctest.test_pdb_set_trace[8]>(3)calls_set_trace()->None
+ > <doctest test.test_doctest.test_pdb_set_trace[7]>(3)calls_set_trace()->None
-> import pdb; pdb.set_trace()
(Pdb) print(y)
2
@@ -2804,7 +2803,6 @@ text files).
... _ = f.write(" 'abc def'\n")
... _ = f.write("\n")
... _ = f.write(' \"\"\"\n')
- ... import shutil
... rc1, out1, err1 = script_helper.assert_python_failure(
... '-m', 'doctest', fn, fn2, TERM='')
... rc2, out2, err2 = script_helper.assert_python_ok(