Commit Graph

306 Commits

Author SHA1 Message Date
Ross Lagerwall fe2f1ad5b5 Issue #11719: Fix message about unexpected test_msilib skip.
Patch by Nadeem Vawda.
2011-04-09 20:39:50 +02:00
R. David Murray 561b96f98c Merged revisions 86542,87136,87216,87221,87228,87256,87337-87338,87372,87516,87571,88164 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r86542 | r.david.murray | 2010-11-19 22:48:58 -0500 (Fri, 19 Nov 2010) | 2 lines

  Make test class name unique so that both test classes run.
........
  r87136 | r.david.murray | 2010-12-08 17:53:00 -0500 (Wed, 08 Dec 2010) | 6 lines

  Have script_helper._assert_python strip refcount strings from stderr.

  This makes the output of the function and those that depend on it
  independent of whether or not they are being run under a debug
  build.
........
  r87216 | r.david.murray | 2010-12-13 17:50:30 -0500 (Mon, 13 Dec 2010) | 2 lines

  #10698: fix typo in example.
........
  r87221 | r.david.murray | 2010-12-13 19:55:46 -0500 (Mon, 13 Dec 2010) | 4 lines

  #10699: fix docstring for tzset: it does not take a parameter

  Thanks to Garrett Cooper for the fix.
........
  r87228 | r.david.murray | 2010-12-13 21:25:43 -0500 (Mon, 13 Dec 2010) | 2 lines

  Turn on regrtest -W (rerun immediately) option for Windows, too.
........
  r87256 | r.david.murray | 2010-12-14 21:19:14 -0500 (Tue, 14 Dec 2010) | 2 lines

  #10705: document what the values of debuglevel are and mean.
........
  r87337 | r.david.murray | 2010-12-17 11:11:40 -0500 (Fri, 17 Dec 2010) | 2 lines

  #10559: provide instructions for accessing sys.argv when first mentioned.
........
  r87338 | r.david.murray | 2010-12-17 11:29:07 -0500 (Fri, 17 Dec 2010) | 2 lines

  #10454: clarify the compileall docs and help messages.
  [changes to compileall.py were not backported, only the doc changes]
........
  r87372 | r.david.murray | 2010-12-18 11:39:06 -0500 (Sat, 18 Dec 2010) | 2 lines

  #10728: the default for printing help is sys.stdout, not stderr.
........
  r87516 | r.david.murray | 2010-12-27 15:09:32 -0500 (Mon, 27 Dec 2010) | 5 lines

  #7056: runtest and runtest_inner don't use testdir, so drop it from their sigs

  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.
........
  r87571 | r.david.murray | 2010-12-29 14:06:48 -0500 (Wed, 29 Dec 2010) | 2 lines

  Fix same typo in docs.
........
  r88164 | r.david.murray | 2011-01-24 14:34:58 -0500 (Mon, 24 Jan 2011) | 12 lines

  #10960: fix 'stat' links, link to lstat from stat, general tidy of stat doc.

  Original patch by Michal Nowikowski, with some additions and wording
  fixes by me.

  I changed the wording from 'Performs a stat system call' to 'Performs
  the equivalent of a stat system call', since on Windows there are no
  stat/lstat system calls involved.  I also extended Michal's breakout
  of the attributes into a list to the other paragraphs, and rearranged
  the order of the paragraphs in the 'stat' docs to make it flow
  better and put it in what I think is a more logical/useful order.
........
2011-02-11 17:25:54 +00:00
Antoine Pitrou 8c688bea26 Merged revisions 87704-87705 via svnmerge from
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
........
2011-01-03 20:49:01 +00:00
R. David Murray 0960bc586e Merged revisions 85086 via svnmerge from
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.
........
2010-12-04 17:24:46 +00:00
Antoine Pitrou a71bfc46d0 Merged revisions 85926 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r85926 | antoine.pitrou | 2010-10-29 13:54:38 +0200 (ven., 29 oct. 2010) | 3 lines

  Actually restore the original asyncore socket map by making a copy of the dict
........
2010-10-31 13:17:46 +00:00
Antoine Pitrou 0d75957d91 Merged revisions 85935-85936 via svnmerge from
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
........
2010-10-31 13:15:24 +00:00
Skip Montanaro 29cdfe696a test_gdb should be skipped on darwin (not up to v7 yet) 2010-10-25 01:35:23 +00:00
Antoine Pitrou d989f820c8 Merged revisions 85482 via svnmerge from
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.
........
2010-10-14 15:43:25 +00:00
Antoine Pitrou a226c9100d Merged revisions 85469 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r85469 | antoine.pitrou | 2010-10-14 13:12:00 +0200 (jeu., 14 oct. 2010) | 3 lines

  Inherit interpreter flags in parallel testing
........
2010-10-14 11:15:50 +00:00
Florent Xicluna 928474561c Merged revisions 83524,84776 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r83524 | georg.brandl | 2010-08-02 14:20:23 +0200 (lun., 02 août 2010) | 1 line

  #9428: fix running scripts from profile/cProfile with their own name and the right namespace.  Same fix as for trace.py in #1690103.
........
  r84776 | florent.xicluna | 2010-09-13 18:35:02 +0200 (lun., 13 sept. 2010) | 1 line

  Make test.regrtest.__file__ absolute, this was not always the case when running profile or trace, for example.  (issue #9323)
........
2010-09-13 17:36:36 +00:00
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