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
Collin Winter
a199f01986
Add the ability to control the random seed used by regrtest.py -r.
...
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.
2009-03-29 03:44:19 +00:00
Benjamin Peterson
888a39b54c
remove test_support.TestSkipped and just use unittest.SkipTest
2009-03-26 20:48:25 +00:00
Guilherme Polo
bbb7efd72b
Some tests for Tkinter.Text.search
2009-02-09 19:21:21 +00:00
Guilherme Polo
b1a98de25e
Issue #5083 : New 'gui' resource for regrtest.
2009-01-28 20:03:26 +00:00
Guilherme Polo
7a77ee88af
* Renaming test_tk_* to test_ttk_* since that is what they are testing.
...
* Added ttk tests to the expected skips mapping just like where test_tcl
was expected to be skipped too.
2009-01-28 19:28:04 +00:00
Jesse Noller
37040cdace
issue3770: if SEM_OPEN is 0, disable the mp.synchronize module, rev. Nick Coghlan, Damien Miller
2008-09-30 00:15:45 +00:00
Benjamin Peterson
e2886fd3ca
now that test_lib2to3 actually works and isn't extremely slow, we don't need the lib2to3 resource
2008-07-18 14:26:35 +00:00
Georg Brandl
1ecce468f8
Keep below 80 chars.
2008-07-05 16:43:45 +00:00
Benjamin Peterson
87988b6753
make regrtest aware of the lib2to3 resource
2008-07-05 16:29:38 +00:00
Benjamin Peterson
6f5a2b52ae
skip test_macostools when UCS4 is enabled
2008-06-19 21:39:06 +00:00
Amaury Forgeot d'Arc
8f40f0635b
test_macos can be skipped on non-mac platforms.
2008-06-19 19:57:39 +00:00
Georg Brandl
dffbf5f542
Revert copy_reg -> copyreg rename.
2008-05-20 07:49:57 +00:00
Alexandre Vassalotti
9510e4a9f8
Added module stub for copy_reg renaming in 3.0.
...
Renamed copy_reg to copyreg in the standard library, to avoid
spurious warnings and ease later merging to py3k branch. Public
documentation remains intact.
2008-05-11 08:25:28 +00:00
Brett Cannon
0aa6e1b8fb
Deprecate the dircache module for 3.0.
2008-05-10 21:12:57 +00:00
Martin v. Löwis
5f2e0e5ccb
Revert bogus checkin in r62724 to that file.
2008-05-05 17:54:01 +00:00
Martin v. Löwis
471617d6d3
Issue #1734346 : Support Unicode file names for zipfiles.
2008-05-05 17:16:58 +00:00