Don't treat lines like "r = 5" or "c = 6" as commands

#11 Merged at 75ebd4f
Repository
msabramo
Branch
no_command_when_has_equals
Repository
antocuni
Branch
default
Author
  1. Marc Abramowitz
Reviewers
Description

Don't treat lines like "r = 5" or "c = 6" as commands

Fixes issue #27 ("Extend smart command parsing to not interpret line as command when it contains =")

Sample output

  py.test _test_foo.py
============================================================================= test session starts ==============================================================================
platform darwin -- Python 2.7.6 -- py-1.4.20 -- pytest-2.5.2
collected 1 items

_test_foo.py
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> PDB set_trace (IO-capturing turned off) >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
[32] > /Users/marca/dev/hg-repos/pdb/_test_foo.py(4)test_foo()
-> a = 4
(Pdb++) l
   1     def test_foo():
   2         a = 5
   3         import pdb; pdb.set_trace()
   4  ->     a = 4
(Pdb++) c = 5
(Pdb++) c
5
(Pdb++) r = 4
(Pdb++) r
4

Comments (1)