summaryrefslogtreecommitdiffstats
path: root/Lib/test/regrtest.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #8713: Support alternative start methods in multiprocessing on Unix.Richard Oudkerk2013-08-141-1/+1
| | | | See http://hg.python.org/sandbox/sbt#spawn
* Issue #18375: merge with 3.3Florent Xicluna2013-07-061-0/+1
|\
| * Issue #18375: Assume --randomize when --randseed is used for running the ↵Florent Xicluna2013-07-061-0/+1
| | | | | | | | testsuite.
* | Issue #15767: Excise the remaining instances of ModuleNotFoundErrorBrett Cannon2013-07-041-8/+8
| |
* | Issue #17914: Use os.cpu_count() instead of multiprocessing.cpu_count() whereCharles-François Natali2013-06-281-6/+2
| | | | | | | | applicable.
* | Issue #17206: test.regrtest and test.script_helper enable faulthandler moduleVictor Stinner2013-06-251-1/+2
| | | | | | | | in subprocesses.
* | Issue #18228: Use locale.setlocale(name, None) instead ofVictor Stinner2013-06-171-2/+2
| | | | | | | | | | | | | | locale.getlocale(name) in test.regrtest.saved_test_environment locale.getlocale() parses the locale, which is useless for saved_test_environment.
* | Issue #18228: Fix locale test of test.regrtest.saved_test_environmentVictor Stinner2013-06-171-2/+3
| | | | | | | | | | Skip LC_ALL becore getlocale(locale.LC_ALL) always fail, and catch also ValueError.
* | (Merge 3.3) regrtest.py: Fix another typo in the usage of the faulthandler ↵Victor Stinner2013-06-171-1/+1
|\ \ | |/ | | | | module
| * regrtest.py: Fix another typo in the usage of the faulthandler moduleVictor Stinner2013-06-171-1/+1
| |
* | (Merge 3.3) regrtest.py: Fix typo in the usage of the faulthandler moduleVictor Stinner2013-06-171-3/+3
|\ \ | |/
| * regrtest.py: Fix typo in the usage of the faulthandler moduleVictor Stinner2013-06-171-3/+3
| |
* | Check that warnings.showwarning() is not changed.Brett Cannon2013-06-161-1/+6
| |
* | Move test___all__ over to unittest.main() and use ModuleNotFoundErrorBrett Cannon2013-06-131-8/+8
| |
* | Issue #14135: Let's try this again.Brett Cannon2013-04-011-1/+15
| |
* | Backed out changeset 4fcd50a6dca7 as it totally breaks the test suite here.Antoine Pitrou2013-04-011-10/+1
| |
* | Issue #14135: Make sure tests don't leave the locale changed for anyBrett Cannon2013-04-011-1/+10
| | | | | | | | | | | | | | category. Thanks to Westley Martinez for trying to fix the issue and Atsuo Ishimoto for an initial patch.
* | Issue #17283: Share code between __main__.py and regrtest.py in Lib/test.Chris Jerdonek2013-02-271-18/+20
| | | | | | | | This commit also removes TESTCWD from regrtest.py's global namespace.
* | #16259: delete some no-longer-used code from regrtest.R David Murray2013-01-121-9/+1
| | | | | | | | | | dash_R is only called from one location, and from that location an indirect_test is passed.
* | Issue #16854: Fix regrtest.usage() regression introduced in 6e2e5adc0400.Chris Jerdonek2013-01-081-24/+28
| | | | | | | | | | This fixes a regression introduced in the commit for issue #15302, which switched regrtest from getopt to argparse.
* | Issue #15302: Switch regrtest from using getopt to using argparse.Chris Jerdonek2012-12-281-77/+147
| | | | | | | | | | | | This is the first step in refactoring regrtest to use argparse. The regrtest module's main() function still expects a getopt-style return value rather than an argparse.Namespace instance.
* | Merge from 3.3: Issue #15324: Fix regrtest --fromfile, --match, --randomize.Chris Jerdonek2012-12-281-3/+3
|\ \ | |/
| * Merge from 3.2: Issue #15324: Fix regrtest --fromfile, --match, --randomize.Chris Jerdonek2012-12-281-3/+3
| |\
| | * Issue #15324: Fix regrtest parsing of --fromfile, --match, and --randomize.Chris Jerdonek2012-12-281-3/+3
| | |
* | | Replace IOError with OSError (#16715)Andrew Svetlov2012-12-251-1/+1
| | |
* | | Issue #13390: New function :func:`sys.getallocatedblocks()` returns the ↵Antoine Pitrou2012-12-091-17/+37
| | | | | | | | | | | | | | | | | | number of memory blocks currently allocated. Also, the ``-R`` option to regrtest uses this function to guard against memory allocation leaks.
* | | Issue #10966: Remove the concept of unexpected skipped tests.Brett Cannon2012-11-181-293/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The concept of what was unexpected was typically defined as "some depencendy wasn't installed", which isn't unexpected at all as it's totally optional. Since it confuses new contributors as they think something is wrong with their installation it seems sensible to get rid of the concept. This change also adds the concept of optional tests that are required to work on a specific platform(s) (e.g. test_winreg on Windows). This should help catch compile issues instead of a test being blindly skipped even when it should have run. The skipped test list in the future can also print out the reason for being skipped to make it more obvious as to why the skipping occurred.
* | | Use importlib instead of calling __import__ directly.Brett Cannon2012-11-141-2/+1
| | |
* | | merge #15889: make regrtest --start succeed in more cases.R David Murray2012-10-271-2/+2
|\ \ \ | |/ / | | | | | | Patch by Chris Jerdonek.
| * | merge #15889: make regrtest --start succeed in more cases.R David Murray2012-10-271-2/+2
| |\ \ | | |/ | | | | | | Patch by Chris Jerdonek.
| | * #15889: make regrtest --start succeed in more cases.R David Murray2012-10-271-2/+2
| | | | | | | | | | | | Patch by Chris Jerdonek.
* | | Closes #16135: Removal of OS/2 supportJesus Cea2012-10-051-14/+0
|/ /
* | Closes #15632: regrtest.py: fix spurious refleaks due to various cachesStefan Krah2012-08-171-4/+9
| | | | | | | | filling up with random data.
* | regrtest: give more information when a child process fails with an errorVictor Stinner2012-08-081-3/+5
| | | | | | | | different than KeyboardInterrupt
* | Issue #15320: Make iterating the list of tests thread-safe when running ↵Antoine Pitrou2012-07-251-13/+29
|\ \ | |/ | | | | | | | | tests in multiprocess mode. Patch by Chris Jerdonek.
| * Issue #15320: Make iterating the list of tests thread-safe when running ↵Antoine Pitrou2012-07-251-12/+28
| | | | | | | | | | | | tests in multiprocess mode. Patch by Chris Jerdonek.
* | Close #15386: There was a loophole that meant importlib.machinery and imp ↵Nick Coghlan2012-07-201-0/+3
| | | | | | | | would sometimes reference an uninitialised copy of importlib._bootstrap
* | Issue #15300: Ensure the temporary test working directories are in the same ↵Antoine Pitrou2012-07-111-1/+5
|\ \ | |/ | | | | | | | | parent folder when running tests in multiprocess mode from a Python build. Patch by Chris Jerdonek.
| * Issue #15300: Ensure the temporary test working directories are in the same ↵Antoine Pitrou2012-07-111-1/+5
| | | | | | | | | | | | parent folder when running tests in multiprocess mode from a Python build. Patch by Chris Jerdonek.
* | Flush stdout and stderr when running tests in parallelAntoine Pitrou2012-06-271-0/+2
|\ \ | |/ | | | | (helps getting results in real-time when stdio is transmitted over a pipe or socket)
| * Flush stdout and stderr when running tests in parallelAntoine Pitrou2012-06-271-0/+2
| | | | | | | | (helps getting results in real-time when stdio is transmitted over a pipe or socket)
* | Packaging removal: also revert introduction of sysconfig.cfg.Éric Araujo2012-06-241-10/+8
| | | | | | | | | | | | | | We need a discussion to define what should be customized how; this new config file is premature. It was added to serve the needs of the resources system in install_data / packaging.database, so it can be removed alongside packaging for 3.3.
* | Remove packaging from the standard library.Éric Araujo2012-06-241-41/+0
| | | | | | | | | | | | Distutils2 will live on on PyPI and be included in the stdlib when it is ready. See discussion starting at http://mail.python.org/pipermail/python-dev/2012-June/120430.html
* | Implemented PEP 405 (Python virtual environments).Vinay Sajip2012-05-261-1/+1
| |
* | #14533: if a test has no test_main, use loadTestsFromModule.R David Murray2012-04-091-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This moves us further in the direction of using normal unittest facilities instead of specialized regrtest ones. Any test module that can be correctly run currently using 'python unittest -m test.test_xxx' can now be converted to use normal unittest test loading by simply deleting its test_main, thus no longer requiring manual maintenance of the list of tests to run. (Not all tests can be converted that easily, since test_main sometimes does some additional things (such as reap_children or reap_threads). In those cases the extra code may be moved to setUpModule/tearDownModule methods, or perhaps the same ends can be achieved in a different way, such as moving the decorators to the test classes that need them, etc.) I don't advocate going through and making this change wholesale, but any time a list of tests in test_main would otherwise need to be updated, consideration should instead be given to deleting test_main.
* | Closes #14158: merged test file resilience fix from 3.2.Vinay Sajip2012-03-021-4/+19
|\ \ | |/
| * Closes #14158: improved resilience to test files left behind.Vinay Sajip2012-03-021-5/+22
| |
| * Remove setting hash seed to regrtest's random seed and re-execv()ing: this ↵Georg Brandl2012-02-201-5/+0
| | | | | | | | doesn't preserve Python flags and fails from a temp directory.
| * Merge from 3.1: Issue #13703: add a way to randomize the hash values of ↵Georg Brandl2012-02-201-0/+5
| |\ | | | | | | | | | | | | | | | | | | | | | | | | basic types (str, bytes, datetime) in order to make algorithmic complexity attacks on (e.g.) web apps much more complicated. The environment variable PYTHONHASHSEED and the new command line flag -R control this behavior.
| | * Issue #13703: add a way to randomize the hash values of basic types (str, ↵Georg Brandl2012-02-201-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | bytes, datetime) in order to make algorithmic complexity attacks on (e.g.) web apps much more complicated. The environment variable PYTHONHASHSEED and the new command line flag -R control this behavior.