summaryrefslogtreecommitdiffstats
path: root/Lib/test/regrtest.py
Commit message (Collapse)AuthorAgeFilesLines
* Keep the test files in the ./build/ subdirectory, if Python is not installed.Florent Xicluna2010-03-061-44/+33
| | | | Remove two hacks which are no longer needed after #7712, because all __file__ attributes are absolute.
* #7712: add a temp_cwd context manager to test_support and use it in regrtest ↵Ezio Melotti2010-02-101-4/+44
| | | | to run all the tests in a temporary directory, saving the original CWD in test_support.SAVEDCWD. Thanks to Florent Xicluna who helped with the patch.
* Remove unused imports in test modules.Georg Brandl2010-02-071-3/+2
|
* #7092: Silence more py3k warnings. Patch by Florent Xicluna.Ezio Melotti2010-02-031-1/+2
|
* Remove obsolete warning filters in regrtest.py (from issue #7092 -- patch byAntoine Pitrou2010-01-081-9/+0
| | | | Florent Xicluna).
* Reverting the Revision: 77368. I committed Flox's big patch for tests bySenthil Kumaran2010-01-081-7/+10
| | | | mistake. ( It may come in for sure tough)
* Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. ↵Senthil Kumaran2010-01-081-10/+7
| | | | Patch by flox
* Issue #7396: fix -s, which was broken by the -j enhancement.R. David Murray2009-12-161-11/+9
|
* remove lib2to3 resourceBenjamin Peterson2009-12-161-2/+0
|
* Account for another cache when hunting ref leaksNick Coghlan2009-11-161-3/+16
|
* Remove 'g' from regrtest getopt argument string, since there's noR. David Murray2009-11-151-1/+1
| | | | handler for it.
* Issue 7324: add a sanity check to regrtest argument parsing toR. David Murray2009-11-151-0/+4
| | | | catch the case of an option with no handler.
* Issue #7312 (new feature): Add a -F flag to run the selected tests inR. David Murray2009-11-141-27/+50
| | | | | a loop until a test fails. Can be combined with -j. Patch by Antoine Pitrou.
* Fix constant name.Georg Brandl2009-10-291-1/+1
|
* Use constants instead of magic integers for test result. Do not re-run with ↵Georg Brandl2009-10-291-30/+37
| | | | --verbose3 for environment changing tests.
* Remove variable that is no longer used.R. David Murray2009-10-281-1/+1
|
* Reformat the regrtest command-line option help and group the options into ↵Georg Brandl2009-10-271-20/+35
| | | | sections.
* Add a regrtest option to re-run in verbose mode immediately after a test ↵Georg Brandl2009-10-271-10/+17
| | | | fails, and use that option on the buildbots.
* Eliminate warning message that looks like an error message. When it wasR. David Murray2009-10-191-2/+0
| | | | | | 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.
* Issue #7151: regrtest would generate a JSON failure if there was outputR. David Murray2009-10-181-13/+16
| | | | | | | | | | | | to stderr during the test run and it happened to get emitted after the worker thread emitted the result JSON. Now we capture stdout and stderr separately, which avoids that problem. It also means that _all_ stderr output is after all stdout output when we print the test results, but that seems acceptable, since output ordering is not guaranteed anyway. The patch also moves the emit of the test name into the output block generated after the test completes. Otherwise test names and test output/errors were mixed in the terminal display, making it difficult to determine which test generated the output.
* Also check and restore identity of sys.path, sys.argv and os.environ rather ↵Nick Coghlan2009-10-171-6/+9
| | | | than just their values (this picked up a few more misbehaving tests)
* Formatting tweak so that before and after values are vertically alignedNick Coghlan2009-10-171-2/+2
|
* Enhancement to the new environment checking code to print the changed items ↵Nick Coghlan2009-10-171-15/+39
| | | | under -vv. Also includes a small tweak to allow underscores in the names of resources.
* Enhanced Issue 7058 patch, which will not be backported. Refactors theR. David Murray2009-10-141-37/+128
| | | | | | code, adds checks for stdin/out/err, cwd, and sys.path, and adds a new section in the summary for tests that modify the environment (thanks to Ezio Melotti for that suggestion).
* Issue #7058: Added save/restore for argv and os.environ to runtest_innerR. David Murray2009-10-051-0/+15
| | | | in regrtest, with warnings if the called test modifies them.
* "Fix" for the refleak report: the ABC classes are now in the _pyio moduleAmaury Forgeot d'Arc2009-07-281-2/+2
|
* Backport fix for buglet from py3kAntoine Pitrou2009-06-291-1/+2
|
* Issue #6152: New option '-j'/'--multiprocess' for regrtest allows runningAntoine Pitrou2009-05-311-59/+140
| | | | regression tests in parallel, shortening the total runtime.
* Issue 6024: make regrtest.py promote refleaks to test failures.Collin Winter2009-05-141-1/+11
|
* make sure mode is removable while cleaning up test droppingsBenjamin Peterson2009-04-291-0/+5
|
* Issue 5665: add more pickling tests.Collin Winter2009-04-091-1/+6
| | | | | | | | | | | - Add tests for the module-level load() and dump() functions. - Add tests for cPickle's internal data structures, stressing workloads with many gets/puts. - Add tests for the Pickler and Unpickler classes, in particular the memo attribute. - test_xpickle is extended to test backwards compatibility with Python 2.4, 2.5 and 2.6 by round-tripping pickled objects through a worker process. This is guarded with a regrtest -u xpickle resource.
* Remove the regrtest check that turns any ImportError into a skipped test.R. David Murray2009-03-311-1/+1
| | | | | Hopefully all modules whose imports legitimately result in a skipped test have been properly wrapped by the previous commits.
* Remove references to test_socket_ssl which was deleted in trunkR. David Murray2009-03-301-12/+0
| | | | in r64392 and py3k in r59038.
* Add the ability to control the random seed used by regrtest.py -r.Collin Winter2009-03-291-3/+15
| | | | This adds a --randseed option, and makes regrtest.py -r indicate what random seed it's using so that that value can later be fed back to --randseed. This option is useful for tracking down test order-related issues found by make buildbottest, for example.
* remove test_support.TestSkipped and just use unittest.SkipTestBenjamin Peterson2009-03-261-1/+2
|
* Some tests for Tkinter.Text.searchGuilherme Polo2009-02-091-0/+4
|
* Issue #5083: New 'gui' resource for regrtest.Guilherme Polo2009-01-281-1/+3
|
* * Renaming test_tk_* to test_ttk_* since that is what they are testing.Guilherme Polo2009-01-281-0/+8
| | | | | * Added ttk tests to the expected skips mapping just like where test_tcl was expected to be skipped too.
* issue3770: if SEM_OPEN is 0, disable the mp.synchronize module, rev. Nick ↵Jesse Noller2008-09-301-0/+3
| | | | Coghlan, Damien Miller
* now that test_lib2to3 actually works and isn't extremely slow, we don't need ↵Benjamin Peterson2008-07-181-2/+2
| | | | the lib2to3 resource
* Keep below 80 chars.Georg Brandl2008-07-051-2/+2
|
* make regrtest aware of the lib2to3 resourceBenjamin Peterson2008-07-051-1/+3
|
* skip test_macostools when UCS4 is enabledBenjamin Peterson2008-06-191-0/+3
|
* test_macos can be skipped on non-mac platforms.Amaury Forgeot d'Arc2008-06-191-1/+1
|
* Revert copy_reg -> copyreg rename.Georg Brandl2008-05-201-5/+5
|
* Added module stub for copy_reg renaming in 3.0.Alexandre Vassalotti2008-05-111-5/+5
| | | | | | Renamed copy_reg to copyreg in the standard library, to avoid spurious warnings and ease later merging to py3k branch. Public documentation remains intact.
* Deprecate the dircache module for 3.0.Brett Cannon2008-05-101-1/+2
|
* Revert bogus checkin in r62724 to that file.Martin v. Löwis2008-05-051-1/+1
|
* Issue #1734346: Support Unicode file names for zipfiles.Martin v. Löwis2008-05-051-1/+1
|
* Some tests did not pass on repeated calls (regrtest -R::)Amaury Forgeot d'Arc2008-04-181-0/+5
| | | | Perform additional cleanup, mostly deleting from sys.modules, or clearing the warnings registry.