Guido van Rossum
f7221c3a7d
Test case for fork1() behavior.
...
Only the main thread should survive in the child after a fork().
2000-02-25 19:25:05 +00:00
Andrew M. Kuchling
5ebfa2ae9f
Add tests to exercise sequence operations (multiplication, indexing,
...
slicing) using long integers
2000-02-23 22:23:17 +00:00
Guido van Rossum
cba04366a4
Added test for new crc32() function.
2000-02-16 21:13:06 +00:00
Fred Drake
ad892dc80d
Make this pass the -tt test.
2000-02-10 15:31:07 +00:00
Fred Drake
a710d6e20c
Added test case for accessing gsbm database by key after it's closed;
...
it should raise gdbm.error.
2000-02-07 17:15:48 +00:00
Fred Drake
db1bd5c230
Revise tests to support str(<long int object>) not appending "L".
1999-12-23 15:36:42 +00:00
Guido van Rossum
910d9a0634
Test output.
...
(XXX perhaps a bit too verbose; in particular it is sensitive to
all the doc strings.)
1999-10-19 19:09:00 +00:00
Guido van Rossum
fdecda0123
Rewritten -- this now tests the binascii *except* for the binhex
...
module, which is tested by test_binhex.py.
1999-10-19 19:08:13 +00:00
Guido van Rossum
a0e85b241d
Test output for test_binhex.py.
1999-10-19 19:07:33 +00:00
Guido van Rossum
7b8f1abfca
This test really only tests the binhex module.
...
Renamed it and adapted a comment and an error message.
1999-10-19 17:48:54 +00:00
Guido van Rossum
ba508a21e0
Add test case for bug just fixed by Stephen Turner.
1999-07-13 15:23:42 +00:00
Barry Warsaw
7c5b9d1fa9
added a test for "To: :" patch
1999-07-12 18:47:00 +00:00
Guido van Rossum
47ac4e6b41
Add the test case provided by Barry Scott for his patch.
1999-06-15 18:56:46 +00:00
Barry Warsaw
6e1d78a181
Added a couple of endswith test cases for bugs reported by Timbot.
...
Also added a short circuit for the regression test suite since CVS
insisted on putting this file in the main branch. :(
1999-06-15 16:49:11 +00:00
Barry Warsaw
d5258681e7
Added more tests of join
1999-06-14 18:38:42 +00:00
Barry Warsaw
122473fc70
Two extra startswith tests
1999-06-11 17:51:13 +00:00
Barry Warsaw
8a9514a660
Harness can now test object methods directly, if they aren't available
...
in the string module.
Add a bunch of new tests for extended startswith/endswith arguments.
1999-06-11 17:48:07 +00:00
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