Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fix typo | Fred Drake | 2008-03-04 | 1 | -1/+1 |
| | |||||
* | Close the file before trying to remove the directory so it works on Windows. | Neal Norwitz | 2008-03-04 | 1 | -1/+2 |
| | | | | As reported by Trent Nelson on python-dev. | ||||
* | Beef-up docs and tests for itertools. Fix-up end-case for product(). | Raymond Hettinger | 2008-03-04 | 1 | -6/+112 |
| | |||||
* | Issue 2226: Callable checked for the wrong abstract method. | Raymond Hettinger | 2008-03-03 | 1 | -1/+1 |
| | |||||
* | Remove dependency on itertools -- a simple genexp suffices. | Raymond Hettinger | 2008-03-03 | 1 | -2/+2 |
| | |||||
* | Actually import itertools. | Georg Brandl | 2008-03-03 | 1 | -0/+1 |
| | |||||
* | 15 -> 16, the 2nd | Georg Brandl | 2008-03-03 | 1 | -1/+1 |
| | |||||
* | 15 -> 16 | Christian Heimes | 2008-03-03 | 1 | -2/+2 |
| | |||||
* | Since abc._Abstract was replaces by a new type flags the regression test ↵ | Christian Heimes | 2008-03-03 | 3 | -4/+16 |
| | | | | 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. | ||||
* | Modify import of test_support so that the code can also be used with a | Gregory P. Smith | 2008-03-02 | 15 | -15/+73 |
| | | | | | stand alone distribution of bsddb that includes its own small copy of test_support for the needed functionality on older pythons. | ||||
* | Made sqlite3 module's regression tests work with SQLite versions that don't | Gerhard Häring | 2008-03-02 | 1 | -2/+3 |
| | | | | support "create table if not exists", yet. | ||||
* | Give IDLE a release date | Barry Warsaw | 2008-03-01 | 1 | -1/+1 |
| | |||||
* | bump idle version number | Barry Warsaw | 2008-03-01 | 1 | -1/+1 |
| | |||||
* | Updated to pysqlite 2.4.1. Documentation additions will come later. | Gerhard Häring | 2008-02-29 | 7 | -14/+298 |
| | |||||
* | Fix docstring typo. | Mark Dickinson | 2008-02-29 | 1 | -1/+1 |
| | |||||
* | 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 | 2 | -0/+333 |
| | |||||
* | 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 | 2 | -19/+47 |
| | | | | | 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. | ||||
* | #2169: make generated HTML more valid | Andrew M. Kuchling | 2008-02-28 | 1 | -3/+4 |
| | |||||
* | Thread.start() used sleep(0.000001) to make sure it didn't return before the | Jeffrey Yasskin | 2008-02-28 | 1 | -11/+10 |
| | | | | | | | | | | | | | | | | | | | | | | new thread had started. At least on my MacBook Pro, that wound up sleeping for a full 10ms (probably 1 jiffy). By using an Event instead, we can be absolutely certain that the thread has started, and return more quickly (217us). Before: $ ./python.exe -m timeit -s 'from threading import Thread' 't = Thread(); t.start(); t.join()' 100 loops, best of 3: 10.3 msec per loop $ ./python.exe -m timeit -s 'from threading import Thread; t = Thread()' 't.isAlive()' 1000000 loops, best of 3: 0.47 usec per loop After: $ ./python.exe -m timeit -s 'from threading import Thread' 't = Thread(); t.start(); t.join()' 1000 loops, best of 3: 217 usec per loop $ ./python.exe -m timeit -s 'from threading import Thread; t = Thread()' 't.isAlive()' 1000000 loops, best of 3: 0.86 usec per loop To be fair, the 10ms isn't CPU time, and other threads including the spawned one get to run during it. There are also some slightly more complicated ways to get back the .4us in isAlive() if we want. | ||||
* | 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 | 2 | -48/+2 |
| | | | | | | | | 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. | ||||
* | Add a timing flag to Trace so you can see where slowness occurs | Neal Norwitz | 2008-02-26 | 1 | -4/+21 |
| | | | | like waiting for socket timeouts in test_smtplib :-). | ||||
* | 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. | ||||
* | Revert part of r60927 which made invalid assumptions about the API offered ↵ | Raymond Hettinger | 2008-02-25 | 1 | -3/+3 |
| | | | | by db modules. | ||||
* | Make sure the itertools filter functions give the same performance for ↵ | Raymond Hettinger | 2008-02-25 | 1 | -0/+2 |
| | | | | func=bool as func=None. | ||||
* | Issue 2117. Update compiler module to handle class decorators. | Facundo Batista | 2008-02-25 | 3 | -2/+19 |
| | | | | Thanks Thomas Herve | ||||
* | Use file descriptor for real stdout | Andrew M. Kuchling | 2008-02-25 | 1 | -1/+3 |
| | |||||
* | 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 | 17 | -78/+72 |
| | | | | | | | | | | | | 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. | ||||
* | Remove duplicate 'import re' in decimal.py | Mark Dickinson | 2008-02-24 | 1 | -2/+1 |
| | |||||
* | 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 | 2 | -0/+10 |
| | |||||
* | #900744: If an invalid chunked-encoding header is sent by a server, | Georg Brandl | 2008-02-24 | 2 | -1/+36 |
| | | | | | 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 |
| |