Commit Graph

267 Commits

Author SHA1 Message Date
Guido van Rossum f1b0009a78 Fix path search for test data file so it works under more circumstances. 1997-10-01 22:10:32 +00:00
Guido van Rossum ae631f7f45 There was actually a test that ensured that raising an exception A
with an instance of a derived class B would really raise an A, not a
B.  Since Barry fixed this anomalous behaviour, I though I might as
well fix the test!  (Hmm, Barry, did you not run the tests or did you
miss that test_opcodes failed?)
1997-10-01 04:41:05 +00:00
Guido van Rossum a008fa52be Fixed test for socket.error to work when it's a class exception. 1997-10-01 04:39:05 +00:00
Guido van Rossum c8bf884248 Added test for __all__. 1997-09-08 16:06:20 +00:00
Guido van Rossum eeadc04200 Look for uuencoded test files in the directory containing this module, too.
(This is necessary because when imported as test.test_rgbimg, the test
directory is not on sys.path.)
1997-09-07 16:54:34 +00:00
Guido van Rossum bc8b2bd95e Look for uuencoded test files in the directory containing this module, too.
(This is necessary because when imported as test.test_rgbimg, the test
directory is not on sys.path.)
1997-09-07 16:50:45 +00:00
Guido van Rossum f9fa20b2d2 Pass optional arguments (globals(), locals(), []) to __import__() so
it will run as package test, e.g. this will run the test suite:

    import test.regrtest
    test.regrtest.main()
1997-09-07 16:42:34 +00:00
Guido van Rossum 10887a3067 Fix details in the test:
- traceback should go to stdout!
- don't import ni, import t1!
- nicer support for command line options, only if run as __main__
1997-09-07 06:12:11 +00:00
Guido van Rossum 81da02e6aa Added feeble test for reload() of packages and submodules. 1997-09-06 19:58:53 +00:00
Guido van Rossum 6c61242c78 Test set for package import. 1997-09-06 18:42:57 +00:00
Jeremy Hylton 6459627b12 Now produces some reassuring output. 1997-09-04 23:42:01 +00:00
Jeremy Hylton 9dc2b8ee07 Many more tests, including tests of many optional arguments. 1997-09-04 23:41:37 +00:00
Guido van Rossum d807b7589b The re test suite is very slow on slower hosts.
To save time, only run the first and last 10 tests except in verbose mode.
1997-09-04 14:35:45 +00:00
Barry Warsaw 6ed41a0a87 Expanded r() function to handle class exceptions. 1997-08-29 21:58:25 +00:00
Barry Warsaw 09f9547393 regression test for new sequence unpacking semantics 1997-08-25 22:17:45 +00:00
Barry Warsaw 9525df03bf Output for sequence unpacking test 1997-08-25 22:15:22 +00:00
Barry Warsaw 558f66ff53 Added a few more tests of exception class raising 1997-08-22 21:28:05 +00:00
Barry Warsaw ac405ce3f9 generated output for new tests 1997-08-22 21:27:40 +00:00
Barry Warsaw d543077aa6 Added tests of the new builtin functions issubclass() and isinstance() 1997-08-22 21:27:03 +00:00
Guido van Rossum a412220bbf Change default verbosity so that there are only three levels left: -q,
default and -v.  In default mode, the name of each test is printed.
-v is the same as the old -vv.  -q is more quiet than the old default
mode; that's fine I think.
1997-08-18 20:08:24 +00:00
Guido van Rossum e7038425b1 Tweaks to cope with strftime returning 0 without error for %Z 1997-08-18 15:37:38 +00:00
Guido van Rossum f07eaea134 Forgot to check in the fixed output for print 1997-08-18 15:36:05 +00:00
Guido van Rossum ce32096661 Oops. Of course, print b should also be print `b`. :-( 1997-08-18 13:42:28 +00:00
Guido van Rossum c95a6c1af5 Use imp.find_module() as the most certain way to find the test data. 1997-08-15 16:23:32 +00:00
Jeremy Hylton 57fa217b01 generated by regrtest.py -g 1997-08-15 16:00:02 +00:00
Jeremy Hylton 6eb4b6a0bd test the zlib module
only produce output if somethign goes wrong
1997-08-15 15:59:43 +00:00
Guido van Rossum cf00505325 Added tests for \b, \B (AMK). 1997-08-15 15:44:58 +00:00
Guido van Rossum 2b41fdccd3 Moved some non-standard format characters out of the standard list.
Also moved %c and %Z out of there, even though they are standard,
because these are locale dependent (and e.g. on Windows and Mac they
return different strings).  Finally, sorted the tables slightly
different, to match my standard docs better (%a before %A).
1997-08-14 22:23:42 +00:00
Guido van Rossum 5526e394a2 set LOOPS to 10000 1997-08-14 20:14:12 +00:00
Guido van Rossum c4c26414c5 Print `a` so encrypted text is shown in ascii, not binary. 1997-08-14 19:55:00 +00:00
Guido van Rossum e83870131b Don't call sys.exit() all over the place -- simply return the exit
status from main() and call sys.exit(main()) in the startup stub at
the end of the file.
1997-08-14 19:40:34 +00:00
Guido van Rossum 95e8053a9f 1.5a3 prerelease 1 from AMK 1997-08-13 22:34:14 +00:00
Guido van Rossum 9d9af2c7a8 Fixes for the Mac. (Jack) 1997-08-12 18:21:08 +00:00
Guido van Rossum 570278be6e Add test for function comparisons 1997-08-05 16:52:50 +00:00
Guido van Rossum 7995ed204a The reload(sys) test no longer works due to changes in the import
semantics.
1997-08-02 03:19:26 +00:00
Guido van Rossum c864ad695f Nit: round delays to 0.1 second. 1997-07-18 23:50:22 +00:00
Guido van Rossum 4994657c5f Some new tests by Jeffrey 1997-07-18 04:26:25 +00:00
Guido van Rossum 32d6f3c0ce Corresponding output. 1997-07-17 22:37:07 +00:00
Guido van Rossum 06c0ec94e4 Several additions from Jeffrey. 1997-07-17 22:36:39 +00:00
Guido van Rossum 23b225741c Added tests for sub, subn, and split. 1997-07-17 22:36:14 +00:00
Guido van Rossum a0e4c1bffc Jeffrey's latest -- seems to solve most problems! 1997-07-17 14:52:48 +00:00
Guido van Rossum 75fce308bc Add flush() method to fake file. 1997-07-17 14:51:37 +00:00
Guido van Rossum 9e48b272b9 Catch all exceptions in test modules. 1997-07-16 01:56:13 +00:00
Guido van Rossum 65cd989441 Added output from new tests. 1997-07-15 19:01:38 +00:00
Guido van Rossum 9ddd9dad80 Fixed a syntax error caused by a bad line in the Perl source. 1997-07-15 19:01:04 +00:00
Guido van Rossum e8b81313db Merged Jeffrey's changes in. 1997-07-15 18:47:48 +00:00
Guido van Rossum 16bd0ff16a Merged my changes in, and added all converted Perl tests. 1997-07-15 18:45:20 +00:00
Guido van Rossum 337c6d41d4 Jeffrey's version 1997-07-15 18:42:58 +00:00
Guido van Rossum 23b8d4c15e Tweak re_tests and test_re to differentiate between
groups that have no value and groups that are out of bounds.
1997-07-15 15:49:52 +00:00
Guido van Rossum 847ed4afb5 More tweaks; re.py is nearly there... 1997-07-15 15:40:57 +00:00