Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Whitespace normalization. | Tim Peters | 2004-07-08 | 13 | -33/+26 |
| | |||||
* | Exercise xrange a bit | Neal Norwitz | 2004-07-08 | 1 | -0/+59 |
| | |||||
* | Exercise some error conditions | Neal Norwitz | 2004-07-08 | 1 | -0/+10 |
| | |||||
* | SF bug #978308, Spurious errors taking bool of dead pro | Neal Norwitz | 2004-07-08 | 1 | -0/+1 |
| | | | | | | Need to return -1 on error. Needs backport. | ||||
* | testGetServBy(): Use services that should be available both on *nix and | Barry Warsaw | 2004-07-06 | 1 | -1/+1 |
| | | | | Windows (XP at least ;). Test in this order: echo, daytime, domain. | ||||
* | * Fix missing return after error message is set. | Raymond Hettinger | 2004-07-06 | 1 | -0/+1 |
| | | | | * Add a test case that would have caught it. | ||||
* | * Add __eq__ and __ne__ so that things like list.index() work properly | Raymond Hettinger | 2004-07-05 | 1 | -11/+16 |
| | | | | | for lists of mixed types. * Test that sort works. | ||||
* | Test the logic for int(d). | Raymond Hettinger | 2004-07-05 | 1 | -0/+10 |
| | |||||
* | * Make the tests independent of the default precision. | Raymond Hettinger | 2004-07-03 | 1 | -0/+7 |
| | | | | * Change the default precision to 28 (to match VB's decimal type). | ||||
* | Work through several open todos: | Raymond Hettinger | 2004-07-03 | 1 | -7/+23 |
| | | | | | | | | | | | | | | | | | * Added test for pickling contexts * Renamed ExceptionList to Signals (to match wording in the spec) * Simplified Context constructor by allowing flags=None to automatically generate a zeroed-out flags dictionary. * inlined _convertString() which was used only once * _rounding_decision is private, so excluded its contants from __all__. * added an XXX comment with concerns about subclassing signals results in a deviation from the spec (maybe important, maybe not). * Taught the test_suite to determine its own directory (modeled after code in regrtest.py). Enables it to be run when the current directory is not the test directory. * Added a clear_flags() method to the Context API to make it easier to do a common operation with flags. * Fixed the trap_enablers defaults in BasicDefaultContext to match the spec. | ||||
* | Add tests that check the result of calendar.monthcalendar() for a set | Walter Dörwald | 2004-07-02 | 1 | -1/+79 |
| | | | | of corner cases. | ||||
* | Make weak references subclassable: | Fred Drake | 2004-07-02 | 1 | -0/+66 |
| | | | | | | | | | | | | | | | | | | | | | | - weakref.ref and weakref.ReferenceType will become aliases for each other - weakref.ref will be a modern, new-style class with proper __new__ and __init__ methods - weakref.WeakValueDictionary will have a lighter memory footprint, using a new weakref.ref subclass to associate the key with the value, allowing us to have only a single object of overhead for each dictionary entry (currently, there are 3 objects of overhead per entry: a weakref to the value, a weakref to the dictionary, and a function object used as a weakref callback; the weakref to the dictionary could be avoided without this change) - a new macro, PyWeakref_CheckRefExact(), will be added - PyWeakref_CheckRef() will check for subclasses of weakref.ref This closes SF patch #983019. | ||||
* | SF Bug #215126: Over restricted type checking on eval() function | Raymond Hettinger | 2004-07-02 | 2 | -11/+55 |
| | | | | | | The builtin eval() function now accepts any mapping for the locals argument. Time sensitive steps guarded by PyDict_CheckExact() to keep from slowing down the normal case. My timings so no measurable impact. | ||||
* | Move Decimal from the sandbox into production. | Raymond Hettinger | 2004-07-01 | 1 | -0/+1 |
| | |||||
* | Move Decimal from the sandbox into production. | Raymond Hettinger | 2004-07-01 | 32 | -1/+23953 |
| | |||||
* | Remove unused import. (If it's there for some deep, dark reason, it should ↵ | Andrew M. Kuchling | 2004-06-29 | 1 | -1/+0 |
| | | | | have been commented.) | ||||
* | Add test case for bug #912845: requesting an HTTP byte range doesn't work | Andrew M. Kuchling | 2004-06-29 | 1 | -6/+16 |
| | |||||
* | Docstring grammar fix | Andrew M. Kuchling | 2004-06-29 | 1 | -1/+1 |
| | |||||
* | Patch from Mark Hammond to fix a test error. | Raymond Hettinger | 2004-06-28 | 1 | -9/+12 |
| | | | | Now runs without exception on WinME/98. | ||||
* | Added socket.getservbyport(), and make its second argument and that of | Barry Warsaw | 2004-06-28 | 1 | -10/+22 |
| | | | | getservbyname() optional. Update the tests and the docs. | ||||
* | * Silence a test failure that resulted when test_site was run by | Raymond Hettinger | 2004-06-27 | 1 | -7/+10 |
| | | | | | | | | | | regrtest.py after it ran test_frozen. This test was really only designed to be run immediately after startup. Afterwards, other modules could be loaded when had not been fixed-up by site.py Took the chicken way out and only tested those modules known to be imported by site.py. * Normalized whitespace. | ||||
* | Massive performance improvement for C extension and builtin tracing code | Nicholas Bastin | 2004-06-25 | 1 | -3/+3 |
| | |||||
* | Bug 975996: Add _PyTime_DoubleToTimet to C API | Tim Peters | 2004-06-20 | 2 | -0/+35 |
| | | | | | | | | | | | New include file timefuncs.h exports private API function _PyTime_DoubleToTimet() from timemodule.c. timemodule should export some other functions too (look for painful bits in datetimemodule.c). Added insane-argument checking to datetime's assorted fromtimestamp() and utcfromtimestamp() methods. Added insane-argument tests of these to test_datetime, and insane-argument tests for ctime(), localtime() and gmtime() to test_time. | ||||
* | shutil.move() will raise an exception when trying to move a directory into | Brett Cannon | 2004-06-19 | 1 | -2/+14 |
| | | | | | | itself. Closes bug #919012 . Thanks Johannes Gijsbers. | ||||
* | Reverse argument order for nsmallest() and nlargest(). | Raymond Hettinger | 2004-06-15 | 1 | -4/+4 |
| | | | | Reads better when the iterable is a generator expression. | ||||
* | One unit test for distutils is not much, but is more than we had yesterday. | Fred Drake | 2004-06-15 | 1 | -0/+17 |
| | | | | We need to write more; hopefully the barrier is a little lower now. | ||||
* | Patch #826074: cmath.log optional base argument, fixes #823209 | Raymond Hettinger | 2004-06-14 | 1 | -2/+19 |
| | | | | (Contributed by Andrew Gaul.) | ||||
* | Add heapq to list of __all__ checks. | Raymond Hettinger | 2004-06-13 | 1 | -0/+1 |
| | |||||
* | Install C version of heapq.nsmallest(). | Raymond Hettinger | 2004-06-13 | 1 | -6/+19 |
| | |||||
* | note a really bad test (no time to fix now) | Michael W. Hudson | 2004-06-12 | 1 | -0/+1 |
| | |||||
* | Improve the memory performance and speed of heapq.nsmallest() by using | Raymond Hettinger | 2004-06-12 | 1 | -0/+1 |
| | | | | | an alternate algorithm when the number of selected items is small relative to the full iterable. | ||||
* | lightly modified version of my patch | Michael W. Hudson | 2004-06-11 | 1 | -24/+31 |
| | | | | | | [ 971323 ] make test_signal less annoying after some comments on IRC from a highly opinionated australian who wishes to remain anonymous. | ||||
* | fix a poorly worded error message | Anthony Baxter | 2004-06-11 | 1 | -1/+1 |
| | |||||
* | Convert test_heapq.py to unittests. | Raymond Hettinger | 2004-06-10 | 1 | -86/+90 |
| | |||||
* | SF patch #969791: Add nlargest() and nsmallest() to heapq. | Raymond Hettinger | 2004-06-10 | 1 | -1/+10 |
| | |||||
* | test_devnull(): Use assertEqual() instead of an assert stmt. | Tim Peters | 2004-06-08 | 1 | -1/+1 |
| | |||||
* | Removed test_sitepackages test. Skip discovered that it only passed if Python | Brett Cannon | 2004-06-08 | 1 | -8/+0 |
| | | | | had already been installed previously. | ||||
* | Feature request #935915: Add os.path.devnull. | Martin v. Löwis | 2004-06-08 | 1 | -0/+9 |
| | |||||
* | SF 952807: Unpickling pickled instances of subclasses of datetime.date, | Tim Peters | 2004-06-07 | 1 | -0/+34 |
| | | | | | | | datetime.datetime and datetime.time could yield insane objects. Thanks to Jiwon Seo for the fix. Bugfix candidate. I'll backport it to 2.3. | ||||
* | Try to improve test coverage for utime() | Neal Norwitz | 2004-06-06 | 1 | -0/+4 |
| | |||||
* | Look for the multibyte codec map files in the parent directory too | Neal Norwitz | 2004-06-06 | 1 | -2/+7 |
| | | | | | This is similar to test_normalization, so that many source trees can reference the same test file(s). | ||||
* | add -L flag to cause leaks(1) command to run just before exit | Skip Montanaro | 2004-06-06 | 1 | -2/+13 |
| | |||||
* | Remove a number of tests that differ only in input data size. It seems | Neil Schemenauer | 2004-06-05 | 1 | -161/+59 |
| | | | | | | no bug motivated their inclusion and the chance of them triggering a problem seems unlikely. Refactor to reduce code duplication. Rename 'hamlet_scene' to 'HAMLET_SCENE'. Test is much faster now. Closes #960995. | ||||
* | Remove lots of magic constants. | Neil Schemenauer | 2004-06-05 | 1 | -23/+38 |
| | |||||
* | Rewrote to use temporary files instead of StringIO objects in most places. | Skip Montanaro | 2004-06-05 | 1 | -113/+253 |
| | | | | Goal is to work in the direction of universal newline support. | ||||
* | [Bug #921657] Allow '@' in unquoted HTML attributes. Not strictly legal ↵ | Andrew M. Kuchling | 2004-06-05 | 1 | -0/+4 |
| | | | | according to the HTML REC, but HTMLParser is already a pretty loose parser. Reported by Bernd Zimmermann. | ||||
* | [Bug #954364] inspect.getframeinfo() sometimes produces incorrect traceback ↵ | Andrew M. Kuchling | 2004-06-05 | 1 | -2/+2 |
| | | | | line #s; fix is to look at tb.tb_lineno, not tb.frame.f_lineno. Patch from Robin Becker and me. | ||||
* | Fix a bug that robotparser starves memory when the server responses | Hye-Shik Chang | 2004-06-05 | 1 | -0/+34 |
| | | | | | in HTTP/0.9 due to dissonance of httplib.LineAndFileWrapper and urllib.addbase. | ||||
* | [Bug #841757] Exercise handling of Unicode strings | Andrew M. Kuchling | 2004-06-05 | 1 | -0/+2 |
| | |||||
* | Refactored site.py into functions. Also moved over to using sets. | Brett Cannon | 2004-06-05 | 1 | -0/+199 |
| | | | | New regression test suite. |