summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Since abc._Abstract was replaces by a new type flags the regression test ↵Christian Heimes2008-03-032-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 soBrett Cannon2008-03-039-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 theBrett Cannon2008-03-031-2/+9
| | | | tests is important.
* Add a note in the main test class' docstring that the order of execution of theBrett Cannon2008-03-031-0/+4
| | | | tests is important.
* Move test_largefile over to using 'with' statements for open files.Brett Cannon2008-03-031-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 flakinessBrett Cannon2008-03-031-2163/+751
| | | | | | issues. Thanks to Antoine Pitrou for the patch.
* Updated to pysqlite 2.4.1. Documentation additions will come later.Gerhard Häring2008-02-291-3/+3
|
* Handle the repeat keyword argument for itertools.product().Raymond Hettinger2008-02-291-0/+3
|
* Add __format__ method to Decimal, to support PEP 3101Mark Dickinson2008-02-291-0/+93
|
* Add alternate constructor for itertools.chain().Raymond Hettinger2008-02-281-0/+7
|
* Have itertools.chain() consume its inputs lazily instead of building a tuple ↵Raymond Hettinger2008-02-281-2/+2
| | | | of iterators at the outset.
* Windows fix for signal test - skip it earlierChristian Heimes2008-02-281-5/+6
|
* Prevent SocketServer.ForkingMixIn from waiting on child processes that itJeffrey Yasskin2008-02-281-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 makeJeffrey Yasskin2008-02-281-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 Yasskin2008-02-281-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 rangeRaymond Hettinger2008-02-271-1/+1
|
* Add itertools.combinations().Raymond Hettinger2008-02-261-0/+24
|
* Patch #1691070 from Roger Upole: Speed up PyArg_ParseTupleAndKeywords() and ↵Christian Heimes2008-02-261-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 Norwitz2008-02-261-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 Norwitz2008-02-261-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 Hettinger2008-02-251-0/+2
| | | | func=bool as func=None.
* Move .setupterm() output so that we don't try to call endwin() if it failsAndrew M. Kuchling2008-02-251-4/+3
|
* Fix a minor typo in a docstring.Brett Cannon2008-02-251-1/+1
|
* Create a db_home directory with a unique name so multiple users canNeal Norwitz2008-02-242-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 Batista2008-02-242-3/+30
| | | | Thanks Gabriel Genellina.
* #1627: httplib now ignores negative Content-Length headers.Georg Brandl2008-02-241-0/+7
|
* #900744: If an invalid chunked-encoding header is sent by a server,Georg Brandl2008-02-241-0/+29
| | | | | httplib will now raise IncompleteRead and close the connection instead of raising ValueError.
* #1506171: added operator.methodcaller().Georg Brandl2008-02-231-0/+18
|
* #1826: allow dotted attribute paths in operator.attrgetter.Georg Brandl2008-02-231-0/+20
|
* Added simple test case. Thanks Benjamin Peterson.Facundo Batista2008-02-231-0/+33
|
* In test_heapq and test_bisect, test both the Python and the C implementation.Georg Brandl2008-02-232-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 targetJeffrey Yasskin2008-02-231-3/+11
| | | | raises an exception.
* Prevent classes like:Jeffrey Yasskin2008-02-231-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 importsChristian Heimes2008-02-2379-97/+37
|
* #1433694: minidom's .normalize() failed to set .nextSibling for last element.Andrew M. Kuchling2008-02-231-0/+8
| | | | Fix by Malte Helmert
* #1330538: Improve comparison of xmlrpclib.DateTime and datetime instances.Andrew M. Kuchling2008-02-231-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 Brandl2008-02-231-1/+17
|
* Issue 1089358. Adds the siginterrupt() function, that is just aFacundo Batista2008-02-231-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 Brandl2008-02-231-23/+13
|
* Patch #1759: Backport of PEP 3129 class decoratorsChristian Heimes2008-02-233-1/+47
| | | | with some help from Georg
* Issue 1781. Now ConfigParser.add_section does not let you add aFacundo Batista2008-02-231-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 Batista2008-02-231-2/+3
| | | | Thanks Alan McIntyre.
* Issue 1881. Increased the stack limit from 500 to 1500. Also addedFacundo Batista2008-02-231-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 Smith2008-02-231-0/+27
| | | | and oct().
* Improve the implementation of itertools.product()Raymond Hettinger2008-02-231-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 Smith2008-02-221-0/+9
| | | | tests for bin.
* First draft for itertools.product(). Docs and other updates forthcoming.Raymond Hettinger2008-02-221-0/+28
|
* Moved test_format into the correct TestCase.Eric Smith2008-02-211-39/+39
|
* Trim leading zeros from a floating point exponent, per C99. See issue 1600. ↵Eric Smith2008-02-201-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 Smith2008-02-181-0/+9
| | | | case.