Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add tests for weakref support for generator-iterators. | Fred Drake | 2002-08-09 | 1 | -1/+27 |
| | | | | Part of fixing SF bug #591704. | ||||
* | There's no distinction among 'user', 'group' and 'world' permissions | Tim Peters | 2002-08-09 | 1 | -2/+14 |
| | | | | | on Win32, so tests that assume there are such distinctions can't pass. Fiddled them to work. | ||||
* | Whitespace normalization. | Tim Peters | 2002-08-09 | 2 | -8/+11 |
| | |||||
* | Test finalizers and GC from inside __del__ for new classes. | Guido van Rossum | 2002-08-09 | 1 | -0/+41 |
| | |||||
* | Massive changes from SF 589982 (tempfile.py rewrite, by Zack | Guido van Rossum | 2002-08-09 | 24 | -83/+89 |
| | | | | | Weinberg). This changes all uses of deprecated tempfile functions to the recommended ones. | ||||
* | Check-in of the most essential parts of SF 589982 (tempfile.py | Guido van Rossum | 2002-08-09 | 2 | -232/+1100 |
| | | | | | | | | rewrite, by Zack Weinberg). This replaces most code in tempfile.py (please review!!!) and adds extensive unit tests for it. This will cause some warnings in the test suite; I'll check those in soon, and also the docs. | ||||
* | Test for Neil's fix to correctly invoke __rmul__. | Guido van Rossum | 2002-08-09 | 1 | -0/+16 |
| | |||||
* | Unicode replace() method with empty pattern argument should fail, like | Guido van Rossum | 2002-08-09 | 1 | -0/+6 |
| | | | | it does for 8-bit strings. | ||||
* | New entries to track the DOM API growth. These match names exposed in | Fred Drake | 2002-08-09 | 1 | -0/+5 |
| | | | | PyXML 0.8. | ||||
* | Fix to ensure consistent 'repr' and 'str' results between Python | Steve Purcell | 2002-08-09 | 1 | -7/+10 |
| | | | | | versions, since 'repr(new_style_class) != repr(classic_class)'. Suggested by Jeremy Hylton. | ||||
* | Moved inplace add and multiply methods from UserString to MutableString. | Raymond Hettinger | 2002-08-09 | 4 | -11/+19 |
| | | | | | Closes SF Bug #592573 where inplace add mutated a UserString. Added unittests to verify the bug is cleared. | ||||
* | Revised the test suite for 'contains' to use the test() function argument | Raymond Hettinger | 2002-08-09 | 1 | -9/+9 |
| | | | | | rather than vereq(). While it was effectively testing regular strings, it ignored the test() function argument when called by test_userstring.py. | ||||
* | testSendAll(): loop until all data is read; this was necessary at | Guido van Rossum | 2002-08-08 | 1 | -3/+3 |
| | | | | | | least on OS/2 (see note on SF patch 555085 by A I MacIntyre) but looks like the test *could* fail on any other platform too -- there's no guarantee that recv() reads all data. | ||||
* | Whitespace normalization. | Tim Peters | 2002-08-08 | 83 | -5828/+5817 |
| | |||||
* | Delete junk attributes left behind by _socketobject class construction. | Tim Peters | 2002-08-08 | 1 | -0/+1 |
| | |||||
* | The _socketobject class has no need for a __del__ method: all it did was | Guido van Rossum | 2002-08-08 | 1 | -10/+6 |
| | | | | | | | to delete the reference to self._sock, and the regular destructor will do that just fine. This made some hacks in close() unnecessary. The _fileobject class still has a __del__ method, because it must flush. | ||||
* | OK, one more hack: speed up the case of readline() in unbuffered mode. | Guido van Rossum | 2002-08-08 | 1 | -0/+11 |
| | | | | This is important IMO because httplib reads the headers this way. | ||||
* | Another refactoring of read() and readline(), this time based on the | Guido van Rossum | 2002-08-08 | 1 | -66/+88 |
| | | | | | | | | observation that _rbuf could never have more than one string in it. So make _rbuf a string. The code branches for size<0 and size>=0 are completely separate now, both in read() and in readline(). I checked for tabs this time. :-) | ||||
* | Extend __all__ with the exports list of the _ssl module. | Guido van Rossum | 2002-08-08 | 1 | -1/+4 |
| | |||||
* | Oops, stupid tabs. Sorry again. | Guido van Rossum | 2002-08-08 | 1 | -3/+3 |
| | |||||
* | Another refactoring. Changed 'socket' from being a factory function | Guido van Rossum | 2002-08-08 | 1 | -26/+49 |
| | | | | | | | | | | | | to being a new-style class, to be more similar to the socket class in the _socket module; it is now the same as the _socketobject class. Added __slots__. Added docstrings, copied from the real socket class where possible. The _fileobject class is now also a new-style class with __slots__ (though without docstrings). The mode, name, softspace, bufsize and closed attributes are properly supported (closed as a property; name as a class attributes; the softspace, mode and bufsize as slots). | ||||
* | Add module-wide "__metaclass__ = type", as requested by Jim Fulton. | Steve Purcell | 2002-08-08 | 1 | -1/+4 |
| | | | | (Synched from pyunit CVS) | ||||
* | Major restructuring of _fileobject. Hopefully several things now work | Guido van Rossum | 2002-08-08 | 1 | -61/+111 |
| | | | | | | | | correctly (the test at least succeed, but they don't test everything yet). Also fix a performance problem in read(-1): in unbuffered mode, this would read 1 byte at a time. Since we're reading until EOF, that doesn't make sense. Use the default buffer size if _rbufsize is <= 1. | ||||
* | Replace docstrings on test functions witrh comments -- then unittest | Guido van Rossum | 2002-08-08 | 1 | -31/+50 |
| | | | | | | | | | | | | | prints function and module names, which is more informative now that we repeat some tests in slightly modified subclasses. Add a test for read() until EOF. Add test suites for line-buffered (bufsize==1) and a small custom buffer size (bufsize==2). Restructure testUnbufferedRead() somewhat to avoid a potentially infinite loop. | ||||
* | Replace tabs with spaces. (Sorry!) | Guido van Rossum | 2002-08-07 | 1 | -3/+3 |
| | |||||
* | Tighten the unbuffered readline test to distinguish between the two lines. | Guido van Rossum | 2002-08-07 | 1 | -4/+4 |
| | |||||
* | Simplify heapreplace() -- there's no need for an explicit test for | Guido van Rossum | 2002-08-07 | 1 | -7/+4 |
| | | | | empty heap, since heap[0] raises the appropriate IndexError already. | ||||
* | Oops. I accidentally commented out some tests. | Guido van Rossum | 2002-08-07 | 1 | -4/+4 |
| | |||||
* | "Unbuffered" mode of class _fileobject wasn't actually unbuffered, | Guido van Rossum | 2002-08-07 | 2 | -8/+40 |
| | | | | | | | | | | and this broke a Zope "pipelining" test which read multiple responses from the same connection (this attaches a new file object to the socket for each response). Added a test for this too. (I want to do some code cleanup too, but I thought I'd first fix the problem with as little code as possible, and add a unit test for this case. So that's what this checkin is about.) | ||||
* | Expanded the unittests for the new width sensitive PyUnicode_Contains(). | Raymond Hettinger | 2002-08-06 | 1 | -0/+6 |
| | |||||
* | Add testcase for SF bug 574207 (chained __slots__ dealloc segfault). | Guido van Rossum | 2002-08-06 | 1 | -0/+14 |
| | | | | Fix forthcoming. | ||||
* | Added a test for PyUnicode_Contains() taking into account the width of | Barry Warsaw | 2002-08-06 | 1 | -0/+1 |
| | | | | Py_UNICODE. | ||||
* | Add a coding cookie, because of the møøse quote. | Guido van Rossum | 2002-08-06 | 1 | -0/+1 |
| | |||||
* | Bump the LOOPS count. 50,000 iterations takes about 5 seconds on my | Guido van Rossum | 2002-08-06 | 1 | -1/+1 |
| | | | | machine -- that feels just right. | ||||
* | Mark xreadlines deprecated. Don't use f.xreadlines() in test_iter.py. | Guido van Rossum | 2002-08-06 | 2 | -2/+5 |
| | |||||
* | Remove mention of deprecated xreadlines method. | Guido van Rossum | 2002-08-06 | 1 | -1/+1 |
| | |||||
* | Committing patch #591250 which provides "str1 in str2" when str1 is a | Barry Warsaw | 2002-08-06 | 5 | -65/+88 |
| | | | | string of longer than 1 character. | ||||
* | Add next and __iter__ to the list of file methods that should raise | Guido van Rossum | 2002-08-06 | 1 | -1/+3 |
| | | | | ValueError when called for a closed file. | ||||
* | We only need to check for StopIteration here. | Fred Drake | 2002-08-05 | 1 | -1/+1 |
| | |||||
* | SF patch 590294: os._execvpe security fix (Zack Weinberg). | Guido van Rossum | 2002-08-05 | 1 | -21/+6 |
| | | | | | | | | | | | | | | 1) Do not attempt to exec a file which does not exist just to find out what error the operating system returns. This is an exploitable race on all platforms that support symbolic links. 2) Immediately re-raise the exception if we get an error other than errno.ENOENT or errno.ENOTDIR. This may need to be adapted for other platforms. (As a security issue, this should be considered for 2.1 and 2.2 as well as 2.3.) | ||||
* | GvR provided solution to the socket rebinding timeout problem. | Kurt B. Kaiser | 2002-08-05 | 3 | -7/+6 |
| | | | | | | M PyShell.py M rpc.py M run.py | ||||
* | Test whether a Cyrillic text correctly appears in a Unicode literal. | Martin v. Löwis | 2002-08-05 | 1 | -0/+2 |
| | |||||
* | We don't really need the name of the test in the "test skipped" msg, and | Tim Peters | 2002-08-04 | 1 | -1/+1 |
| | | | | having it there causes the line to wrap. | ||||
* | Oops! Forgot the closing paren. | Tim Peters | 2002-08-04 | 1 | -1/+1 |
| | |||||
* | Finally got around to figuring out and documenting why this test fails | Tim Peters | 2002-08-04 | 1 | -2/+10 |
| | | | | | | | | on Windows. The test_sequence() ERROR is easily repaired if we're willing to add an os.unlink() line to mhlib's updateline(). The test_listfolders FAIL I gave up on -- I don't remember enough about Unix link esoterica to recall why a link count of 2 is something a well- written program should be keenly interested in <wink>. | ||||
* | Add encoding declaration. | Martin v. Löwis | 2002-08-04 | 2 | -1/+2 |
| | |||||
* | Add encoding declaration. | Martin v. Löwis | 2002-08-04 | 2 | -0/+2 |
| | |||||
* | I don't know what's going on with this test, but the last change from | Tim Peters | 2002-08-04 | 1 | -1/+1 |
| | | | | | Piers obviously couldn't have passed on any platform. Fiddling it so it works (for a meaning of "works" no stronger than "doesn't fail" <wink>). | ||||
* | - comment improvement | Andrew MacIntyre | 2002-08-04 | 1 | -1/+25 |
| | | | | - implement viable library search routine for EMX | ||||
* | add parameter missing following Jeremy's compiler class refactoring | Andrew MacIntyre | 2002-08-04 | 1 | -1/+1 |
| |