Commits

Georg Brandl committed 5947b1b

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

Comments (0)

Files changed (1)

Lib/test/test_pdb.py

     """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...'
     -> 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...'
     [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()
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.