Commit a8fbc6a5 authored by Georg Brandl's avatar Georg Brandl

Import test_pdb with its full name, so that running python -m test.test_pdb succeeds.

parent f55c3159
...@@ -267,8 +267,8 @@ def test_list_commands(): ...@@ -267,8 +267,8 @@ def test_list_commands():
"""Test the list and source commands of pdb. """Test the list and source commands of pdb.
>>> def test_function_2(foo): >>> def test_function_2(foo):
... import test_pdb ... import test.test_pdb
... test_pdb.do_nothing() ... test.test_pdb.do_nothing()
... 'some...' ... 'some...'
... 'more...' ... 'more...'
... 'code...' ... 'code...'
...@@ -315,8 +315,8 @@ def test_list_commands(): ...@@ -315,8 +315,8 @@ def test_list_commands():
-> def test_function_2(foo): -> def test_function_2(foo):
(Pdb) list (Pdb) list
1 -> def test_function_2(foo): 1 -> def test_function_2(foo):
2 import test_pdb 2 import test.test_pdb
3 test_pdb.do_nothing() 3 test.test_pdb.do_nothing()
4 'some...' 4 'some...'
5 'more...' 5 'more...'
6 'code...' 6 'code...'
...@@ -333,16 +333,16 @@ def test_list_commands(): ...@@ -333,16 +333,16 @@ def test_list_commands():
[EOF] [EOF]
(Pdb) list 1,3 (Pdb) list 1,3
1 -> def test_function_2(foo): 1 -> def test_function_2(foo):
2 import test_pdb 2 import test.test_pdb
3 test_pdb.do_nothing() 3 test.test_pdb.do_nothing()
(Pdb) list x (Pdb) list x
*** ... *** ...
(Pdb) next (Pdb) next
> <doctest test.test_pdb.test_list_commands[0]>(2)test_function_2() > <doctest test.test_pdb.test_list_commands[0]>(2)test_function_2()
-> import test_pdb -> import test.test_pdb
(Pdb) next (Pdb) next
> <doctest test.test_pdb.test_list_commands[0]>(3)test_function_2() > <doctest test.test_pdb.test_list_commands[0]>(3)test_function_2()
-> test_pdb.do_nothing() -> test.test_pdb.do_nothing()
(Pdb) step (Pdb) step
--Call-- --Call--
> ...test_pdb.py(...)do_nothing() > ...test_pdb.py(...)do_nothing()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment