summaryrefslogtreecommitdiffstats
path: root/Lib/test/regrtest.py
Commit message (Collapse)AuthorAgeFilesLines
* Get rid of relative imports in all unittests. Now anything thatBarry Warsaw2002-07-231-2/+1
| | | | | | | | | | | imports e.g. test_support must do so using an absolute package name such as "import test.test_support" or "from test import test_support". This also updates the README in Lib/test, and gets rid of the duplicate data dirctory in Lib/test/data (replaced by Lib/email/test/data). Now Tim and Jack can have at it. :)
* Add missing comma.Jeremy Hylton2002-07-171-1/+1
|
* Add a rather generous set of tests allowed to be skipped on sunos5.Guido van Rossum2002-07-171-0/+23
|
* Whitespace normalization.Tim Peters2002-07-161-27/+27
|
* printlist(): Replaced the guts with a call to textwrap. Yay!Tim Peters2002-07-041-30/+19
|
* Patch #488073: AtheOS port.Martin v. Löwis2002-06-111-0/+28
|
* Added -t (--threshold) option to call gc.set_threshold(N).Guido van Rossum2002-06-071-25/+30
|
* regrtest has a newTim Peters2002-06-021-7/+34
| | | | | | | | | | | | | | -f/--fromfile <filename> option. This runs all and only the tests named in the file, in the order given (although -x may weed that list, and -r may shuffle it). Lines starting with '#' are ignored. This goes a long way toward helping to automate the binary-search-like procedure I keep reinventing by hand when a test fails due to interaction among tests (no failure in isolation, and some unknown number of predecessor tests need to run first -- now you can stick all the test names in a file, and comment/uncomment blocks of lines until finding a minimal set of predecessors).
* Fred's recent changes to support "-u all" resulted in subset resourceAndrew MacIntyre2002-04-301-1/+1
| | | | selections (eg "-u network") being ignored.
* test_resource has no chance of running on Windows.Tim Peters2002-04-231-0/+1
|
* Enable universal newlines on Windows. Note that NEWS needs more words!Tim Peters2002-04-211-1/+0
|
* Expect test_email_codecs to be skipped -- few users or developers willGuido van Rossum2002-04-161-0/+1
| | | | have the needed optional Japanese codecs installed.
* OK, don't call resetwarnings().Tim Peters2002-04-161-2/+0
|
* It makes more sense to call resetwarnings() after every test runs thanTim Peters2002-04-161-0/+2
| | | | to keep doing that in every test that wants to filter a warning.
* I expect test_univnewlines to be skipped on Windows. I expect thisTim Peters2002-04-151-0/+1
| | | | | because it *is* skipped. I'm not entirely sure it should be skipped, but figuring that out would take actual thought <wink>.
* Clean up the "all" support for -u.Fred Drake2002-04-111-1/+2
|
* I don't expect test_email_codecs to run on Windows.Tim Peters2002-04-111-0/+1
|
* Added the resource name "all" to enable all of the optional resource uses.Fred Drake2002-04-111-2/+11
| | | | This is nice for use with "make TESTOPTS='-u all' test".
* We expect to skip the new test_mpz on Windows.Tim Peters2002-04-011-1/+5
|
* first cut at skip-list for hp-ux 11 based upon input from Bill Lawler at HP.Skip Montanaro2002-03-151-0/+30
|
* Fix typoNeal Norwitz2002-02-081-1/+1
|
* Added test_socketserver and test_unicode_file to tests expected to beJack Jansen2001-12-141-0/+2
| | | | | skipped on Mac OS X. Not sure yet about test_locale.py: this may be due to my copy of Mac OS X (although it talks english fine enough).
* sys.platform on Mac OS X is now "darwin", without any version number appended.Jack Jansen2001-12-051-1/+1
| | | | This should probably go into NEWS (who's responsible for that?).
* Added tests expected to be skipped on Mac OS X.Jack Jansen2001-12-021-0/+21
|
* Merged changes made on r22b2-branch between r22b2 and r22b2-mac (theJack Jansen2001-11-301-0/+1
| | | | changes from start of branch upto r22b2 were already merged, of course).
* Whitespace normalization.Tim Peters2001-10-301-1/+1
|
* SF patch #474590 -- RISC OS supportGuido van Rossum2001-10-241-2/+44
|
* test_curses is an expected skip on Linux too.Guido van Rossum2001-10-231-0/+1
|
* Record that test_curses doesn't run on win32.Tim Peters2001-10-221-0/+1
|
* Patch #473187: Add a test script that exercises most of the functions inAndrew M. Kuchling2001-10-221-1/+4
| | | | | the curses module. It's not run automatically; '-u curses' must be specified as an argument to regrtest
* Whitespace normalization.Tim Peters2001-10-181-1/+1
|
* Make sure the output lists are sorted, even if run with -r.Jeremy Hylton2001-10-171-0/+6
|
* Remove an infelicitous space.Fred Drake2001-09-281-1/+1
|
* regrtest's -g option stopped working, during the changes to improveTim Peters2001-09-281-1/+1
| | | | | error-reporting for the classic compare-expected-output tests. Curiously, the bug consisted of not simplifying the logic enough!
* Guido points out that sys.__stdout__ is a bit bucket under IDLE. So keepTim Peters2001-09-251-0/+1
| | | | | | | the local save/modify/restore of sys.stdout, but add machinery so that regrtest can tell test_support the value of sys.stdout at the time regrtest.main() started, and test_support can pass that out later to anyone who needs a "visible" stdout.
* Get rid of the increasingly convoluted global tricks w/ sys.stdout, inTim Peters2001-09-251-2/+2
| | | | favor of local save/modify/restore. The test suite should run fine again.
* Since the most likely failure mode for an expected-output test is a changeTim Peters2001-09-221-15/+22
| | | | | | | somewhere inside a line, use ndiff so that intraline difference marking can point out what changed within a line. I don't remember diff-style abbreviations either (haven't used it since '94, except to produce patches), so say the rest in English too.
* reportdiff(): print a "plain diff" style diff.Guido van Rossum2001-09-211-4/+30
| | | | XXX This should really be a unified diff, but I can't be bothered.
* Oops. I didn't expect that some tests (test_cookie) have expectedGuido van Rossum2001-09-211-9/+2
| | | | | output *and* doctest stuff. Assuming the doctest stuff comes after the expected output, this fixes that.
* Change the way unexpected output is reported: rather than stopping atGuido van Rossum2001-09-211-78/+40
| | | | | | | | | | the first difference, let the test run till completion, then gather all the output and compare it to the expected output using difflib. XXX Still to do: produce diff output that only shows the sections that differ; currently it produces ndiff-style output because that's the easiest to produce with difflib, but this becomes a liability when the output is voluminous and there are only a few differences.
* Get rid of a superfluous space after "--" in the message printed for aGuido van Rossum2001-09-181-2/+1
| | | | skipped test -- the print command already supplies a space.
* Make test_socketserver require the network resource.Tim Peters2001-09-181-0/+1
| | | | Add it back to the list of tests we expect to skip on Windows.
* I don't expect test_socketserver to get skipped on Windows anymore.Tim Peters2001-09-181-1/+0
|
* Teach regrtest how to pass on doctest failure msgs. This is done via aTim Peters2001-09-091-2/+6
| | | | | | | | | | | horridly inefficient hack in regrtest's Compare class, but it's about as clean as can be: regrtest has to set up the Compare instance before importing a test module, and by the time the module *is* imported it's too late to change that decision. The good news is that the more tests we convert to unittest and doctest, the less the inefficiency here matters. Even now there are few tests with large expected-output files (the new cost here is a Python-level call per .write() when there's an expected- output file).
* Two small changes to the resource usage option:Guido van Rossum2001-09-061-2/+3
| | | | | | | | (1) Allow multiple -u options to extend each other (and the initial value of use_resources passed into regrtest.main()). (2) When a test is run stand-alone (not via regrtest.py), needed resources are always granted.
* Patch #453627: Adds a list of tests that are expected to be skipped for ↵Martin v. Löwis2001-09-051-0/+24
| | | | UnixWare 7.x systems.
* Whitespace normalization (tabs -> 4 spaces) in the Mac expectations.Guido van Rossum2001-09-021-35/+35
|
* Added list of tests expected to be skipped on the mac.Jack Jansen2001-08-281-0/+36
|
* Removed --have-resources flag in favor of the more granular -u/--useBarry Warsaw2001-08-201-22/+61
| | | | | | | | | | | | | | | | | | | flag, which specifies external or resource intensive tests to perform. This is used by test_largefile and test_socket_ssl. -u/--use takes a comma separated list of flags, currently supported: largefile, network. usage(): New function. Note that the semantics of main() have changed slightly; instead of returning an error code, it raises a SystemExit (via sys.exit()) with the given error code. main(): use_large_resources => use_resources Also, added support for long-option alternative to the short options. _expectations: Added test_socket_ssl to the list of expectedly skipped tests.
* Fix SF bug [ #450245 ] Error in parsing future stmtsJeremy Hylton2001-08-201-0/+1
| | | | | Add test case to cover multiple future statements on separate lines of a module.