Commit Graph

5976 Commits

Author SHA1 Message Date
Benjamin Peterson
a27dbc68f0 completely ignore old-style stuff for type checking overloading 2009-05-16 22:40:56 +00:00
Benjamin Peterson
fb6fb062e8 properly lookup __instancecheck__ and __subclasscheck__ 2009-05-16 21:44:25 +00:00
Benjamin Peterson
757b3c90e6 use skipTest() 2009-05-16 18:44:34 +00:00
Antoine Pitrou
775fd66d7b Issue #2116: Weak references and weak dictionaries now support copy()ing and deepcopy()ing. 2009-05-15 16:54:52 +00:00
Collin Winter
0f489743ef Issue 6024: make regrtest.py promote refleaks to test failures. 2009-05-14 23:26:30 +00:00
Benjamin Peterson
0db3cd6700 a useful decorator for cleaning up threads 2009-05-14 22:40:34 +00:00
Benjamin Peterson
92d102bf6d prevent refleaks from threads 2009-05-14 22:37:49 +00:00
R. David Murray
878555401e Fix test failure on Windows, and add skip check if even unicodedata
turns out not to be an external module on some other platform.
2009-05-14 16:12:57 +00:00
R. David Murray
996ba02602 Issue #4050: inspect.findsource/getsource now raise an IOError if the 'source'
file is a binary.  Patch by Brodie Rao, test by Daniel Diniz.
2009-05-13 17:14:11 +00:00
Michael Foord
5d31e057c5 Adds a verbosity keyword argument to unittest.main plus a minor fix allowing you to specify test modules / classes
from the command line.

Closes issue 5995.

Michael Foord
2009-05-11 17:59:43 +00:00
Mark Dickinson
b1d45856c2 Issue #5981: Fix some float.fromhex bugs related to inf and nan handling. 2009-05-11 15:33:08 +00:00
Benjamin Peterson
784d455066 *sigh* deal with instances correctly 2009-05-09 17:23:03 +00:00
Benjamin Peterson
af1692a266 convert some more special methods to use _PyObject_LookupSpecial 2009-05-09 16:36:39 +00:00
Benjamin Peterson
809e22543f lookup __reversed__ correctly as a special method 2009-05-09 02:07:04 +00:00
Gregory P. Smith
5edb1a1b0a Fix an off by one error on negative indexs to __getitem__
http://code.google.com/p/ipaddr-py/issues/detail?id=15
2009-05-08 23:16:47 +00:00
Jeffrey Yasskin
1aa4700234 PyCode_NewEmpty:
Most uses of PyCode_New found by http://www.google.com/codesearch?q=PyCode_New
are trying to build an empty code object, usually to put it in a dummy frame
object. This patch adds a PyCode_NewEmpty wrapper which lets the user specify
just the filename, function name, and first line number, instead of also
requiring lots of code internals.
2009-05-08 21:51:06 +00:00
Benjamin Peterson
db7ebcf469 fix this test 2009-05-08 17:59:29 +00:00
Benjamin Peterson
399e4c4f8f add _PyObject_LookupSpecial to handle fetching special method lookup 2009-05-08 03:06:00 +00:00
R. David Murray
f7e7babb55 Pre-opened test file needs to be opened in binary mode. 2009-05-07 18:09:58 +00:00
R. David Murray
8fd522fb5f Issue5955: aifc's close method did not close the file it wrapped,
now it does.  This also means getfp method now returns the real fp.
2009-05-07 16:27:02 +00:00
Walter Dörwald
a7fb408a02 Issue 3739: The unicode-internal encoder now reports the number of *characters*
consumed like any other encoder (instead of the number of bytes).
2009-05-06 14:28:24 +00:00
Eric Smith
a985a3aee4 Issue #5920: Changed format.__float__ and complex.__float__ to use a precision of 12 when using the empty presentation type. This more closely matches str()'s behavior and reduces surprises when adding alignment flags to an empty format string. Patch by Mark Dickinson. 2009-05-05 18:26:08 +00:00
Georg Brandl
4d4313d59d #5142: add module skipping feature to pdb. 2009-05-05 08:54:11 +00:00
Georg Brandl
7c26d76d9c #1309567: fix linecache behavior of stripping subdirectories from paths when looking for relative filename matches. Also add a linecache test suite. 2009-05-05 08:28:49 +00:00
R. David Murray
7ba8e1cbfd Fix issue 5890: (property subclass shadows __doc__ string) by inserting
the __doc__ into the subclass instance __dict__.  The fix refactors
property_copy to call property_init in such a way that the __doc__
logic is re-executed correctly when getter_doc is 1, thus simplifying
property_copy.
2009-05-04 22:16:24 +00:00