summaryrefslogtreecommitdiff
path: root/Lib/test/test_cmd_line.py
Commit message (Collapse)AuthorAgeFilesLines
* #16306: report only the first unknown option and add more tests. Patch by ↵Ezio Melotti2012-11-231-4/+14
| | | | Serhiy Storchaka.
* #16306: Fix multiple error messages when unknown command line parameters ↵Ezio Melotti2012-11-181-1/+10
| | | | where passed to the interpreter. Patch by Hieu Nguyen.
* Issue #15001: fix segfault on "del sys.modules['__main__']"Hynek Schlawack2012-11-071-2/+17
| | | | Patch by Victor Stinner.
* merge 2.6 with hash randomization fixBenjamin Peterson2012-02-201-0/+14
|\
| * - Issue #13703: oCERT-2011-003: add -R command-line option and PYTHONHASHSEEDBarry Warsaw2012-02-201-0/+14
| | | | | | | | | | | | environment variable, to provide an opt-in way to protect against denial of service attacks due to hash collisions within the dict and set types. Patch by David Malcolm, based on work by Victor Stinner.
* | Remove unused imports in test modules.Georg Brandl2010-02-071-1/+0
| |
* | use assert[Not]In where appropriateEzio Melotti2010-01-231-3/+3
| |
* | Issue #6816: expose the zipfile and directory execution mechanism to Python ↵Nick Coghlan2009-11-151-25/+7
| | | | | | | | code via the runpy module. Also consolidated some script execution functionality in the test harness into a helper module and removed some implementation details from the runpy module documentation.
* | don't use subprocess.call with PIPEs as the child can fill the pipe buf andPhilip Jenvey2009-05-221-2/+4
|/ | | | | deadlock. add a warning to subprocess docs about this, similar to Popen.wait's. refs http://bugs.jython.org/issue1351
* Patch #1739468: Directories and zipfiles containing __main__.py are now ↵Nick Coghlan2007-11-181-0/+3
| | | | executable
* Always use the -E flag when spawning subprocesses in test_cmd_line (Issue 1056)Nick Coghlan2007-09-111-5/+2
|
* Fix bug 1764407 - the -i switch now does the right thing when using the -m ↵Nick Coghlan2007-08-251-11/+29
| | | | switch
* Deprecate os.popen* and popen2 module in favor of the subprocess module.Neal Norwitz2007-05-111-6/+7
|
* Patch #1559413: Fix test_cmd_line if sys.executable contains a space.Martin v. Löwis2007-03-141-1/+1
| | | | Will backport.
* Add new utility function, reap_children(), to test_support. This shouldNeal Norwitz2006-06-291-0/+1
| | | | | | | | | | 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.
* More reliable version of new command line tests that just checks the exit codesNick Coghlan2006-04-241-2/+37
|
* Back out new command line tests (broke buildbot)Nick Coghlan2006-04-241-55/+0
|
* Add unit tests for the -m and -c command line switchesNick Coghlan2006-04-241-0/+55
|
* Add a comment to explain why we are calling _cleanup()Neal Norwitz2006-04-171-0/+2
|
* Try to stop the test from leaking and yet still work on windowsNeal Norwitz2006-04-171-3/+2
|
* Get test to consistently show no leaksNeal Norwitz2006-04-171-1/+3
|
* Try to be a bit more consistent on all platforms:Neal Norwitz2006-03-091-13/+2
| | | | | | | python . python < . both print a message, return non-zero and do not core dump.
* Fix test not to fail on FreeBSD. Directories work also as dataHye-Shik Chang2005-12-131-0/+4
| | | | files on the platform.
* SF patch #1364545: test_cmd_line.py relied on english error messages whenWalter Dörwald2005-11-251-13/+12
| | | | | invoking the Python interpreter (which didn't work on non-english Windows versions). Check return codes instead.
* test_directories(): This test had no chance of passing onTim Peters2005-10-301-2/+14
| | | | | Windows. Hacked it to pass, but not sure it's worth the bother.
* Fix unit test failure -- the output received from Python can be empty,Guido van Rossum2005-10-081-1/+1
| | | | but verify_valid_flag() wasn't expecting that. Will backport.
* SF bug #887946, segfault if redirecting directoryNeal Norwitz2005-10-031-0/+50
Also provide a warning if a directory is passed on the command line. Add minimal command line test. Will backport.