Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Test cases for examples of ext call error handling. | Jeremy Hylton | 2001-04-11 | 2 | -0/+40 |
| | | | | Fix to SF bug #414743 based on Michael Hudson's patch #414750. | ||||
* | Use the WeakKeyDictionary and WeakValueDictionary classes directly | Fred Drake | 2001-04-10 | 1 | -2/+2 |
| | | | | instead of using the mapping() function. | ||||
* | Some other tests, when failing, don't always remove their TESTFN file. | Guido van Rossum | 2001-04-10 | 1 | -0/+6 |
| | | | | Try to do it for them, so our mkdir() operation doesn't fail. | ||||
* | When doing the quick test to see whether large files are supported, | Guido van Rossum | 2001-04-10 | 1 | -1/+1 |
| | | | | | | catch IOError as well as OverflowError. I found that on Tru64 Unix this was raised; probably because the OS (or libc) doesn't support large files but the architecture is 64 bits! | ||||
* | When zlib can't be imported, zipfile raises RuntimeError, which causes | Guido van Rossum | 2001-04-10 | 1 | -0/+1 |
| | | | | | the test to be marked as failing rather than skipped. Add an explicit "import zlib" to prevent this. | ||||
* | Test full range of native ints. This exposes two more binary pickle | Tim Peters | 2001-04-10 | 1 | -0/+19 |
| | | | | | | | | | bugs on sizeof(long)==8 machines. pickle.py has no idea what it's doing with very large ints, and variously gets things right by accident, computes nonsense, or generates corrupt pickles. cPickle fails on cases 2**31 <= i < 2**32: since it *thinks* those are 4-byte ints (the "high 4 bytes" are all zeroes), it stores them in the (signed!) BININT format, so they get unpickled as negative values. | ||||
* | Pickles have a number of storage formats for various sizes and kinds of | Tim Peters | 2001-04-09 | 1 | -13/+40 |
| | | | | | | | | | 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. | ||||
* | No functional change -- just added whitespace in places so I could follow | Tim Peters | 2001-04-09 | 1 | -11/+30 |
| | | | | the logic better. Will be adding some additional tests later today. | ||||
* | Whitespace normalization. | Tim Peters | 2001-04-08 | 1 | -2/+2 |
| | |||||
* | Since Guido fiddled Cookie.py to work with doctest, it's a Good Thing to | Tim Peters | 2001-04-06 | 2 | -0/+5 |
| | | | | have the std test suite exercise the Cookie doctests too. | ||||
* | Remove lines for asynchat & asyncore, as they've now got their own test. | Tim Peters | 2001-04-06 | 1 | -2/+0 |
| | |||||
* | After testing the test on Unix, several improvements: | Guido van Rossum | 2001-04-06 | 1 | -3/+4 |
| | | | | | | - Use push() instead of send(), and make these calls in main(). - Sleep a second to give the server thread time to initialize itself. | ||||
* | Add test for asynchat. This also tests asyncore. | Guido van Rossum | 2001-04-06 | 2 | -0/+58 |
| | |||||
* | Sf bug [ #412214 ] ZipFile constructor leaves files open. | Tim Peters | 2001-04-04 | 1 | -0/+16 |
| | | | | | | 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. | ||||
* | Whitespace normalization. | Tim Peters | 2001-03-29 | 2 | -5/+5 |
| | |||||
* | Based on info from Jens@digicool.com, add 'darwin1' to the list of | Guido van Rossum | 2001-03-28 | 1 | -1/+1 |
| | | | | BSD-style OS'es. Makes sense, really. | ||||
* | Itamar Shtull-Trauring <itamar@maxnm.com>: | Fred Drake | 2001-03-26 | 1 | -10/+27 |
| | | | | | Add support to zipfile to support opening an archive represented by an open file rather than a file name. | ||||
* | main(): Application of SF patch #405851, which allows this test to be | Barry Warsaw | 2001-03-23 | 1 | -0/+12 |
| | | | | | | | 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. | ||||
* | In Jython, `@' is not allowed in module names. Extend the TESTFN test | Barry Warsaw | 2001-03-23 | 1 | -3/+7 |
| | | | | to use "$test" when in Jython. Closes SF patch #403668. | ||||
* | Make socket.getservbyname test optional on socket module having that | Barry Warsaw | 2001-03-23 | 1 | -5/+6 |
| | | | | | | attribute. Jython does not have this function. Closes SF patch #403667. | ||||
* | Several changes for Jython portability. This closes SF patch | Barry Warsaw | 2001-03-23 | 1 | -9/+18 |
| | | | | | | | | | | | | | | | | | #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. | ||||
* | Don't have trace() skip the top frame; return them all. | Ka-Ping Yee | 2001-03-23 | 1 | -5/+7 |
| | |||||
* | Convert the weakref test suite to PyUNIT, and add tests that exercise weak | Fred Drake | 2001-03-23 | 2 | -260/+252 |
| | | | | references on function objects and both bound and unbound methods. | ||||
* | When the regression test is run in verbose mode, make the PyUNIT-based | Fred Drake | 2001-03-23 | 1 | -1/+1 |
| | | | | tests a little noisier, providing more progress information. | ||||
* | SRE 2.1b2: increase the chances that the sre test works on other | Fredrik Lundh | 2001-03-22 | 2 | -14/+3 |
| | | | | machines... | ||||
* | SRE 2.1b2: forgot to update one output file (sorry, Fred!) | Fredrik Lundh | 2001-03-22 | 1 | -0/+8 |
| | |||||
* | SRE 2.1b1: don't do unicode tests under 1.5.2, or on unicode | Fredrik Lundh | 2001-03-22 | 1 | -3/+8 |
| | | | | strings/patterns. | ||||
* | sre 2.1b2 update: | Fredrik Lundh | 2001-03-22 | 2 | -0/+13 |
| | | | | | | - take locale into account for word boundary anchors (#410271) - restored 2.0's *? behaviour (#233283, #408936 and others) - speed up re.sub/re.subn | ||||
* | Allow the process of reading back what we wrote to a pty to transform | Thomas Wouters | 2001-03-22 | 1 | -24/+36 |
| | | | | | linefeeds into carriagereturn-linefeeds (which is apparently what IRIX does.) Also add some comments, an extra test and reorganize it a bit. | ||||
* | Updated to latest PyUnit version (1.31 in PyUnit CVS); test_support.py | Steve Purcell | 2001-03-22 | 1 | -10/+6 |
| | | | | changed accordingly. | ||||
* | Check that f.keys() == [] right after creation -- this prevents bugs | Guido van Rossum | 2001-03-22 | 3 | -3/+6 |
| | | | | like the one I just fixed to come back and haunt us. | ||||
* | Changed doctest to run tests in alphabetic order of name. | Tim Peters | 2001-03-21 | 2 | -96/+96 |
| | | | | | | 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). | ||||
* | Test that traceback module works with SyntaxErrors with or without carets. | Jeremy Hylton | 2001-03-21 | 3 | -0/+43 |
| | |||||
* | Add test cases for the fnmatch module. | Fred Drake | 2001-03-21 | 2 | -0/+43 |
| | |||||
* | Just import sys at the top instead of inside lots of functions. | Fred Drake | 2001-03-21 | 1 | -3/+35 |
| | | | | Add some helpers for supporting PyUNIT-based unit testing. | ||||
* | Add tests for recent changes: | Jeremy Hylton | 2001-03-21 | 2 | -0/+32 |
| | | | | | - global stmt in class does not affect free vars in methods - locals() works with free and cell vars | ||||
* | Addrf simple test that import is case-sensitive. | Tim Peters | 2001-03-21 | 1 | -1/+10 |
| | |||||
* | Add test for a list comprehension that is nested in the left-hand part | Jeremy Hylton | 2001-03-19 | 2 | -0/+6 |
| | | | | | | | | | 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. | ||||
* | Repair test_doctest's expected-output file (Guido added some new output). | Tim Peters | 2001-03-18 | 1 | -0/+2 |
| | |||||
* | SF bug [ #409448 ] Complex division is braindead | Tim Peters | 2001-03-18 | 2 | -0/+66 |
| | | | | | | 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. | ||||
* | Whitespace normalization. | Tim Peters | 2001-03-16 | 1 | -3/+2 |
| | |||||
* | Oops. A RISCOS patch I forgot to check in. | Guido van Rossum | 2001-03-13 | 1 | -1/+7 |
| | |||||
* | Add test to verify that nested functions with free variables don't | Jeremy Hylton | 2001-03-13 | 2 | -0/+24 |
| | | | | cause the free variables to leak. | ||||
* | Import the nested_scopes feature twice, to exercise the patch introduced | Fred Drake | 2001-03-10 | 1 | -1/+3 |
| | | | | | | | to avoid segfaults when more than one feature is named in the future statement. This tests for regression of SF bug #407394. | ||||
* | Clean up junk files left behind by imp.load_source(). | Tim Peters | 2001-03-04 | 1 | -1/+7 |
| | |||||
* | Replace literal '@test' with TESTFN. | Ka-Ping Yee | 2001-03-02 | 1 | -6/+6 |
| | |||||
* | When catching errors from os.rmdir(), test for os.error, not IOError! | Guido van Rossum | 2001-03-02 | 1 | -3/+3 |
| | |||||
* | Make names in __future__.py bind to class instances instead of 2-tuples. | Tim Peters | 2001-03-02 | 1 | -3/+2 |
| | | | | Suggested on c.l.py by William Tanksley, and I like it. | ||||
* | test_global was broken by some recent checkin. Repairing. | Tim Peters | 2001-03-02 | 2 | -9/+15 |
| | |||||
* | Test interaction of global and nested scopes -- thanks to Samuele Pedroni. | Guido van Rossum | 2001-03-01 | 2 | -0/+66 |
| |