summaryrefslogtreecommitdiffstats
path: root/Lib/test/regrtest.py
Commit message (Collapse)AuthorAgeFilesLines
* Make regrtest complain when -M and -j are used together.Nadeem Vawda2011-08-271-0/+2
| | | | | | | -j doesn't pass the memlimit on to child processes, so this doesn't work at present, and even if it did, running multiple bigmem tests at once would usually not be desirable (since you generally want to devote as much of the available RAM as possible to each test).
* A warning doesn't equate a failed testAntoine Pitrou2011-08-231-1/+0
| | | | (this broken -F with e.g. test_multiprocessing)
* Issue #12626: In regrtest, allow to filter tests using a glob filterAntoine Pitrou2011-07-291-6/+10
| | | | | | with the `-m` (or `--match`) option. This works with all test cases using the unittest module. This is useful with long test suites such as test_io or test_subprocess.
* Issue #12624: It is now possible to fail after the first failure whenAntoine Pitrou2011-07-231-6/+15
| | | | | | running in verbose mode (`-v` or `-W`), by using the `--failfast` (or `-G`) option to regrtest. This is useful with long test suites such as test_io or test_subprocess.
* Issue #12573: Add resource checks for dangling Thread and Process objects.Antoine Pitrou2011-07-151-1/+36
|
* Issue #12400: regrtest.runtest() uses stream.seek(0) before .truncate()Victor Stinner2011-06-291-3/+6
| | | | .truncate(0) doesn't rewind.
* Issue #12400: runtest() truncates the StringIO stream before a new testVictor Stinner2011-06-291-0/+1
|
* Issue #12400: regrtest, force verbose mode to True with option -WVictor Stinner2011-06-291-7/+10
| | | | If verbose is False, the output is empty. Fix also a typo in a variable name.
* Issue #12400: runtest() reuses the same io.StringIO instance for all callsVictor Stinner2011-06-291-24/+33
| | | | | * Don't force verbose to True with option -W * Rename rerun_failed variable to output_on_failure
* Issue #12400: remove unused variableVictor Stinner2011-06-291-5/+0
|
* Issue #12400: regrtest -W doesn't rerun the tests twice anymore, but capturesVictor Stinner2011-06-291-11/+25
| | | | | the output and displays it on failure instead. regrtest -v doesn't print the error twice anymore if there is only one error.
* #12074: remove the /0 when there are no failures.Ezio Melotti2011-05-231-2/+4
|
* Issue #12074: regrtest displays also the current number of failuresVictor Stinner2011-05-231-5/+6
|
* Fix possible "file already exists" error when running the tests in parallel.Antoine Pitrou2011-04-161-1/+5
| | | | | | This is a perfect example of LBYL going wrong: that code could be executed by several workers in parallel, and os.mkdir() attempted on the same path by multiple processes.
* Merge with 3.1Ross Lagerwall2011-04-091-1/+1
|\
| * Issue #11719: Fix message about unexpected test_msilib skip.Ross Lagerwall2011-04-091-1/+1
| | | | | | | | Patch by Nadeem Vawda.
| * Merged revisions 87704-87705 via svnmerge fromAntoine Pitrou2011-01-031-27/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r87704 | antoine.pitrou | 2011-01-03 21:38:52 +0100 (lun., 03 janv. 2011) | 5 lines Issue #6293: Have regrtest.py echo back sys.flags. This is done by default in whole runs and enabled selectively using `--header` when running an explicit list of tests. Original patch by Collin Winter. ........ r87705 | antoine.pitrou | 2011-01-03 21:40:07 +0100 (lun., 03 janv. 2011) | 3 lines Mention --randseed in option list ........
| * Merged revisions 85086 via svnmerge fromR. David Murray2010-12-041-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85086 | r.david.murray | 2010-09-28 21:08:05 -0400 (Tue, 28 Sep 2010) | 4 lines #7110: have regrtest print test failures and tracebacks to stderr not stdout. Patch by Sandro Tosi. ........
| * Merged revisions 85935-85936 via svnmerge fromAntoine Pitrou2010-10-311-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85935 | antoine.pitrou | 2010-10-29 21:34:45 +0200 (ven., 29 oct. 2010) | 4 lines Make a GC run before trying to clean up files left over by the latest test run. ........ r85936 | antoine.pitrou | 2010-10-29 21:36:37 +0200 (ven., 29 oct. 2010) | 3 lines Fix typo ........
| * Merged revisions 85482 via svnmerge fromAntoine Pitrou2010-10-141-3/+2
| | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85482 | antoine.pitrou | 2010-10-14 17:34:31 +0200 (jeu., 14 oct. 2010) | 4 lines Replace the "compiler" resource with the more generic "cpu", so as to mark CPU-heavy tests. ........
| * Merged revisions 81359-81361 via svnmerge fromVictor Stinner2010-05-191-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r81359 | victor.stinner | 2010-05-19 19:00:07 +0200 (mer., 19 mai 2010) | 4 lines Issue #8663: distutils.log emulates backslashreplace error handler. Fix compilation in a non-ASCII directory if stdout encoding is ASCII (eg. if stdout is not a TTY). ........ r81360 | victor.stinner | 2010-05-19 19:11:19 +0200 (mer., 19 mai 2010) | 5 lines regrtest.py: call replace_stdout() before the first call to print() print("== ", os.getcwd()) fails if the current working directory is not ASCII whereas sys.stdout encoding is ASCII. ........ r81361 | victor.stinner | 2010-05-19 19:15:50 +0200 (mer., 19 mai 2010) | 2 lines Oops, add the new test_log.py for distutils test suite (missing part of r81359) ........
| * Merged revisions 80905 via svnmerge fromVictor Stinner2010-05-071-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r80905 | victor.stinner | 2010-05-07 02:57:12 +0200 (ven., 07 mai 2010) | 4 lines regrtest.py: disable replace_stdout() on Windows until it is fixed See issue #8533 (problem with newlines on Windows). ........
| * Merged revisions 80694,80703 via svnmerge fromVictor Stinner2010-05-031-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r80694 | victor.stinner | 2010-05-02 11:37:08 +0200 (dim., 02 mai 2010) | 3 lines Issue #8533: Write tracebacks and failed tests to sys.stderr instead of sys.stdout to avoid UnicodeEncodeError (use backslashreplace error handler) ........ r80703 | victor.stinner | 2010-05-02 19:24:51 +0200 (dim., 02 mai 2010) | 4 lines Issue #8533: revert r80694; try a different fix: regrtest uses backslashreplace error handler for stdout to avoid UnicodeEncodeError (write non-ASCII character to stdout using ASCII encoding) ........
| * Note: only the relevant parts of r79474 are merged.Florent Xicluna2010-03-281-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merged revisions 78793,78798-78799,78977,79095,79196,79474 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r78793 | florent.xicluna | 2010-03-08 13:25:35 +0100 (lun, 08 mar 2010) | 2 lines Fix macpath to deal with bytes ................ r78798 | florent.xicluna | 2010-03-08 14:32:17 +0100 (lun, 08 mar 2010) | 18 lines Merged revisions 78777,78787,78790 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r78777 | florent.xicluna | 2010-03-08 00:49:03 +0100 (lun, 08 mar 2010) | 4 lines Backport the Popen.poll() protection from subprocess to multiprocessing. See #1731717. It should fix transient failures on test_multiprocessing. ........ r78787 | florent.xicluna | 2010-03-08 08:21:16 +0100 (lun, 08 mar 2010) | 2 lines Don't fail on a debug() statement, if the worker PID is (still) None. ........ r78790 | florent.xicluna | 2010-03-08 12:01:39 +0100 (lun, 08 mar 2010) | 2 lines On finalize, don't try to join not started process. ........ ................ r78799 | florent.xicluna | 2010-03-08 15:44:41 +0100 (lun, 08 mar 2010) | 2 lines Fix ntpath abspath to deal with bytes. ................ r78977 | florent.xicluna | 2010-03-15 14:14:39 +0100 (lun, 15 mar 2010) | 2 lines Fix \xhh specs, #1889. (an oversight of r60193, r60210). ................ r79095 | florent.xicluna | 2010-03-19 15:40:31 +0100 (ven, 19 mar 2010) | 2 lines Rename test.test_support to test.support for 3.x. ................ r79196 | florent.xicluna | 2010-03-21 13:29:50 +0100 (dim, 21 mar 2010) | 9 lines Merged revisions 79195 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79195 | florent.xicluna | 2010-03-21 13:27:20 +0100 (dim, 21 mar 2010) | 2 lines Issue #8179: Fix macpath.realpath() on a non-existing path. ........ ................ r79474 | florent.xicluna | 2010-03-28 01:25:02 +0100 (dim, 28 mar 2010) | 33 lines Merged revisions 79297,79310,79382,79425-79427,79450 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79297 | florent.xicluna | 2010-03-22 18:18:18 +0100 (lun, 22 mar 2010) | 2 lines #7668: Fix test_httpservers failure when sys.executable contains non-ASCII bytes. ........ r79310 | florent.xicluna | 2010-03-22 23:52:11 +0100 (lun, 22 mar 2010) | 2 lines Issue #8205: Remove the "Modules" directory from sys.path when Python is running from the build directory (POSIX only). ........ r79382 | florent.xicluna | 2010-03-24 20:33:25 +0100 (mer, 24 mar 2010) | 2 lines Skip tests which depend on multiprocessing.sharedctypes, if _ctypes is not available. ........ r79425 | florent.xicluna | 2010-03-25 21:32:07 +0100 (jeu, 25 mar 2010) | 2 lines Syntax cleanup `== None` -> `is None` ........ r79426 | florent.xicluna | 2010-03-25 21:33:49 +0100 (jeu, 25 mar 2010) | 2 lines #8207: Fix test_pep277 on OS X ........ r79427 | florent.xicluna | 2010-03-25 21:39:10 +0100 (jeu, 25 mar 2010) | 2 lines Fix test_unittest and test_warnings when running "python -Werror -m test.regrtest" ........ r79450 | florent.xicluna | 2010-03-26 20:32:44 +0100 (ven, 26 mar 2010) | 2 lines Ensure that the failed or unexpected tests are sorted before printing. ........ ................
| * Merged revisions 77167 via svnmerge fromBenjamin Peterson2009-12-311-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r77167 | benjamin.peterson | 2009-12-30 21:11:23 -0600 (Wed, 30 Dec 2009) | 61 lines Merged revisions 76847,76851,76869,76882,76891-76892,76924,77007,77070,77092,77096,77120,77126,77155 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r76847 | benjamin.peterson | 2009-12-14 21:25:27 -0600 (Mon, 14 Dec 2009) | 1 line adverb ........ r76851 | benjamin.peterson | 2009-12-15 21:28:52 -0600 (Tue, 15 Dec 2009) | 1 line remove lib2to3 resource ........ r76869 | vinay.sajip | 2009-12-17 08:52:00 -0600 (Thu, 17 Dec 2009) | 1 line Issue #7529: logging: Minor correction to documentation. ........ r76882 | georg.brandl | 2009-12-19 11:30:28 -0600 (Sat, 19 Dec 2009) | 1 line #7527: use standard versionadded tags. ........ r76891 | georg.brandl | 2009-12-19 12:16:31 -0600 (Sat, 19 Dec 2009) | 1 line #7479: add note about function availability on Unices. ........ r76892 | georg.brandl | 2009-12-19 12:20:18 -0600 (Sat, 19 Dec 2009) | 1 line #7480: remove tautology. ........ r76924 | georg.brandl | 2009-12-20 08:28:05 -0600 (Sun, 20 Dec 2009) | 1 line Small indentation fix. ........ r77007 | gregory.p.smith | 2009-12-23 03:31:11 -0600 (Wed, 23 Dec 2009) | 3 lines Fix possible integer overflow in lchown and fchown functions. For issue1747858. ........ r77070 | amaury.forgeotdarc | 2009-12-27 14:06:44 -0600 (Sun, 27 Dec 2009) | 2 lines Fix a typo in comment ........ r77092 | georg.brandl | 2009-12-28 02:48:24 -0600 (Mon, 28 Dec 2009) | 1 line #7404: remove reference to non-existing example files. ........ r77096 | benjamin.peterson | 2009-12-28 14:51:17 -0600 (Mon, 28 Dec 2009) | 1 line document new fix_callable behavior ........ r77120 | georg.brandl | 2009-12-29 15:09:17 -0600 (Tue, 29 Dec 2009) | 1 line #7595: fix typo in argument default constant. ........ r77126 | amaury.forgeotdarc | 2009-12-29 17:06:17 -0600 (Tue, 29 Dec 2009) | 2 lines #7579: Add docstrings to the msvcrt module ........ r77155 | georg.brandl | 2009-12-30 13:03:00 -0600 (Wed, 30 Dec 2009) | 1 line We only support Windows NT derivatives now. ........ ................
| * Merged revisions 76279 via svnmerge fromR. David Murray2009-11-151-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r76279 | r.david.murray | 2009-11-14 19:23:21 -0500 (Sat, 14 Nov 2009) | 10 lines Merged revisions 76276 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r76276 | r.david.murray | 2009-11-14 19:04:32 -0500 (Sat, 14 Nov 2009) | 3 lines Issue 7324: add a sanity check to regrtest argument parsing to catch the case of an option with no handler. ........ ................
| * Merged revisions 75525,75530,75922 via svnmerge fromR. David Murray2009-10-281-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r75525 | r.david.murray | 2009-10-19 12:33:43 -0400 (Mon, 19 Oct 2009) | 12 lines Merged revisions 75524 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r75524 | r.david.murray | 2009-10-19 12:28:24 -0400 (Mon, 19 Oct 2009) | 6 lines Eliminate warning message that looks like an error message. When it was added not finding Lib/test in the path indicated something was wrong, but when running regtest using "python -m" Lib/test isn't typically in the path, so this message is now more disturbing than it is helpful. ........ ................ r75530 | r.david.murray | 2009-10-19 14:06:17 -0400 (Mon, 19 Oct 2009) | 10 lines Merged revisions 75528 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r75528 | r.david.murray | 2009-10-19 13:53:58 -0400 (Mon, 19 Oct 2009) | 4 lines Clarify error report message, and don't recommend running in verbose mode for more information if we are already running in verbose mode. ........ ................ r75922 | r.david.murray | 2009-10-28 10:07:51 -0400 (Wed, 28 Oct 2009) | 9 lines Merged revisions 75920 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r75920 | r.david.murray | 2009-10-28 10:03:43 -0400 (Wed, 28 Oct 2009) | 2 lines Remove variable that is no longer used. ........ ................
| * Merged revisions 75279 via svnmerge fromR. David Murray2009-10-071-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r75279 | r.david.murray | 2009-10-07 19:38:55 -0400 (Wed, 07 Oct 2009) | 10 lines Merged revisions 75255 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r75255 | r.david.murray | 2009-10-05 13:03:09 -0400 (Mon, 05 Oct 2009) | 3 lines Issue #7058: Added save/restore for argv and os.environ to runtest_inner in regrtest, with warnings if the called test modifies them. ........ ................
* | Issue #11653: fix -W with -j in regrtestAntoine Pitrou2011-03-231-7/+14
| |
* | Always print out the traceback when a test "crashed"Antoine Pitrou2011-03-211-5/+2
| |
* | Add a check for sys.warnoptions in regrtest.Ezio Melotti2011-03-201-1/+8
| |
* | Get --coverage to be an acceptable flag for test.regrtest again.Brett Cannon2011-01-061-2/+2
| |
* | On Py3k, -tt and -3 are no-op and unsupported respectively.Georg Brandl2011-01-051-2/+2
| |
* | regrtest: close the new stdout and restore the original stdout at exitVictor Stinner2011-01-051-1/+10
| | | | | | | | Fix a ResourceWarning(unclosed file).
* | Mention --randseed in option listAntoine Pitrou2011-01-031-0/+1
| |
* | Issue #6293: Have regrtest.py echo back sys.flags. This is done by defaultAntoine Pitrou2011-01-031-3/+8
| | | | | | | | | | in whole runs and enabled selectively using `--header` when running an explicit list of tests. Original patch by Collin Winter.
* | #7056: runtest and runtest_inner don't use testdir, so drop it from their sigsR. David Murray2010-12-271-14/+8
| | | | | | | | | | I've only tested regular runs and -j runs. If I've broken anything else I'm sure I'll hear about it sooner or later.
* | More fine-grained monitoring of alterations to logging stateNick Coghlan2010-12-051-4/+10
| |
* | Issue 10626 investigation: regrtest now checks for alterations to the ↵Nick Coghlan2010-12-051-1/+11
| | | | | | | | logging state in the current process (and yes, test_pydoc alters it)
* | Factor out common code from lib/test/__main__.py and lib/test/regrtest.py ↵Michael Foord2010-12-031-15/+18
| | | | | | | | into a function.
* | Partially revert r78719 - it removed a check that is still needed in some ↵Nick Coghlan2010-12-031-0/+13
| | | | | | | | cases (i.e. this will allow Michael to add the test.__main__ support that broke the buildbots previously)
* | Issue #10347: ignore leading test count ("[ 1/340]") when using the -f ↵Antoine Pitrou2010-11-071-0/+2
| | | | | | | | option to regrtest.
* | set literals and unions are our friendsBenjamin Peterson2010-10-291-4/+3
| |
* | make gdb skip expectedBenjamin Peterson2010-10-291-0/+3
| |
* | Fix typoAntoine Pitrou2010-10-291-1/+1
| |
* | Make a GC run before trying to clean up files left over byAntoine Pitrou2010-10-291-0/+6
| | | | | | | | the latest test run.
* | Actually restore the original asyncore socket map by making a copy of the dictAntoine Pitrou2010-10-291-3/+6
| |
* | test_gdb should be skipped on darwin (not up to v7 yet)Skip Montanaro2010-10-251-0/+1
| |
* | Revert debug printoutAntoine Pitrou2010-10-151-3/+0
| |
* | Enable debug output at the start of the regression suite instead.Antoine Pitrou2010-10-151-0/+3
| | | | | | | | Sorry for the ephemeral inconvenience.