Tim Peters
461922a005
Pickles have a number of storage formats for various sizes and kinds of
...
integers, but the std tests don't exercise most of them. Repair that.
CAUTION: I expect this to fail on boxes with sizeof(long)==8, in the
part of test_cpickle (but not test_pickle) trying to do a binary mode
(not text mode) load of the embedded BINDATA pickle string. Once that
hypothesized failure is confirmed, I'll fix cPickle.c.
2001-04-09 20:07:05 +00:00
Tim Peters
c58440fcef
No functional change -- just added whitespace in places so I could follow
...
the logic better. Will be adding some additional tests later today.
2001-04-09 17:16:31 +00:00
Tim Peters
7e01e284cb
Whitespace normalization.
2001-04-08 07:44:07 +00:00
Tim Peters
eb26f95906
Since Guido fiddled Cookie.py to work with doctest, it's a Good Thing to
...
have the std test suite exercise the Cookie doctests too.
2001-04-06 21:20:58 +00:00
Tim Peters
f95423e265
Remove lines for asynchat & asyncore, as they've now got their own test.
2001-04-06 18:59:17 +00:00
Guido van Rossum
dca060c55c
After testing the test on Unix, several improvements:
...
- Use push() instead of send(), and make these calls in main().
- Sleep a second to give the server thread time to initialize itself.
2001-04-06 16:43:49 +00:00
Guido van Rossum
66172520ee
Add test for asynchat. This also tests asyncore.
2001-04-06 16:32:22 +00:00
Tim Peters
7d3bad66e4
Sf bug [ #412214 ] ZipFile constructor leaves files open.
...
This applies the patch Fred Drake created to fix it.
I'm checking it in since I had to apply the patch anyway in order
to test its behavior on Windows.
2001-04-04 18:56:49 +00:00
Tim Peters
a19a168ccc
Whitespace normalization.
2001-03-29 04:36:09 +00:00
Guido van Rossum
1417144f33
Based on info from Jens@digicool.com, add 'darwin1' to the list of
...
BSD-style OS'es. Makes sense, really.
2001-03-28 01:14:56 +00:00
Fred Drake
3d9091ece1
Itamar Shtull-Trauring <itamar@maxnm.com>:
...
Add support to zipfile to support opening an archive represented by an
open file rather than a file name.
2001-03-26 15:49:24 +00:00
Barry Warsaw
2108bc7ab0
main(): Application of SF patch #405851 , which allows this test to be
...
used by Jython. The tests in this module expect C locale, so be
explicit about setting that (for CPython). However, in Jython, there
is no C locale, so instead be explicit about setting the US locale.
Closes the patch.
2001-03-23 20:24:07 +00:00
Barry Warsaw
559f6680c2
In Jython, `@' is not allowed in module names. Extend the TESTFN test
...
to use "$test" when in Jython. Closes SF patch #403668 .
2001-03-23 18:04:02 +00:00
Barry Warsaw
6870bba459
Make socket.getservbyname test optional on socket module having that
...
attribute. Jython does not have this function.
Closes SF patch #403667 .
2001-03-23 17:40:16 +00:00
Barry Warsaw
dfdac1af4d
Several changes for Jython portability. This closes SF patch
...
#403666 . Specifically,
In codestr, force `c' to be global. It's unclear what the semantics
should be for a code object compiled at module scope, but bound and
run in a function. In CPython, `c' is global (by accident?) while in
Jython, `c' is local. The intent of the test clearly is to make `c'
global, so let's be explicit about it.
Jython also does not have a __builtins__ name in the module's
namespace, so we use a more portable alternative (though I'm not sure
why the test requires "__builtins__" in the g namespace).
Finally, skip the new.code() test if the new module doesn't have a
`code' attribute. Jython will never have this.
2001-03-23 16:13:30 +00:00
Ka-Ping Yee
f170d7fea7
Don't have trace() skip the top frame; return them all.
2001-03-23 05:14:10 +00:00
Fred Drake
b0fefc5121
Convert the weakref test suite to PyUNIT, and add tests that exercise weak
...
references on function objects and both bound and unbound methods.
2001-03-23 04:22:45 +00:00
Fred Drake
84a5934f8a
When the regression test is run in verbose mode, make the PyUNIT-based
...
tests a little noisier, providing more progress information.
2001-03-23 04:21:17 +00:00
Fredrik Lundh
015415ed14
SRE 2.1b2: increase the chances that the sre test works on other
...
machines...
2001-03-22 23:48:28 +00:00
Fredrik Lundh
987f1332fe
SRE 2.1b2: forgot to update one output file (sorry, Fred!)
2001-03-22 23:29:04 +00:00
Fredrik Lundh
17741be466
SRE 2.1b1: don't do unicode tests under 1.5.2, or on unicode
...
strings/patterns.
2001-03-22 15:51:28 +00:00
Fredrik Lundh
b25e1ad253
sre 2.1b2 update:
...
- take locale into account for word boundary anchors (#410271 )
- restored 2.0's *? behaviour (#233283 , #408936 and others)
- speed up re.sub/re.subn
2001-03-22 15:50:10 +00:00
Thomas Wouters
b0dbeef1c4
Allow the process of reading back what we wrote to a pty to transform
...
linefeeds into carriagereturn-linefeeds (which is apparently what IRIX
does.) Also add some comments, an extra test and reorganize it a bit.
2001-03-22 14:50:24 +00:00
Steve Purcell
5ddd1a8dcb
Updated to latest PyUnit version (1.31 in PyUnit CVS); test_support.py
...
changed accordingly.
2001-03-22 08:45:36 +00:00
Guido van Rossum
f6e47ad4bd
Check that f.keys() == [] right after creation -- this prevents bugs
...
like the one I just fixed to come back and haunt us.
2001-03-22 00:40:23 +00:00
Tim Peters
24a4191160
Changed doctest to run tests in alphabetic order of name.
...
This makes verbose-mode output easier to dig thru, and removes an accidental
dependence on the order of dict.items() (made visible by recent changes to
dictobject.c).
2001-03-21 23:07:59 +00:00
Jeremy Hylton
09ccc3a22a
Test that traceback module works with SyntaxErrors with or without carets.
2001-03-21 20:33:04 +00:00
Fred Drake
91751143eb
Add test cases for the fnmatch module.
2001-03-21 18:29:25 +00:00
Fred Drake
cd1b1dd6d2
Just import sys at the top instead of inside lots of functions.
...
Add some helpers for supporting PyUNIT-based unit testing.
2001-03-21 18:26:33 +00:00
Jeremy Hylton
5c7a2513ec
Add tests for recent changes:
...
- global stmt in class does not affect free vars in methods
- locals() works with free and cell vars
2001-03-21 16:44:39 +00:00
Tim Peters
eba5130e4f
Addrf simple test that import is case-sensitive.
2001-03-21 03:58:16 +00:00
Jeremy Hylton
e241e29f3d
Add test for a list comprehension that is nested in the left-hand part
...
of another list comp. This caused crashes reported as SF bugs 409230
and 407800.
Note that the new tests are in a function so that the name lookup code
isn't affected by how many *other* list comprehensions are in the same
scope.
2001-03-19 20:42:11 +00:00
Tim Peters
9e6f278fc1
Repair test_doctest's expected-output file (Guido added some new output).
2001-03-18 20:14:25 +00:00
Tim Peters
0f33604e17
SF bug [ #409448 ] Complex division is braindead
...
http://sourceforge.net/tracker/?func=detail&aid=409448&group_id=5470&atid=105470
Now less braindead. Also added test_complex.py, which doesn't test much, but
fails without this patch.
2001-03-18 08:21:57 +00:00
Tim Peters
30edd2387d
Whitespace normalization.
2001-03-16 08:29:48 +00:00
Guido van Rossum
a8f7e59761
Oops. A RISCOS patch I forgot to check in.
2001-03-13 09:31:07 +00:00
Jeremy Hylton
5b44a67bdb
Add test to verify that nested functions with free variables don't
...
cause the free variables to leak.
2001-03-13 02:01:12 +00:00
Fred Drake
63085d4d1e
Import the nested_scopes feature twice, to exercise the patch introduced
...
to avoid segfaults when more than one feature is named in the future
statement.
This tests for regression of SF bug #407394 .
2001-03-10 02:18:47 +00:00
Tim Peters
243bff4708
Clean up junk files left behind by imp.load_source().
2001-03-04 00:30:25 +00:00
Ka-Ping Yee
9054344d14
Replace literal '@test' with TESTFN.
2001-03-02 05:48:10 +00:00
Guido van Rossum
ca956e2e47
When catching errors from os.rmdir(), test for os.error, not IOError!
2001-03-02 05:46:17 +00:00
Tim Peters
d74bc432b2
Make names in __future__.py bind to class instances instead of 2-tuples.
...
Suggested on c.l.py by William Tanksley, and I like it.
2001-03-02 02:53:08 +00:00
Tim Peters
fc35de409b
test_global was broken by some recent checkin. Repairing.
2001-03-02 01:48:16 +00:00
Guido van Rossum
9aa643cf69
Test interaction of global and nested scopes -- thanks to Samuele Pedroni.
2001-03-01 20:35:45 +00:00
Tim Peters
251083142f
Whitespace normalization.
2001-03-01 08:31:39 +00:00
Skip Montanaro
40fc16059f
final round of __all__ lists (I hope) - skipped urllib2 because Moshe may be
...
giving it a slight facelift
2001-03-01 04:27:19 +00:00
Fred Drake
5c015344a6
Add tests for the .copy() methods of both weak dictionary classes.
2001-03-01 03:06:53 +00:00
Jeremy Hylton
2922ea8235
Add test case for global stmt at module level.
...
Fix test_grammar so that it ignores warning about global stmt at
module level in exec.
2001-02-28 23:49:19 +00:00
Jeremy Hylton
42efed0fc3
update output to reflect exception that is now raised
2001-02-28 23:24:22 +00:00
Jeremy Hylton
150a6640f5
Fix filter for SyntaxErrors
2001-02-28 22:50:15 +00:00