diff options
author | Georg Brandl <georg@python.org> | 2010-07-31 11:52:46 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-07-31 11:52:46 (GMT) |
commit | a8fbc6a52138a06b50313ae2e6e5ea36d2f34206 (patch) | |
tree | dfa24ac7ddbc522a5917f45062876255df3fe283 | |
parent | f55c31594b9abb2ddb446d2d6206342a9258d205 (diff) | |
download | cpython-a8fbc6a52138a06b50313ae2e6e5ea36d2f34206.zip cpython-a8fbc6a52138a06b50313ae2e6e5ea36d2f34206.tar.gz cpython-a8fbc6a52138a06b50313ae2e6e5ea36d2f34206.tar.bz2 |
Import test_pdb with its full name, so that running python -m test.test_pdb succeeds.
-rw-r--r-- | Lib/test/test_pdb.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Lib/test/test_pdb.py b/Lib/test/test_pdb.py index 5695775..90bf642 100644 --- a/Lib/test/test_pdb.py +++ b/Lib/test/test_pdb.py @@ -267,8 +267,8 @@ def test_list_commands(): """Test the list and source commands of pdb. >>> def test_function_2(foo): - ... import test_pdb - ... test_pdb.do_nothing() + ... import test.test_pdb + ... test.test_pdb.do_nothing() ... 'some...' ... 'more...' ... 'code...' @@ -315,8 +315,8 @@ def test_list_commands(): -> def test_function_2(foo): (Pdb) list 1 -> def test_function_2(foo): - 2 import test_pdb - 3 test_pdb.do_nothing() + 2 import test.test_pdb + 3 test.test_pdb.do_nothing() 4 'some...' 5 'more...' 6 'code...' @@ -333,16 +333,16 @@ def test_list_commands(): [EOF] (Pdb) list 1,3 1 -> def test_function_2(foo): - 2 import test_pdb - 3 test_pdb.do_nothing() + 2 import test.test_pdb + 3 test.test_pdb.do_nothing() (Pdb) list x *** ... (Pdb) next > <doctest test.test_pdb.test_list_commands[0]>(2)test_function_2() - -> import test_pdb + -> import test.test_pdb (Pdb) next > <doctest test.test_pdb.test_list_commands[0]>(3)test_function_2() - -> test_pdb.do_nothing() + -> test.test_pdb.do_nothing() (Pdb) step --Call-- > ...test_pdb.py(...)do_nothing() |