summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_commands.py
Commit message (Collapse)AuthorAgeFilesLines
* fix incorrect auto-translation of TestSkipped -> unittest.SkipTestBenjamin Peterson2009-03-261-2/+2
|
* remove test_support.TestSkipped and just use unittest.SkipTestBenjamin Peterson2009-03-261-2/+2
|
* Get rid of deprecation warning when testing commands.getstatus()Neal Norwitz2007-03-201-0/+4
|
* Add new utility function, reap_children(), to test_support. This shouldNeal Norwitz2006-06-291-1/+2
| | | | | | | | | | be called at the end of each test that spawns children (perhaps it should be called from regrtest instead?). This will hopefully prevent some of the unexplained failures in the buildbots (hppa and alpha) during tests that spawn children. The problems were not reproducible. There were many zombies that remained at the end of several tests. In the worst case, this shouldn't cause any more problems, though it may not help either. Time will tell.
* CommandTests.testgetoutput():Thomas Wouters2003-03-251-1/+3
| | | | | Make sure we aren't masking any errors raised in tempfile.mkdtemp() by referencing the (then) unbound local 'dir'.
* Patch #648998: test_commands ACL patchJason Tishler2002-12-051-0/+1
| | | | | | | | | | | | | | Although motived by Cygwin, this patch will prevent test_commands from failing on Unixes that support ACLs. For example, the following is an excerpt from the Solaris ls manpage: ... -rwxrwxrwx+ 1 smith dev 10876 May 16 9:42 part2 The plus sign indicates that there is an ACL associated with the file. ...
* Patch #544740: test_commands test fails under CygwinJason Tishler2002-09-301-5/+7
| | | | Relax regular expression to handle spaces in user and group names.
* Massive changes from SF 589982 (tempfile.py rewrite, by ZackGuido van Rossum2002-08-091-4/+11
| | | | | Weinberg). This changes all uses of deprecated tempfile functions to the recommended ones.
* Get rid of relative imports in all unittests. Now anything thatBarry Warsaw2002-07-231-1/+1
| | | | | | | | | | | imports e.g. test_support must do so using an absolute package name such as "import test.test_support" or "from test import test_support". This also updates the README in Lib/test, and gets rid of the duplicate data dirctory in Lib/test/data (replaced by Lib/email/test/data). Now Tim and Jack can have at it. :)
* Patch #551911: Escape . properly.Martin v. Löwis2002-06-061-1/+1
|
* Make test_commands work on more systems. This removes much of the dependencyFred Drake2002-04-011-4/+5
| | | | | | | on how a system is configured. This closes SF bug #497160 (which has the patch) and #460613. Bugfix candidate.
* Fix SF bug #456386: test_commands regression failure (Andrew Dalke)Guido van Rossum2001-10-301-1/+1
| | | | | | | | | test_commands does not work on IRIX It assumes the output of "ls /bin/ls" is a line that starts with a '-'. On IRIX that file is a symbolic link, so the first character is an l. This causes test_getstatus to fail.
* Change the PyUnit-based tests to use the test_main() approach. ThisFred Drake2001-09-201-1/+7
| | | | | allows using the tests with unittest.py as a script. The tests will still run when run as a script themselves.
* Tests for the "commands" module, contributed by Nick Mathewson.Fred Drake2001-07-231-0/+45
This closes SF patch #440291.