Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Since abc._Abstract was replaces by a new type flags the regression test ↵ | Christian Heimes | 2008-03-03 | 2 | -4/+8 |
| | | | | suite fails. I've added a new function inspect.isabstract(). Is the mmethod fine or should I check if object is a instance of type or subclass of object, too? | ||||
* | Add test_main() functions to various tests where it was simple to do. Done so | Brett Cannon | 2008-03-03 | 9 | -36/+63 |
| | | | | | that regrtest can execute the test_main() directly instead of relying on import side-effects. | ||||
* | Add a note in the main test class' docstring that the order of execution of the | Brett Cannon | 2008-03-03 | 1 | -2/+9 |
| | | | | tests is important. | ||||
* | Add a note in the main test class' docstring that the order of execution of the | Brett Cannon | 2008-03-03 | 1 | -0/+4 |
| | | | | tests is important. | ||||
* | Move test_largefile over to using 'with' statements for open files. | Brett Cannon | 2008-03-03 | 1 | -28/+18 |
| | | | | Also rename the driver function to test_main() instead of main_test(). | ||||
* | Refactor test_logging to use unittest. This should finally solve the flakiness | Brett Cannon | 2008-03-03 | 1 | -2163/+751 |
| | | | | | | issues. Thanks to Antoine Pitrou for the patch. | ||||
* | Updated to pysqlite 2.4.1. Documentation additions will come later. | Gerhard Häring | 2008-02-29 | 1 | -3/+3 |
| | |||||
* | Handle the repeat keyword argument for itertools.product(). | Raymond Hettinger | 2008-02-29 | 1 | -0/+3 |
| | |||||
* | Add __format__ method to Decimal, to support PEP 3101 | Mark Dickinson | 2008-02-29 | 1 | -0/+93 |
| | |||||
* | Add alternate constructor for itertools.chain(). | Raymond Hettinger | 2008-02-28 | 1 | -0/+7 |
| | |||||
* | Have itertools.chain() consume its inputs lazily instead of building a tuple ↵ | Raymond Hettinger | 2008-02-28 | 1 | -2/+2 |
| | | | | of iterators at the outset. | ||||
* | Windows fix for signal test - skip it earlier | Christian Heimes | 2008-02-28 | 1 | -5/+6 |
| | |||||
* | Prevent SocketServer.ForkingMixIn from waiting on child processes that it | Jeffrey Yasskin | 2008-02-28 | 1 | -10/+26 |
| | | | | | didn't create, in most cases. When there are max_children handlers running, it will still wait for any child process, not just handler processes. | ||||
* | Speed test_socketserver up from 28.739s to 0.226s, simplify the logic, and make | Jeffrey Yasskin | 2008-02-28 | 1 | -109/+108 |
| | | | | sure all tests run even if some fail. | ||||
* | Move abc._Abstract into object by adding a new flag Py_TPFLAGS_IS_ABSTRACT, | Jeffrey Yasskin | 2008-02-28 | 1 | -0/+1 |
| | | | | | | | | which forbids constructing types that have it set. The effect is to speed ./python.exe -m timeit -s 'import abc' -s 'class Foo(object): __metaclass__ = abc.ABCMeta' 'Foo()' up from 2.5us to 0.201us. This fixes issue 1762. | ||||
* | Larger test range | Raymond Hettinger | 2008-02-27 | 1 | -1/+1 |
| | |||||
* | Add itertools.combinations(). | Raymond Hettinger | 2008-02-26 | 1 | -0/+24 |
| | |||||
* | Patch #1691070 from Roger Upole: Speed up PyArg_ParseTupleAndKeywords() and ↵ | Christian Heimes | 2008-02-26 | 1 | -1/+50 |
| | | | | | | improve error msg My tests don't show the promised speed up of 10%. The code is as fast as the old code for simple cases and slightly faster for complex cases with several of args and kwargs. But the patch simplifies the code, too. | ||||
* | Speed up this test by about 99%. Remove sleeps and replace with events. | Neal Norwitz | 2008-02-26 | 1 | -65/+42 |
| | | | | | | | | (This may fail on some slow platforms, but we can fix those cases which should be relatively isolated and easier to find now.) Move two test cases that didn't require a server to be started to a separate TestCase. These tests were taking 3 seconds which is what the timeout was set to. | ||||
* | Don't use a hard coded port. This test could hang/fail if the port is in use. | Neal Norwitz | 2008-02-26 | 1 | -4/+25 |
| | | | | Speed this test up by avoiding a sleep and using the event. | ||||
* | Make sure the itertools filter functions give the same performance for ↵ | Raymond Hettinger | 2008-02-25 | 1 | -0/+2 |
| | | | | func=bool as func=None. | ||||
* | Move .setupterm() output so that we don't try to call endwin() if it fails | Andrew M. Kuchling | 2008-02-25 | 1 | -4/+3 |
| | |||||
* | Fix a minor typo in a docstring. | Brett Cannon | 2008-02-25 | 1 | -1/+1 |
| | |||||
* | Create a db_home directory with a unique name so multiple users can | Neal Norwitz | 2008-02-24 | 2 | -1/+21 |
| | | | | | | | | | | | | run the test simultaneously. The simplest thing I found that worked on both Windows and Unix was to use the PID. It's unique so should be sufficient. This should prevent many of the spurious failures of the automated tests since they run as different users. Also cleanup the directory consistenly in the tearDown methods. It would be nice if someone ensured that the directories are always created with a consistent name. | ||||
* | Issue 1742669. Now %d accepts very big float numbers. | Facundo Batista | 2008-02-24 | 2 | -3/+30 |
| | | | | Thanks Gabriel Genellina. | ||||
* | #1627: httplib now ignores negative Content-Length headers. | Georg Brandl | 2008-02-24 | 1 | -0/+7 |
| | |||||
* | #900744: If an invalid chunked-encoding header is sent by a server, | Georg Brandl | 2008-02-24 | 1 | -0/+29 |
| | | | | | httplib will now raise IncompleteRead and close the connection instead of raising ValueError. | ||||
* | #1506171: added operator.methodcaller(). | Georg Brandl | 2008-02-23 | 1 | -0/+18 |
| | |||||
* | #1826: allow dotted attribute paths in operator.attrgetter. | Georg Brandl | 2008-02-23 | 1 | -0/+20 |
| | |||||
* | Added simple test case. Thanks Benjamin Peterson. | Facundo Batista | 2008-02-23 | 1 | -0/+33 |
| | |||||
* | In test_heapq and test_bisect, test both the Python and the C implementation. | Georg Brandl | 2008-02-23 | 2 | -159/+234 |
| | | | | Originally written for GHOP by Josip Dzolonga, heavily patched by me. | ||||
* | Followup to r61011: Also avoid the reference cycle when the Thread's target | Jeffrey Yasskin | 2008-02-23 | 1 | -3/+11 |
| | | | | raises an exception. | ||||
* | Prevent classes like: | Jeffrey Yasskin | 2008-02-23 | 1 | -0/+20 |
| | | | | | | | | | | | | | | class RunSelfFunction(object): def __init__(self): self.thread = threading.Thread(target=self._run) self.thread.start() def _run(self): pass from creating a permanent cycle between the object and the thread by having the Thread delete its references to the object when it completes. As an example of the effect of this bug, paramiko.Transport inherits from Thread to avoid it. | ||||
* | Patch #2167 from calvin: Remove unused imports | Christian Heimes | 2008-02-23 | 79 | -97/+37 |
| | |||||
* | #1433694: minidom's .normalize() failed to set .nextSibling for last element. | Andrew M. Kuchling | 2008-02-23 | 1 | -0/+8 |
| | | | | Fix by Malte Helmert | ||||
* | #1330538: Improve comparison of xmlrpclib.DateTime and datetime instances. | Andrew M. Kuchling | 2008-02-23 | 1 | -47/+8 |
| | | | | | | Remove automatic handling of datetime.date and datetime.time. This breaks backward compatibility, but python-dev discussion was strongly against this automatic conversion; see the bug for a link. | ||||
* | #2067: file.__exit__() now calls subclasses' close() method. | Georg Brandl | 2008-02-23 | 1 | -1/+17 |
| | |||||
* | Issue 1089358. Adds the siginterrupt() function, that is just a | Facundo Batista | 2008-02-23 | 1 | -2/+46 |
| | | | | | | wrapper around the system call with the same name. Also added test cases, doc changes and NEWS entry. Thanks Jason and Ralf Schmitt. | ||||
* | #2165: fix test_logging failure on some machines. | Georg Brandl | 2008-02-23 | 1 | -23/+13 |
| | |||||
* | Patch #1759: Backport of PEP 3129 class decorators | Christian Heimes | 2008-02-23 | 3 | -1/+47 |
| | | | | with some help from Georg | ||||
* | Issue 1781. Now ConfigParser.add_section does not let you add a | Facundo Batista | 2008-02-23 | 1 | -0/+8 |
| | | | | | DEFAULT section any more, because it duplicated sections with the rest of the machinery. Thanks Tim Lesher and Manuel Kaufmann. | ||||
* | Issue 1776581. Minor corrections to smtplib, and two small tests. | Facundo Batista | 2008-02-23 | 1 | -2/+3 |
| | | | | Thanks Alan McIntyre. | ||||
* | Issue 1881. Increased the stack limit from 500 to 1500. Also added | Facundo Batista | 2008-02-23 | 1 | -0/+17 |
| | | | | | | a test for this (and because of this test you'll see in stderr a message that parser.c sends before raising MemoryError). Thanks Ralf Schmitt. | ||||
* | Added future_builtins, which contains PEP 3127 compatible versions of hex() ↵ | Eric Smith | 2008-02-23 | 1 | -0/+27 |
| | | | | and oct(). | ||||
* | Improve the implementation of itertools.product() | Raymond Hettinger | 2008-02-23 | 1 | -0/+3 |
| | | | | | | | | * Fix-up issues pointed-out by Neal Norwitz. * Add extensive comments. * The lz->result variable is now a tuple instead of a list. * Use fast macro getitem/setitem calls so most code is in-line. * Re-use the result tuple if available (modify in-place instead of copy). | ||||
* | Tests for bin() builtin. These need to get merged into py3k, which has no ↵ | Eric Smith | 2008-02-22 | 1 | -0/+9 |
| | | | | tests for bin. | ||||
* | First draft for itertools.product(). Docs and other updates forthcoming. | Raymond Hettinger | 2008-02-22 | 1 | -0/+28 |
| | |||||
* | Moved test_format into the correct TestCase. | Eric Smith | 2008-02-21 | 1 | -39/+39 |
| | |||||
* | Trim leading zeros from a floating point exponent, per C99. See issue 1600. ↵ | Eric Smith | 2008-02-20 | 1 | -7/+31 |
| | | | | As far as I know, this only affects Windows. Add float type 'n' to PyOS_ascii_formatd (see PEP 3101 for 'n' description). | ||||
* | Added code to correct combining str and unicode in ''.format(). Added test ↵ | Eric Smith | 2008-02-18 | 1 | -0/+9 |
| | | | | case. |