diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-01-18 16:25:04 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-18 16:25:04 (GMT) |
commit | a76d0104d7c4b9a92569a0d6fa064ef6cc118be2 (patch) | |
tree | 23eb400fd5fe3dbec475dcb82416463b6dac4915 /Lib/test/test_pdb.py | |
parent | 6d23b32374786ea41e92e90161fe4d0b0bb53d8b (diff) | |
download | cpython-a76d0104d7c4b9a92569a0d6fa064ef6cc118be2.zip cpython-a76d0104d7c4b9a92569a0d6fa064ef6cc118be2.tar.gz cpython-a76d0104d7c4b9a92569a0d6fa064ef6cc118be2.tar.bz2 |
[3.12] gh-108303: Move all doctest related files and tests to `Lib/test/test_doctest/` (GH-112109) (#114254)
gh-108303: Move all doctest related files and tests to `Lib/test/test_doctest/` (GH-112109)
(cherry picked from commit 9c93350f582fe6f5fed2cd873869dfe4fbf2dfe8)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Brett Cannon <brett@python.org>
Diffstat (limited to 'Lib/test/test_pdb.py')
-rw-r--r-- | Lib/test/test_pdb.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/test/test_pdb.py b/Lib/test/test_pdb.py index 56ee6c4..514ed85 100644 --- a/Lib/test/test_pdb.py +++ b/Lib/test/test_pdb.py @@ -16,9 +16,7 @@ from io import StringIO from test import support from test.support import os_helper from test.support.import_helper import import_module -from test.support.pty_helper import run_pty -# This little helper class is essential for testing pdb under doctest. -from test.test_doctest import _FakeInput +from test.support.pty_helper import run_pty, FakeInput from unittest.mock import patch @@ -30,7 +28,7 @@ class PdbTestInput(object): def __enter__(self): self.real_stdin = sys.stdin - sys.stdin = _FakeInput(self.input) + sys.stdin = FakeInput(self.input) self.orig_trace = sys.gettrace() if hasattr(sys, 'gettrace') else None def __exit__(self, *exc): |