Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merged revisions 86596 via svnmerge from | Ezio Melotti | 2010-11-21 | 1 | -4/+4 |
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86596 | ezio.melotti | 2010-11-20 21:04:17 +0200 (Sat, 20 Nov 2010) | 1 line #9424: Replace deprecated assert* methods in the Python test suite. ........ | ||||
* | Issue #8627: remove out-of-date warning about overriding __cmp__ | Mark Dickinson | 2010-06-05 | 1 | -1/+0 |
| | |||||
* | properly lookup the __format__ special method | Benjamin Peterson | 2010-06-05 | 1 | -0/+3 |
| | |||||
* | Replace catch_warnings with check_warnings when it makes sense. Use ↵ | Florent Xicluna | 2010-03-31 | 1 | -12/+6 |
| | | | | assertRaises context manager to simplify some tests. | ||||
* | #7092 - Silence more py3k deprecation warnings, using ↵ | Florent Xicluna | 2010-03-21 | 1 | -3/+8 |
| | | | | test_support.check_py3k_warnings() helper. | ||||
* | Issue 6292: for the moment at least, the test suite passes if run | R. David Murray | 2010-02-23 | 1 | -0/+4 |
| | | | | | | with -OO. Tests requiring docstrings are skipped. Patch by Brian Curtin, thanks to Matias Torchinsky for helping review and improve the patch. | ||||
* | Remove unused imports in test modules. | Georg Brandl | 2010-02-07 | 1 | -10/+1 |
| | |||||
* | check type_getattro for correctness in a descriptor corner case | Benjamin Peterson | 2010-02-06 | 1 | -0/+9 |
| | |||||
* | use assert[Not]IsInstance where appropriate | Ezio Melotti | 2010-01-24 | 1 | -13/+13 |
| | |||||
* | use assert[Not]In where appropriate | Ezio Melotti | 2010-01-23 | 1 | -26/+26 |
| | |||||
* | data descriptors do not override the class dictionary if __get__ is not defined | Benjamin Peterson | 2010-01-18 | 1 | -0/+20 |
| | | | | | | | Adjust documentation and add a test to verify this behavior. See http://mail.python.org/pipermail/python-dev/2010-January/095637.html for discussion. | ||||
* | Reverting the Revision: 77368. I committed Flox's big patch for tests by | Senthil Kumaran | 2010-01-08 | 1 | -13/+3 |
| | | | | mistake. ( It may come in for sure tough) | ||||
* | Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. ↵ | Senthil Kumaran | 2010-01-08 | 1 | -3/+13 |
| | | | | Patch by flox | ||||
* | do correct lookup of the __complex__ method | Benjamin Peterson | 2010-01-04 | 1 | -0/+3 |
| | |||||
* | check if the attribute is set before deleting it with T_OBJECT_EX (fixes #7604) | Benjamin Peterson | 2009-12-30 | 1 | -0/+5 |
| | | | | | Also, add a note to the docs about the better behavior of T_OBJECT_EX as compared to T_OBJECT. | ||||
* | fix the ignoring of __cmp__ method on metaclasses #7491 | Benjamin Peterson | 2009-12-13 | 1 | -0/+9 |
| | |||||
* | Correctly restore sys.stdout in test_descr | Nick Coghlan | 2009-10-17 | 1 | -0/+3 |
| | |||||
* | remove the check that classmethod's argument is a callable | Benjamin Peterson | 2009-09-01 | 1 | -7/+3 |
| | |||||
* | convert usage of fail* to assert* | Benjamin Peterson | 2009-06-30 | 1 | -162/+162 |
| | |||||
* | correctly handle descrs with __missing__ | Benjamin Peterson | 2009-05-27 | 1 | -2/+12 |
| | |||||
* | add a SETUP_WITH opcode | Benjamin Peterson | 2009-05-25 | 1 | -5/+3 |
| | | | | | It speeds up the with statement and correctly looks up the special methods involved. | ||||
* | handle errors from _PyObject_LookupSpecial when __get__ fails | Benjamin Peterson | 2009-05-25 | 1 | -1/+17 |
| | |||||
* | properly lookup __instancecheck__ and __subclasscheck__ | Benjamin Peterson | 2009-05-16 | 1 | -6/+17 |
| | |||||
* | convert some more special methods to use _PyObject_LookupSpecial | Benjamin Peterson | 2009-05-09 | 1 | -3/+15 |
| | |||||
* | lookup __reversed__ correctly as a special method | Benjamin Peterson | 2009-05-09 | 1 | -0/+3 |
| | |||||
* | fix this test | Benjamin Peterson | 2009-05-08 | 1 | -4/+2 |
| | |||||
* | add _PyObject_LookupSpecial to handle fetching special method lookup | Benjamin Peterson | 2009-05-08 | 1 | -0/+52 |
| | |||||
* | fix a segfault when setting __class__ in __del__ #5283 | Benjamin Peterson | 2009-04-25 | 1 | -0/+10 |
| | |||||
* | move test to a more appropiate one | Benjamin Peterson | 2009-04-18 | 1 | -25/+30 |
| | |||||
* | try to initalize all builtin types with PyType_Ready to avoid problems like ↵ | Benjamin Peterson | 2009-04-18 | 1 | -0/+12 |
| | | | | #5787 | ||||
* | apply the second part of #4242's patch; classify all the implementation ↵ | Benjamin Peterson | 2009-03-26 | 1 | -45/+109 |
| | | | | details in test_descr | ||||
* | when __getattr__ is a descriptor, call it correctly; fixes #4230 | Benjamin Peterson | 2008-11-17 | 1 | -0/+40 |
| | | | | patch from Ziga Seilnacht | ||||
* | Fix one of the tests: it relied on being present in an "output test" in | Armin Rigo | 2008-10-28 | 1 | -7/+3 |
| | | | | | | order to actually test what it was supposed to test, i.e. that the code in the __del__ method did not crash. Use instead the new helper test_support.captured_output(). | ||||
* | Issue 2235: Py3k warnings are now emitted for classes that will no longer ↵ | Nick Coghlan | 2008-08-11 | 1 | -0/+5 |
| | | | | inherit a__hash__ implementation from a parent class in Python 3.x. The standard library and test suite have been updated to not emit these warnings. | ||||
* | Issue 2235: __hash__ is once again inherited by default, but inheritance can ↵ | Nick Coghlan | 2008-07-15 | 1 | -0/+8 |
| | | | | be blocked explicitly so that collections.Hashable remains meaningful | ||||
* | Issue #2115: __slot__ attributes setting was 10x slower. | Amaury Forgeot d'Arc | 2008-02-15 | 1 | -0/+18 |
| | | | | | | | | Also correct a possible crash using ABCs. This change is exactly the same as an optimisation done 5 years ago, but on slot *access*: http://svn.python.org/view?view=rev&rev=28297 | ||||
* | Rewrite test_descr as unittest, written for GHOP by Jeff Wheeler. | Georg Brandl | 2008-02-02 | 1 | -4494/+4189 |
| | |||||
* | Fix test67.py from issue #1303614. | Guido van Rossum | 2008-01-24 | 1 | -0/+24 |
| | |||||
* | Fi debug turd -- a call accidentally left out. | Guido van Rossum | 2008-01-24 | 1 | -1/+1 |
| | |||||
* | Fix the tests by restoring __import__. I think the test is still valid. | Neal Norwitz | 2008-01-24 | 1 | -4/+6 |
| | |||||
* | Turn three recently fixed crashers into regular tests. | Guido van Rossum | 2008-01-23 | 1 | -1/+70 |
| | |||||
* | Remove a straggling debugging print line. | Brett Cannon | 2007-12-25 | 1 | -1/+0 |
| | |||||
* | Actually execute the tests for the getter/setter/deleter tests on properties. | Brett Cannon | 2007-12-25 | 1 | -7/+12 |
| | | | | | | | | Also fix the test by having the test classes inherit from object. Are the getter/setter/deleter attributes supposed to be able to chain? As of right now they can't as the property tries to call what the property returns, which is another property when they are chained. | ||||
* | I forgot to fix one occurence of new in test_descr | Christian Heimes | 2007-11-27 | 1 | -1/+1 |
| | |||||
* | Replaced import of the 'new' module with 'types' module and added a ↵ | Christian Heimes | 2007-11-27 | 1 | -1/+0 |
| | | | | deprecation warning to the 'new' module. | ||||
* | Issue 1416. Add getter, setter, deleter methods to properties that can be | Guido van Rossum | 2007-11-10 | 1 | -0/+65 |
| | | | | used as decorators to create fully-populated properties. | ||||
* | Fix a crasher where Python code managed to infinitely recurse in C code without | Brett Cannon | 2007-09-07 | 1 | -1/+17 |
| | | | | | | | ever going back out to Python code in PyObject_Call(). Required introducing a static RuntimeError instance so that normalizing an exception there is no reliance on a recursive call that would put the exception system over the recursion check itself. | ||||
* | Fix for #1303614 and #1174712: | Armin Rigo | 2007-05-02 | 1 | -2/+78 |
| | | | | | | | - __dict__ descriptor abuse for subclasses of built-in types - subclassing from both ModuleType and another built-in types Thanks zseil for the patch. | ||||
* | Whitespace normalization. Ugh, we really need to do this more often. | Neal Norwitz | 2007-04-25 | 1 | -2/+2 |
| | | | | You might want to review this change as it's my first time. Be gentle. :-) | ||||
* | Revert r53997 as per | Armin Rigo | 2007-04-19 | 1 | -87/+61 |
| | | | | | | | | | http://mail.python.org/pipermail/python-dev/2007-March/071796.html . I've kept a couple of still-valid extra tests in test_descr, but didn't bother to sort through the new comments and refactorings added in r53997 to see if some of them could be kept. If so, they could go in a follow-up check-in. |