Skip to content

Commit

Permalink
fix(main): "python -m pdbpp" works without hijacking (#466)
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed authored Sep 26, 2021
1 parent 6514262 commit 7b1b014
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/pdbpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -2317,5 +2317,5 @@ def __setattr__(self, attr, value):


if __name__ == '__main__':
import pdb
pdb.main()
import pdbpp
pdbpp.main()
2 changes: 1 addition & 1 deletion testing/test_pdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -5981,7 +5981,7 @@ def f():
)
testdir.monkeypatch.setenv("PDBPP_COLORS", "0")
result = testdir.run(
sys.executable, "-m", "pdb", str(p1),
sys.executable, "-m", "pdbpp", str(p1),
stdin=b"cont\nsticky\n",
)
result.stdout.fnmatch_lines(
Expand Down

0 comments on commit 7b1b014

Please sign in to comment.