We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8a7f3c commit 73e154cCopy full SHA for 73e154c
graalpython/com.oracle.graal.python.test/src/tests/test_pdb.py
@@ -37,15 +37,23 @@
37
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
38
# SOFTWARE.
39
40
-from test.test_doctest import _FakeInput
41
-
42
import doctest
43
import sys
44
45
46
-class PdbTestInput(object):
47
- """Context manager that makes testing Pdb in doctests easier."""
+# Copied from test_doctest
+class _FakeInput:
+ def __init__(self, lines):
+ self.lines = lines
48
+
49
+ def readline(self):
50
+ line = self.lines.pop(0)
51
+ print(line)
52
+ return line + '\n'
53
54
55
+# Copied from test_pdb
56
+class PdbTestInput(object):
57
def __init__(self, input):
58
self.input = input
59
0 commit comments