Barry Warsaw
4afdb0a89a
Output for the regression test of the new string methods.
1999-06-10 22:53:23 +00:00
Barry Warsaw
50f0e16d1b
Regression test for the new string methods.
1999-06-10 22:53:10 +00:00
Guido van Rossum
3ed1be9fbd
Regression test for date format code, by Mike Meyer.
...
(I tweaked it slightly so examples are allowed to have no date too.)
1999-05-03 19:57:01 +00:00
Fred Drake
5712fa9250
Added test case that includes a comma in the full name. This tests
...
for an old bug that's been gone a while, but was still documented
until a few minutes from now.
1999-04-28 17:38:31 +00:00
Guido van Rossum
0cf46bc0f4
Daniel Neri: OpenBSD is just as BSD'ish as the other BSD's ;-)
1999-04-19 17:22:12 +00:00
Guido van Rossum
0b7dd08d50
# Bah. The same problem occurred a second time.
1999-04-08 20:22:46 +00:00
Guido van Rossum
9b112799bc
On Windows, we suddenly find, strftime() may return "" for an
...
unsupported format string. (I guess this is because the logic for
deciding whether to reallocate the buffer or not has been improved.)
This caused the test code to crash on result[0]. Fix this by assuming
an empty result also means the format is not supported.
1999-04-08 17:23:11 +00:00
Guido van Rossum
052364b20b
Use binary mode for all gzip files we open.
1999-04-07 19:00:58 +00:00
Guido van Rossum
630a9a6894
Fix the tests now that splitdrive() no longer treats UNC paths special.
...
(Some tests converted to splitunc() tests.)
1999-04-06 19:38:18 +00:00
Guido van Rossum
8ff764f113
Jonathan Giddy write:
...
In test_cpickle.py, the module os got imported, but the line to remove
the temp file has gone missing.
1999-04-01 15:32:30 +00:00
Guido van Rossum
89ae2b9f07
Test protection against picling to/from closed (real) file.
1999-03-29 19:59:32 +00:00
Guido van Rossum
8e702d4e8e
Jonathan Giddy discovered this file was missing.
1999-03-29 15:28:54 +00:00
Guido van Rossum
447b4a0652
Test suite for UserList.
1999-03-26 16:20:45 +00:00
Guido van Rossum
3eccc48b5b
Test suite for UserDict
1999-03-26 15:32:05 +00:00
Guido van Rossum
aa3828aa35
Basic regr tests for pickle/cPickle
1999-03-25 22:38:49 +00:00
Andrew M. Kuchling
605ebddbea
Added a simple test suite for gzip. It simply opens a temp file,
...
writes a chunk of compressed data, closes it, writes another chunk, and
reads the contents back to verify that they are the same.
1999-03-25 21:50:27 +00:00
Guido van Rossum
52a0d7d802
Add tests for float() and complex() with string args (Nick/Stephanie
...
Lockwood).
1999-03-25 21:25:01 +00:00
Guido van Rossum
a6386ce1eb
Added Jeremy's test code for the sha module.
1999-03-24 19:04:32 +00:00
Guido van Rossum
4ec2698725
Remove the temp file when we're done.
1999-03-24 19:03:01 +00:00
Andrew M. Kuchling
dca7e00fd5
Added simple test for the flush() method of compression objects, trying the
...
different flush values Z_NO_FLUSH, Z_SYNC_FLUSH, Z_FULL_FLUSH.
1999-03-22 19:23:17 +00:00
Guido van Rossum
59e4f37d76
Test for popen2 module, by Chris Tismer.
1999-03-11 13:26:23 +00:00
Guido van Rossum
74ee886409
1. Print the error message (carefully) when a dl.open() fails in verbose mode.
...
2. When no test case worked, raise ImportError instead of failing.
1999-02-23 17:58:48 +00:00
Guido van Rossum
5ef8f0c3c7
According to Jeffrey Honig, bsd/os 4.0 should be added to the list.
1999-02-23 04:13:37 +00:00
Guido van Rossum
14162abf6e
The encoding type was wrong, I think.
1999-02-05 20:57:44 +00:00
Guido van Rossum
ead9d8d2d7
New test for ntpath module
1999-02-03 17:21:21 +00:00
Barry Warsaw
e11e3dee3e
Added a -s option which is useful for narrowing down memory leaks.
...
With -s only a single test is run. The next test run is chosen
sequentially from the list of all tests.
1999-01-28 19:51:51 +00:00
Barry Warsaw
ab11f60bb3
Added a new test for old filter() memory leak
1999-01-28 19:44:06 +00:00
Barry Warsaw
72588741dd
Slight reworking of this test. If nis.maps() gives a nis.error, then
...
raise an ImportError if not running verbose. This signals to the
regression framework that this test isn't applicable.
1999-01-28 04:54:33 +00:00
Barry Warsaw
e75888eb85
Test the rfc822.py module. Contains just a few simple cases, and some
...
troublesome ones encountered on the c.l.py list.
1999-01-14 20:00:58 +00:00
Guido van Rossum
4581a0c07b
New test_long.py from Tim Peters.
1998-10-02 01:19:48 +00:00
Guido van Rossum
7944ea523e
Patch by Marc-Andre Lemburg: use re module to compare test results.
...
This makes it possible to accept that on Linux %w returns "01" instead
of "1", for example.
1998-09-14 15:50:40 +00:00
Guido van Rossum
6c74fea07d
There was still something wrong. The original NOTTESTS are replaced
...
by the new '-x' arguments, losing the previous items. Thus,
test_support, test_b1 & test_b2 are executed (and warnings issued).
(Discovered by Vladimir Marangozov.)
1998-08-25 12:29:08 +00:00
Guido van Rossum
747e1cade6
Should pass explicit arguments to findtests(). Should initialize 'nottests'.
1998-08-24 13:48:36 +00:00
Guido van Rossum
4365cabf3c
Add Tim Peters' test for long ints
1998-08-13 14:20:17 +00:00
Guido van Rossum
df23ef4763
Guess what -- BSD has bifurcated again. :-(
1998-08-11 16:21:04 +00:00
Guido van Rossum
27d445f59e
Nannified, and re-indented with 4 spaces.
1998-08-10 20:12:34 +00:00
Guido van Rossum
6fd83b7b38
Generalized so it's useful for testing other packages, by Andrew
...
Kuchling @ CNRI.
1998-08-01 17:04:08 +00:00
Guido van Rossum
bd9f093fcd
Measure performance of sub(), split(), findall().
1998-07-17 21:10:42 +00:00
Guido van Rossum
c364cf8228
Added tests for findall().
...
Added test for m.groups() with default.
Added a few prints announcing various tests in verbose mode.
1998-07-17 20:05:02 +00:00
Guido van Rossum
7f1d3aa3d9
Add tests for array self-assigns. (This one has no relevance to JPython.)
1998-07-16 15:31:43 +00:00
Guido van Rossum
affd77f71e
Add tests for list self-assigns. (Sorry, this should have been here
...
before JPython 1.0 came out.)
1998-07-16 15:29:06 +00:00
Guido van Rossum
7011504e27
Improved test set for int() and long() string conversions.
1998-06-30 17:02:20 +00:00
Guido van Rossum
1cd4d52f2f
Remove RCS and #! cruft at top.
1998-06-26 13:38:38 +00:00
Guido van Rossum
69256612d7
With the recent change that makes numbers compare smaller than anything,
...
the outcome of the test for max has changed.
1998-06-11 22:25:59 +00:00
Guido van Rossum
08636f08ed
Now that test_MimeWriter is untabified, do the same here!
1998-06-11 22:22:39 +00:00
Guido van Rossum
e614fb12a0
Changed runs of 8 spaces to tab -- to satisfy the tab nanny.
1998-06-09 19:20:12 +00:00
Guido van Rossum
068ad97330
Untabified -- to satisfy the tab nanny.
1998-06-09 19:19:40 +00:00
Guido van Rossum
16653cb273
Add Tim's worst case scenario.
...
Revert to using whrandom so it will work with older versions of Python.
1998-05-26 15:05:12 +00:00
Guido van Rossum
7462942b69
Added some tests to make sure that long->int conversions near
...
sys.maxint and near -sys.maxint-1 work correctly.
1998-05-26 14:51:55 +00:00
Guido van Rossum
26fd98201f
Change the last 4-space indent into a 1-tab indent.
1998-05-22 15:05:36 +00:00
Guido van Rossum
b26a1b4e2b
Use random instead of whrandom.
1998-05-20 17:05:52 +00:00
Guido van Rossum
5f4fb913a2
Test that "import sys.imp" fails as it should.
1998-05-19 15:09:42 +00:00
Guido van Rossum
b298a300dd
Reduce memory requirements.
1998-05-12 13:21:31 +00:00
Guido van Rossum
03e35c548f
Add a few doc strings.
1998-05-10 18:27:29 +00:00
Guido van Rossum
ea176b663e
benchmark for list.sort()
1998-05-10 18:20:05 +00:00
Guido van Rossum
446898ff4a
Use hex() when outputting the various checksums so the test output is the
...
same on 32 and 64 bit machines.
1998-04-24 18:31:28 +00:00
Guido van Rossum
1740b8d2f7
New test sample -- "Nobody expects the Spanish Inquisition!"
1998-04-23 21:37:22 +00:00
Guido van Rossum
e26132cf5e
Move unified findfile() into test_support.py
1998-04-23 20:13:30 +00:00
Guido van Rossum
2ad816f47e
Add test for MimeWriter module
1998-04-23 13:33:56 +00:00
Guido van Rossum
e87ed5f6d4
Add writelines() method to Compare class.
1998-04-23 13:33:21 +00:00
Guido van Rossum
8430c583da
AMK's latest
1998-04-03 21:47:12 +00:00
Guido van Rossum
a50547e0c0
Track changes in tokenize.py
1998-04-03 19:56:40 +00:00
Guido van Rossum
41360a4696
Mass check-in after untabifying all files that need it.
1998-03-26 19:42:58 +00:00
Guido van Rossum
d151d34ebd
Add test for core dump -- make sure it doesn't come back!
1998-02-25 17:51:50 +00:00
Guido van Rossum
e60142f2c1
Adding output of test_xmllib.py
1998-02-13 16:35:21 +00:00
Guido van Rossum
c9aef03af4
Make this test work when imported from the interpreter instead of run
...
from regrtest.py (it still works there too, of course).
1998-01-29 21:53:17 +00:00
Guido van Rossum
02505e4850
New version of xmllib from Sjoerd.
...
The main incompatibility is that the error reporting method is now
called as
parser.syntax_error(msg)
instead of
parser.syntax_error(lineno, msg)
This new version also has some code to deal with the <?xml?> and
<!DOCTYPE> tags at the start of an XML document.
The documentation has been updated, and a small test module has been
created.
1998-01-29 14:55:24 +00:00
Guido van Rossum
f473cb007b
Added tests for qualified sub and split
1998-01-14 16:42:17 +00:00
Guido van Rossum
f5910e42d1
Add tests for re.L(OCALE).
1997-12-30 17:32:33 +00:00
Guido van Rossum
629bcfb8f9
Make this test succeed even when using "import test.test_zlib".
1997-12-18 05:21:07 +00:00
Guido van Rossum
92d91f56a7
Move %x test to nonstandard section because it appears to be locale specific.
1997-12-15 18:06:19 +00:00
Guido van Rossum
30da0ea124
Believe it or not, some people have an empty group database.
...
Prevent the test from failing there.
1997-12-15 14:57:19 +00:00
Guido van Rossum
6a99984e79
Use long() instead of int() to compare mktime(localtime(t) with t...
1997-12-08 21:48:01 +00:00
Guido van Rossum
dfa6790bd6
New re version from AMK
1997-12-08 17:12:06 +00:00
Guido van Rossum
91221c29f2
Support for netbsd1 and freebsd3, after suggestions by Anders Andersen
...
and Jacques Vidrine.
1997-12-02 20:30:29 +00:00
Barry Warsaw
c99a239f42
Added strop.split tests when sep is None.
1997-12-02 00:30:04 +00:00
Barry Warsaw
9181190c76
Added tests of strop.replace()
1997-11-29 00:25:30 +00:00
Guido van Rossum
e2d4dd194b
Use fuzzy comparison from test_support to compare outcome of
...
pow(x,y,z) to pow(x,y)%z.
1997-11-24 22:24:22 +00:00
Guido van Rossum
8e9ebfd337
os2 patch by Jeff Rush
1997-11-22 21:53:48 +00:00
Guido van Rossum
c1189eb524
Separate out a function pystones(loops=LOOPS) which runs the benchmark
...
and returns a (benchtime, stones) tuple. The main() function now
calls this and prints the report. Fred Drake's code.
1997-11-06 15:45:05 +00:00
Guido van Rossum
f849291e2b
Add __init__.py to test package.
1997-11-06 15:41:23 +00:00
Guido van Rossum
e8d113976c
Add empty __init__.py files to the test packages so the new policy
...
will recognize them.
1997-10-31 18:33:41 +00:00
Guido van Rossum
0874f7fdaf
Tests for tokenize.py (Ka-Ping Yee)
1997-10-27 22:15:06 +00:00
Guido van Rossum
4e8ef5fcd3
Catch KeyboardInterrupt separately and propagate it, instead of
...
reporting a "crash".
Use sys.exc_info() instead of sys.exc_type and sys.exc_value.
1997-10-20 23:46:54 +00:00
Guido van Rossum
fb5cef1160
Added separate tests for {}.get().
1997-10-20 20:10:43 +00:00
Barry Warsaw
9b887c7911
Added tests of dict.get()
1997-10-20 17:34:43 +00:00
Guido van Rossum
9ec2ed466b
Change test for re.sub() involving g<...> to use a multi-character
...
identifier. The previous re.py had a bug that wouldn't show up with
single-char identifier...
1997-10-08 04:05:08 +00:00
Guido van Rossum
d2c0ec78d2
Use `...` around binary strings.
1997-10-07 21:22:48 +00:00
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
Guido van Rossum
04a1d74229
Jeffrey's newest
1997-07-15 14:38:13 +00:00
Guido van Rossum
70f107f63d
Three fewer incorrect failures
1997-07-15 02:49:15 +00:00
Guido van Rossum
1d8b7583dc
Removed the traceback output in non-verbose mode
1997-07-11 21:14:53 +00:00
Guido van Rossum
8a9a4a2336
Jeffrey's latest.
1997-07-11 20:48:25 +00:00
Guido van Rossum
035aae0f09
Some small nits.
1997-07-11 20:47:58 +00:00
Guido van Rossum
7ffbd2f86c
This is pretty pathetic and full of errors,
...
but it makes the regression test not complain about test_re.
1997-07-11 19:43:46 +00:00
Guido van Rossum
8e0ce30ce4
test suite for re.py
1997-07-11 19:34:44 +00:00
Guido van Rossum
d9c6f4fd7d
Allow oct() result for 64-bit machines.
1997-06-06 21:14:14 +00:00
Guido van Rossum
876736cd0d
AMK's regex test suite
1997-06-03 18:07:49 +00:00
Fred Drake
cf3527b705
socket_type --> SocketType
1997-06-03 17:58:31 +00:00
Guido van Rossum
ce1fa263e6
Added tests for dict.clear(), dict.update(), dict.copy().
1997-06-02 23:14:00 +00:00
Guido van Rossum
f8580215c1
Add test for presence of socket_type.
1997-05-21 14:38:57 +00:00
Guido van Rossum
05ba2ab720
Fix ratecv test (Sjoerd).
1997-05-21 14:27:20 +00:00
Guido van Rossum
462d6e6484
More robust way of choosing a non-existant uid (faster, too).
...
(Correct version -- the previous checkin was a keyboard slip.)
1997-05-20 19:32:22 +00:00
Guido van Rossum
6308d510e9
More robust way of choosing a non-existant uid (faster, too).
1997-05-20 19:31:25 +00:00
Guido van Rossum
3f11da0aaf
Changes to make these tests work on the Mac.
1997-05-16 13:51:48 +00:00
Guido van Rossum
9522274205
Increase the child's sleep time to 5 for slow machines.
1997-05-16 13:40:41 +00:00
Barry Warsaw
4c4d5ce78a
Catch nis.error and raise TestFailed instead. This catches the
...
problem where Python is configured with the nismodule but NIS isn't
installed, or the map names don't correspond to those hardcoded in
nismodule.c (which is bogus in and of itself).
1997-05-15 18:27:49 +00:00
Guido van Rossum
4dfd458611
Fix typo in error reporting.
1997-05-14 21:38:03 +00:00
Guido van Rossum
c1c96d1b5c
Fix hex tests for 64-bit machines.
1997-05-14 21:37:23 +00:00
Guido van Rossum
2b4d2800af
Suppress fork part of socket test when we can't fork.
1997-05-14 21:12:51 +00:00
Guido van Rossum
4a0694d235
Fix sys.platform test -- on Win, it is 'win32', not 'win'.
1997-05-14 19:06:36 +00:00
Guido van Rossum
0ba7e5958c
More rational implementation of get_qualified_path() -- search along
...
sys.path instead of assuming __file__ works.
1997-05-14 18:57:21 +00:00
Guido van Rossum
0e351f34c5
Finally found a wat to set a file nonblocking that works on Irix,
...
Solaris and Linux: use os.O_NONBLOCK.
1997-05-12 22:15:52 +00:00
Guido van Rossum
16dffdca1a
Fix the NDELAY test; avoid outputting binary garbage.
1997-05-09 02:06:05 +00:00
Guido van Rossum
f518d5e98e
Print less in test_socket.
1997-05-09 01:54:45 +00:00
Guido van Rossum
7aa9fc5642
Use uuencoded test images.
1997-04-16 00:30:45 +00:00
Guido van Rossum
684480f419
Soft failure for Win32 and Mac platforms. Less output unless verbose.
1997-04-16 00:29:59 +00:00
Guido van Rossum
cc5a91dc4f
Soft failure for Win32 platform.
1997-04-16 00:29:15 +00:00
Guido van Rossum
505043f35e
No need to define assert, it's built in.
1997-04-16 00:27:45 +00:00
Guido van Rossum
62bd30c430
Catch and report ValueError raised by strftime.
1997-04-11 22:26:42 +00:00
Guido van Rossum
cb5cf9b186
Use uuencoded test images.
1997-04-09 21:25:01 +00:00
Guido van Rossum
cee1dd3f9d
Don't just die when an error is not defined; print a warning instead.
...
This for errno-challenged platforms like Windows.
1997-04-09 21:02:17 +00:00
Guido van Rossum
a6ed2254e1
Try calling getpid() from /usr/lib/libc.so instead of some other
...
random things.
1997-04-09 20:57:52 +00:00
Guido van Rossum
c9f8f1467e
Use TESTFN instead of /etc/passwd and /dev/null as test files.
1997-04-09 20:51:54 +00:00
Guido van Rossum
c1a4ba97b7
New test output for test_builtin
1997-04-02 05:44:51 +00:00
Guido van Rossum
dddf7a6fb4
Added test of complex() (that catches a bug in 1.4!).
...
Added test that ensures that int() and long() truncate float numbers
towards zero.
1997-03-31 17:13:17 +00:00
Guido van Rossum
27e280dc77
Restore old behavior of autotest and testall, using regrtest.
...
This is done for backward compatibility with Python 1.4.
1997-03-07 21:05:43 +00:00
Guido van Rossum
f58ed25967
Add "extra-verbose" mode, triggered by specifying two -v flags. In
...
this mode, all tests are run in verbose mode with their output to
stdout. No comparing of output is done.
1997-03-07 21:04:33 +00:00
Guido van Rossum
e69be3eb93
Much more rigorous testing -- we now try many times, varying in time
...
of day, day of week, and season.
Fix the weekday predictions -- these seemed to be all bogus. The new
predictions seem to correspond with strftime() on Solaris and IRIX, so
I believe they are correct.
Get rid of the test for non-standard format %C returning "the same as
date(1)". This is hard to do reliably without opening a pipe to date,
and moreover, on IRIX 6.2, %C yields the Century. So we use that
instead. (We don't complain about this in non-verbose mode anyway.)
1997-03-07 20:30:03 +00:00
Guido van Rossum
ad183bbfe6
Removed nonstandard strftime formats (strftime is tested more
...
extensively in test_strftime.py anyway).
1997-02-20 16:23:01 +00:00
Guido van Rossum
13ddde0653
Remove %n and %t from the list of standard expectations.
1997-02-19 16:25:52 +00:00
Guido van Rossum
c8504e2764
Added test for ratecv (from Sjoerd, reformatted).
1997-02-14 15:58:00 +00:00
Guido van Rossum
fc167c6ba2
Did nobody ever notice that "make test" didn't print the summary line
...
any more? This was because the *parent* process in test_socket.py did
an os._exit(0)! Getting rid of that now...
1997-01-29 16:03:45 +00:00
Guido van Rossum
866016b92d
new.code() has grown another foot, eh, another two arguments.
1997-01-27 23:25:37 +00:00
Guido van Rossum
04f2b453bb
Version 1.1. Fix memory leak and expensive comparison with None.
1997-01-18 02:20:37 +00:00
Guido van Rossum
e9fd28dae5
Add stacksize argument to new.code().
1997-01-17 21:12:06 +00:00
Guido van Rossum
1d1394e660
Make as sure as we can that the forked child does not return and
...
continue the tests.
1997-01-17 16:13:15 +00:00
Roger E. Masse
5c7e711bb1
Test output for the SGI cl C module test script.
1997-01-17 15:59:16 +00:00
Roger E. Masse
69ed964f86
Lame test script for the SGI cl C module.
1997-01-17 15:58:35 +00:00
Roger E. Masse
eca63b83ac
Output from test script for the bsddb C extension module.
1997-01-16 22:04:35 +00:00
Roger E. Masse
352e186749
Test script for the bsddb C extension module.
1997-01-16 22:04:10 +00:00
Roger E. Masse
3b039faf19
Minor output message change
1997-01-16 18:53:01 +00:00
Roger E. Masse
4852d37fdd
test output for the binascii C module test script.
1997-01-16 16:44:40 +00:00
Roger E. Masse
2a1c83441d
test script for the binascii C module.
1997-01-16 16:44:09 +00:00
Barry Warsaw
e4d7821ea4
test is no longer needed
1997-01-16 00:13:11 +00:00
Roger E. Masse
52a6ea7b7d
Opps. Added tests for the last two methods that were missing from
...
the test program: 'grey2rgb' and 'rgb2grey'
1997-01-15 20:58:55 +00:00
Roger E. Masse
e17ec8d149
Modified to use 'rgbimg' instead of the SGI specific 'imgfile' for reading
...
the imagefiles and converting tham to a format suitable for imageop. Also
added two more tests 'rgb2rgb8' and 'rgb82rgb' which remove the dependence
on the file 'greytest.rgb'.
Note: test_imgfile.py still uses 'greytest.rgb'
1997-01-15 20:07:07 +00:00
Barry Warsaw
bd8a91198d
test(): close the pipe, just to shut up Purify.
1997-01-14 17:49:15 +00:00
Barry Warsaw
7a515b9156
Output for test of the timing module
1997-01-13 23:03:54 +00:00
Barry Warsaw
a6aca46fcb
Test of the timing module
1997-01-13 23:03:07 +00:00
Barry Warsaw
5b456645fb
Use the new regrtest harness
1997-01-13 22:54:27 +00:00
Barry Warsaw
6f332d8f35
updated the hex(-16) test since hex() of a signed literal has changed.
1997-01-13 22:36:29 +00:00
Barry Warsaw
906a5e9c68
updated the oct(-100) test since oct() of a signed literal has changed.
1997-01-13 22:36:03 +00:00
Barry Warsaw
3de721d073
Catch sunaudiodev.error on open() and re-raise TestFailed exception.
1997-01-13 20:53:46 +00:00
Barry Warsaw
59e066e73b
Oops, remove debugging statements
1997-01-13 20:50:40 +00:00
Barry Warsaw
b241c42192
A slightly better test of sunaudiodev module. Include the audio data
...
in the distribution.
1997-01-13 20:34:44 +00:00
Barry Warsaw
dbfb8d4626
Rewrite the `hostname mismatch' test as per GvR suggestion.
...
Don't assume gethostbyaddr()'s primary hostname is the same as
gethostname(), or even that gethostname() can be found in the list of
hosts returned by gethostbyaddr(). We do test for at least one FQDN
in gethostbyaddr().
1997-01-13 19:35:39 +00:00
Barry Warsaw
5bc697dd31
Test of the sunaudiodev module -- it simply plays a sound if it can
...
find one and doesn't output any data that can be verified. If it
can't find a sound file by looking in the standard Solaris locations
(which we can extend later), it raises an ImportError.
1997-01-07 21:05:29 +00:00
Barry Warsaw
dce1005908
Added an os._exit(0) in the parent so we don't have two test processes
...
after test_socket.py is run!
1997-01-07 21:02:06 +00:00
Barry Warsaw
95f92dfad4
New output file for strop test
1997-01-06 22:46:45 +00:00
Barry Warsaw
da0e520bc0
Added a couple of strop.join() tests for large lists and long items
...
within the lists (new output file to be checked in shortly).
1997-01-06 22:46:07 +00:00
Roger E. Masse
32e949d1f2
This is a very inobstrusive test for the existance of the SGI cd module
...
and all it's attributes. More comprehensive examples can be found in
Demo/cd and require that you have a CD and a CD ROM drive
1997-01-03 23:00:13 +00:00
Roger E. Masse
5150542b8f
Output file for test_cd.py
1997-01-03 22:58:43 +00:00
Guido van Rossum
9d1a02ce33
Some small changes.
...
Raise ImportError instead of SystemExit when $DISPLAY is not set, so
regrtest.py will do the right thing.
Add a call to gl.clear() to clear the window before drawing in it.
Add some verbose prints for completeness.
Use gl.v2i() for the coordinates of one of the lines, for a little bit
of variety.
Reduce the time the window is displayed from 5 to 2 seconds.
1997-01-03 22:42:08 +00:00
Roger E. Masse
4a9ac0612d
Output file for test_al.py
1997-01-03 22:39:31 +00:00
Roger E. Masse
1f983df3bd
This is a very inobstrusive test for the existance of the al module and all
...
it's attributes. More comprehensive examples can be found in Demo/al
1997-01-03 22:39:03 +00:00
Barry Warsaw
61bc874b19
Output of socket module test.
1997-01-03 20:04:09 +00:00
Barry Warsaw
cf3d4b5123
Test of the socket module. The following functions and methods are
...
not currently tested (or even touched):
# socket.fromfd()
# sktobj.getsockopt()
# sktobj.recvfrom()
# sktobj.sendto()
# sktobj.setblocking()
# sktobj.setsockopt()
# sktobj.shutdown()
1997-01-03 20:03:32 +00:00
Roger E. Masse
7a61f871a7
Updated to include the verbose flag from test_support
1997-01-03 19:20:17 +00:00
Guido van Rossum
04ebf5ca5d
Change the ``calcsize*3'' test to be portable to 64-bit machines.
1997-01-03 19:00:37 +00:00
Barry Warsaw
461a1c172f
Output for signal module test
1997-01-03 16:01:20 +00:00
Guido van Rossum
420c11c6aa
Added f/d tests for specific byte orders.
1997-01-03 00:09:46 +00:00
Barry Warsaw
5afafad82d
<rotorobj>.setkey() now requires exactly one argument
1997-01-02 20:02:44 +00:00
Guido van Rossum
2a37850273
Exercise the new feature set somewhat.
...
Use TestFailed exception and verbose flag from test_support module.
1996-12-31 17:25:47 +00:00
Roger E. Masse
cf284cc5db
Test output for the gl C extension module.
1996-12-24 19:36:33 +00:00
Roger E. Masse
6da2953f1e
gl is a *huge* module. This is a very simple test that insures that
...
all the modules attributes are present and creates a small criss-cross
window for 5 seconds (example from the documentation :-) A more
comprehensive test would probably be useful... but maybe overkill.
1996-12-24 19:36:07 +00:00
Barry Warsaw
fb817cd4a2
Output files
...
test_rotor.py: New test of the rotor module.
test_*: converted to the new test harness. GvR note! test_signal.py
works interatively (i.e. when verbose=1) but does not work inside the
test harness. It must be a timing issue, but I haven't figured it out
yet.
1996-12-23 23:40:11 +00:00
Barry Warsaw
5e056bbb76
test_rotor.py: New test of the rotor module.
...
test_*: converted to the new test harness. GvR note! test_signal.py
works interatively (i.e. when verbose=1) but does not work inside the
test harness. It must be a timing issue, but I haven't figured it out
yet.
1996-12-23 23:39:42 +00:00
Roger E. Masse
f85f052035
Very very small comment change.
1996-12-20 22:39:24 +00:00
Roger E. Masse
fab8ab8067
Many scripts, but small changes. Update the way the scripts obtain the
...
'verbose' flag ala GvR updated test harness architecture.
Old way:
verbose = 0
if __name__ == '__main__':
verbose = 1
New way:
from test_support import verbose
Some other small readablility and functionality updates.
1996-12-20 22:36:52 +00:00
Barry Warsaw
4b722788ae
added test of the regex module
...
[NOTE: testall.py and autotest.py might could go away soon, I've
played with Guido's new regrtest.py script and it seems to work well.
I'll wait until Guido gives the word to completely switch over -- and
change the Makefile too!]
1996-12-20 22:00:21 +00:00
Roger E. Masse
4455cd8e19
More and better comments.
1996-12-20 21:52:29 +00:00
Roger E. Masse
3507f502c9
Minor semantic cleanup.
1996-12-20 21:47:58 +00:00
Roger E. Masse
e9e0bd90ae
Output for test script for the SGI imgfile module.
1996-12-20 21:42:09 +00:00
Roger E. Masse
033d91b784
Test script for the SGI imgfile module.
1996-12-20 21:41:50 +00:00
Roger E. Masse
470dcbf8e3
8 bit greyscale test file needed for testing imageop and imgfile.
1996-12-20 20:50:10 +00:00
Roger E. Masse
47e98307e0
Test program for the SGI imageop module.
1996-12-20 20:49:06 +00:00
Roger E. Masse
cfaac40e31
test output for SGI imageop C module.
1996-12-20 20:47:17 +00:00
Guido van Rossum
0b25a662e0
Two new files (to shut up regrtest).
1996-12-20 03:14:42 +00:00
Guido van Rossum
4f30aff585
Added example DL for SGI IRIX.
1996-12-20 03:13:36 +00:00
Guido van Rossum
4fdb744f53
Added test for minmax.
1996-12-20 03:13:06 +00:00
Guido van Rossum
152494aea2
New regression test harness. See usage message / doc string.
1996-12-20 03:12:20 +00:00
Guido van Rossum
2bde783a97
Import verbose flag from test_support instead of testing __name__.
1996-12-20 03:03:39 +00:00
Guido van Rossum
0a94cc788e
Set test_support.verbose to 0, to signal tests only to generate
...
portable output.
1996-12-20 03:03:01 +00:00
Guido van Rossum
531661c1ae
Add verbose flag for regression test to clear.
1996-12-20 02:58:22 +00:00
Barry Warsaw
a09ec19a33
Test of the operator module
1996-12-18 19:56:22 +00:00
Roger E. Masse
96bd636ad1
Test script output for the UNIX group file access module (grp)
1996-12-18 19:37:07 +00:00
Roger E. Masse
749cc6b241
Test script for the UNIX group file access module (grp)
1996-12-18 19:36:34 +00:00
Guido van Rossum
5eaf457869
Different operation in verbose mode: show the supported nonstandard
...
options. Also added two: %n and %t (newline and tab character).
1996-12-18 18:03:10 +00:00
Barry Warsaw
af82a7ef49
In lieu of harness rewrite, fixed problem with test_thread ImportError
...
triggering a bogus TestFailed exception.
1996-12-18 16:39:31 +00:00
Roger E. Masse
d87e0bf651
Test output for the GNU dbm module (gdbm)
1996-12-17 19:54:46 +00:00