summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_cmd.py
Commit message (Collapse)AuthorAgeFilesLines
* Merged revisions 83380 via svnmerge fromR. David Murray2010-08-011-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r83380 | r.david.murray | 2010-07-31 23:31:09 -0400 (Sat, 31 Jul 2010) | 17 lines #8620: Cmd no longer truncates last character if stdin ends without newline Cmd used to blindly chop off the last character of every input line. If the input reached EOF and there was no final new line, it would truncate the last character of the last command. This fix instead strips trailing \r\n from the input lines. While this is a small behavior change, it should not break any working code, since feeding a '\r\n' terminated file to Cmd would previously leave the \r's on the lines, resulting in failed command execution. I wrote the unit test in preparation for a PyOhio TeachMe session run by Catherine Devlin, and we can thank Catherine and the PyOhio session attendees for the fix. I've added Catherine to the Acks file for organizing and leading the TeachMe session, out of which we will hopefully get some new contributors. ........
* Issue #7449, part 10: test_cmd imports trace module using ↵Victor Stinner2010-04-271-2/+3
| | | | | | | | | | test_support.import_module() Use test_support.import_module() instead of import to raise a SkipTest exception if the import fail. Import trace fails if the threading module is missing. See also part 3: test_doctest: import trace module in test_coverage().
* #5991: let completion for the "help" command include help topics.Georg Brandl2010-01-061-2/+4
| | | | | This also simplifies the Cmd.get_names() method implementation; it was written at a time where dir() didn't consider base class attributes.
* Small fixes to test_cmd: fix signature of do_shell, remove duplicate import, ↵Georg Brandl2010-01-061-2/+4
| | | | add option to run the custom Cmd class.
* Patch #2167 from calvin: Remove unused importsChristian Heimes2008-02-231-2/+1
|
* Add test suite for cmd module.Georg Brandl2007-12-011-0/+186
Written by Michael Schneider for GHOP.