Antoine Pitrou
0dd8e1da28
Merged revisions 84176 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r84176 | antoine.pitrou | 2010-08-18 22:44:14 +0200 (mer., 18 août 2010) | 5 lines
Issue #9433 : The "-j" option to regrtest now works under Windows too.
It is not sure it will be beneficial, though, since process launching is
more expensive under Windows than it is under Linux.
........
2010-08-18 20:45:10 +00:00
Antoine Pitrou
1e8a75414f
Merged revisions 84086 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r84086 | antoine.pitrou | 2010-08-16 02:28:05 +0200 (lun., 16 août 2010) | 3 lines
Save and restore the global asyncore.socket_map, and warn if a test modified it
........
2010-08-16 00:32:47 +00:00
Florent Xicluna
8652f2e83e
Revert the additional OS X information (r81140). Keep the endianness information.
2010-05-13 18:16:06 +00:00
Florent Xicluna
b7d413f9bc
Add sensible information about the OS X platform to diagnose issue #8423 :
...
test_pep277 fails on "x86 Tiger" buildbot but not on "PPC Tiger".
2010-05-13 17:05:29 +00:00
Ronald Oussoren
9545a23c7f
In a number of places code still revers
...
to "sys.platform == 'mac'" and that is
dead code because it refers to a platform
that is no longer supported (and hasn't been
supported for several releases).
Fixes issue #7908 for the trunk.
2010-05-05 19:09:31 +00:00
Victor Stinner
1b4a69d79b
Issue #7449 , part 2: regrtest.py -j option requires thread support
2010-04-27 21:47:01 +00:00
R. David Murray
3bfa883207
Issue 8325: Improve regrtest --help text.
2010-04-26 16:54:57 +00:00
Florent Xicluna
1273566cb7
Fix the "regrtest -s" switch.
2010-04-23 18:10:12 +00:00
Florent Xicluna
64f6c2fcab
Remove ImportWarnings filters. They become obsolete after r79310, issue #8205 .
2010-04-23 17:59:10 +00:00
Michael Foord
91a2c89288
Switch regrtest to use StringIO instead of cStringIO for test_multiprocessing on Windows. Issue 8333.
2010-04-08 00:04:24 +00:00
Florent Xicluna
75c6676916
#8263 : Now regrtest.py will report a failure if it receives a KeyboardInterrupt (SIGINT).
2010-03-30 16:31:14 +00:00
Florent Xicluna
355adc5a45
Ensure that the failed or unexpected tests are sorted before printing.
2010-03-26 19:32:44 +00:00
Florent Xicluna
27e024023c
Skip test_ascii_formatd if _ctypes is not available (BSD, ...).
...
Previous change was incomplete (r79334).
2010-03-24 17:32:58 +00:00
Collin Winter
ac1d93167c
Fix a trivial class of (hypothetical, future) false-positive refleaks, discovered by an optimization in Unladen Swallow's past (which will become CPython's future).
2010-03-17 02:02:30 +00:00
Florent Xicluna
58526417ed
Do not print the header lines when running a single test.
2010-03-06 17:24:36 +00:00
Florent Xicluna
12d750d6b8
Backport "test.regrtest -R 2:3" syntax from py3k branch, and other minor adjustments.
2010-03-06 14:38:09 +00:00
Florent Xicluna
b7c20028fe
Print platform information to stdout, to help troubleshooting platform-specific failures.
2010-03-06 09:11:55 +00:00
Florent Xicluna
0932dc5671
Keep the test files in the ./build/ subdirectory, if Python is not installed.
...
Remove two hacks which are no longer needed after #7712 , because all __file__ attributes are absolute.
2010-03-06 08:07:44 +00:00
Ezio Melotti
8f6a287029
#7712 : add a temp_cwd context manager to test_support and use it in regrtest 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.
2010-02-10 21:40:33 +00:00
Georg Brandl
a4f46e1292
Remove unused imports in test modules.
2010-02-07 17:03:15 +00:00
Ezio Melotti
dde5b94875
#7092 : Silence more py3k warnings. Patch by Florent Xicluna.
2010-02-03 05:37:26 +00:00
Antoine Pitrou
5b77d6dfa3
Remove obsolete warning filters in regrtest.py (from issue #7092 -- patch by
...
Florent Xicluna).
2010-01-08 19:39:04 +00:00
Senthil Kumaran
ce8e33a095
Reverting the Revision: 77368. I committed Flox's big patch for tests by
...
mistake. ( It may come in for sure tough)
2010-01-08 19:04:16 +00:00
Senthil Kumaran
3ddc435af6
Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. Patch by flox
2010-01-08 18:41:40 +00:00
R. David Murray
98e3df38fd
Issue #7396 : fix -s, which was broken by the -j enhancement.
2009-12-16 11:49:46 +00:00
Benjamin Peterson
36902988a6
remove lib2to3 resource
2009-12-16 03:28:52 +00:00
Nick Coghlan
4976e3287a
Account for another cache when hunting ref leaks
2009-11-16 03:55:51 +00:00
R. David Murray
4653b8c2de
Remove 'g' from regrtest getopt argument string, since there's no
...
handler for it.
2009-11-15 00:07:00 +00:00
R. David Murray
da82689daa
Issue 7324: add a sanity check to regrtest argument parsing to
...
catch the case of an option with no handler.
2009-11-15 00:04:32 +00:00
R. David Murray
7f7eea651f
Issue #7312 (new feature): Add a -F flag to run the selected tests in
...
a loop until a test fails. Can be combined with -j. Patch by Antoine
Pitrou.
2009-11-14 15:18:22 +00:00
Georg Brandl
93c2171494
Fix constant name.
2009-10-29 21:44:56 +00:00
Georg Brandl
4045e88b8b
Use constants instead of magic integers for test result. Do not re-run with --verbose3 for environment changing tests.
2009-10-29 20:53:00 +00:00
R. David Murray
d913864efa
Remove variable that is no longer used.
2009-10-28 14:03:43 +00:00
Georg Brandl
8319170abb
Reformat the regrtest command-line option help and group the options into sections.
2009-10-27 20:55:44 +00:00
Georg Brandl
71a015ac1c
Add a regrtest option to re-run in verbose mode immediately after a test fails, and use that option on the buildbots.
2009-10-27 20:52:02 +00:00
R. David Murray
92a27b5206
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.
2009-10-19 16:28:24 +00:00
R. David Murray
282396f27a
Issue #7151 : regrtest would generate a JSON failure if there was output
...
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.
2009-10-18 21:12:37 +00:00
Nick Coghlan
8157e19e8f
Also check and restore identity of sys.path, sys.argv and os.environ rather than just their values (this picked up a few more misbehaving tests)
2009-10-17 15:48:16 +00:00
Nick Coghlan
a3e97ad5ba
Formatting tweak so that before and after values are vertically aligned
2009-10-17 07:34:27 +00:00
Nick Coghlan
2ee358eed3
Enhancement to the new environment checking code to print the changed items under -vv. Also includes a small tweak to allow underscores in the names of resources.
2009-10-17 07:30:40 +00:00
R. David Murray
14dcd43d0b
Enhanced Issue 7058 patch, which will not be backported. Refactors the
...
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).
2009-10-14 13:58:07 +00:00
R. David Murray
abe3d3ec85
Issue #7058 : Added save/restore for argv and os.environ to runtest_inner
...
in regrtest, with warnings if the called test modifies them.
2009-10-05 17:03:09 +00:00
Amaury Forgeot d'Arc
e55df1fa2a
"Fix" for the refleak report: the ABC classes are now in the _pyio module
2009-07-28 20:47:55 +00:00
Antoine Pitrou
79c3bd80ed
Backport fix for buglet from py3k
2009-06-29 14:14:56 +00:00
Antoine Pitrou
4698d9928e
Issue #6152 : New option '-j'/'--multiprocess' for regrtest allows running
...
regression tests in parallel, shortening the total runtime.
2009-05-31 14:20:14 +00:00
Collin Winter
0f489743ef
Issue 6024: make regrtest.py promote refleaks to test failures.
2009-05-14 23:26:30 +00:00
Benjamin Peterson
a9b4d4777a
make sure mode is removable while cleaning up test droppings
2009-04-29 22:44:15 +00:00
Collin Winter
f8089c7789
Issue 5665: add more pickling tests.
...
- 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.
2009-04-09 16:46:46 +00:00
R. David Murray
612f1d5f48
Remove the regrtest check that turns any ImportError into a skipped test.
...
Hopefully all modules whose imports legitimately result in a skipped
test have been properly wrapped by the previous commits.
2009-03-31 19:49:15 +00:00
R. David Murray
e7c9e092b3
Remove references to test_socket_ssl which was deleted in trunk
...
in r64392 and py3k in r59038.
2009-03-30 20:04:06 +00:00