Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 5af5e6b2c053 by Jesus Cea in branch 'default':
Test for issue #13500
http://hg.python.org/cpython/rev/5af5e6b2c053
--
___
Python tracker rep...@bugs.python.org
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 0d442e166c8f by Jesus Cea in branch '2.7':
Test for issue #13500
http://hg.python.org/cpython/rev/0d442e166c8f
New changeset 3a40af30449e by Jesus Cea in branch '3.2':
Test for issue #13500
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 2909e60e7e13 by Jesus Cea in branch '2.7':
Fix Test for issue #13500
http://hg.python.org/cpython/rev/2909e60e7e13
--
___
Python tracker rep...@bugs.python.org
Garrett Cooper yaneg...@gmail.com added the comment:
Here's a unittest patch for the py3k branch.
{{{
1 items passed all tests:
32 tests in test.test_cmd.samplecmdclass
32 tests in 19 items.
32 passed and 0 failed.
Test passed.
doctest (test.test_cmd) ... 32 tests with zero failures
Éric Araujo mer...@netwok.org added the comment:
I believe the commit would have needed a regression test.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13500
___
Garrett Cooper yaneg...@gmail.com added the comment:
I'll verify the fix in another day or two.
FWIW unless python is willing to import pexpect, or provide an equivalent, I'm
not sure how items like this which require interactive input can be run via
the python project testing framework.
Éric Araujo mer...@netwok.org added the comment:
I'm not sure how items like this which require interactive input can
be run via the python project testing framework.
Replace sys.stdin with a custom object (a stub) and you can control input (see
the Inputs class used in
Garrett Cooper yaneg...@gmail.com added the comment:
Ok. I'll see if I can provide a unittest for this by the 12th.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13500
___
Changes by Jesús Cea Avión j...@jcea.es:
--
assignee: - jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13500
___
___
Python-bugs-list mailing
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 5910c385fab6 by Jesus Cea in branch '2.7':
Close #13500: Hitting EOF gets cmd.py into a infinite EOF on return loop
http://hg.python.org/cpython/rev/5910c385fab6
New changeset b6b4d74b8d42 by Jesus Cea in branch
Jesús Cea Avión j...@jcea.es added the comment:
Garrett, please verify the fix.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13500
___
___
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo, haypo
versions: +Python 2.7, Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13500
___
New submission from Garrett Cooper yaneg...@gmail.com:
Pressing enter produces no output with cmd.py whenever ^D has been entered
in; after I enter in ^D it gets into an infinite loop spewing out messages via
cmd.Cmd.default() about EOF because self.lastcmd isn't being reset properly.
The
Jesús Cea Avión j...@jcea.es added the comment:
Could you provide an step-by-step procedure to try this?.
--
nosy: +jcea
versions: +Python 3.3 -Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13500
Garrett Cooper yaneg...@gmail.com added the comment:
Sure -- the repro steps are pretty easy:
1. Startup an interactive python shell.
2. Enter in the following code:
{{{
import cmd
class Foo(cmd.Cmd):
def do_bar(self, arg):
bar
Foo().cmdloop()
}}}
3. You will be greeted with the
15 matches
Mail list logo