summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_descr.py
Commit message (Collapse)AuthorAgeFilesLines
* Merged revisions 86596 via svnmerge fromEzio Melotti2010-11-211-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 Dickinson2010-06-051-1/+0
|
* properly lookup the __format__ special methodBenjamin Peterson2010-06-051-0/+3
|
* Replace catch_warnings with check_warnings when it makes sense. Use ↵Florent Xicluna2010-03-311-12/+6
| | | | assertRaises context manager to simplify some tests.
* #7092 - Silence more py3k deprecation warnings, using ↵Florent Xicluna2010-03-211-3/+8
| | | | test_support.check_py3k_warnings() helper.
* Issue 6292: for the moment at least, the test suite passes if runR. David Murray2010-02-231-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 Brandl2010-02-071-10/+1
|
* check type_getattro for correctness in a descriptor corner caseBenjamin Peterson2010-02-061-0/+9
|
* use assert[Not]IsInstance where appropriateEzio Melotti2010-01-241-13/+13
|
* use assert[Not]In where appropriateEzio Melotti2010-01-231-26/+26
|
* data descriptors do not override the class dictionary if __get__ is not definedBenjamin Peterson2010-01-181-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 bySenthil Kumaran2010-01-081-13/+3
| | | | mistake. ( It may come in for sure tough)
* Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. ↵Senthil Kumaran2010-01-081-3/+13
| | | | Patch by flox
* do correct lookup of the __complex__ methodBenjamin Peterson2010-01-041-0/+3
|
* check if the attribute is set before deleting it with T_OBJECT_EX (fixes #7604)Benjamin Peterson2009-12-301-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 #7491Benjamin Peterson2009-12-131-0/+9
|
* Correctly restore sys.stdout in test_descrNick Coghlan2009-10-171-0/+3
|
* remove the check that classmethod's argument is a callableBenjamin Peterson2009-09-011-7/+3
|
* convert usage of fail* to assert*Benjamin Peterson2009-06-301-162/+162
|
* correctly handle descrs with __missing__Benjamin Peterson2009-05-271-2/+12
|
* add a SETUP_WITH opcodeBenjamin Peterson2009-05-251-5/+3
| | | | | It speeds up the with statement and correctly looks up the special methods involved.
* handle errors from _PyObject_LookupSpecial when __get__ failsBenjamin Peterson2009-05-251-1/+17
|
* properly lookup __instancecheck__ and __subclasscheck__Benjamin Peterson2009-05-161-6/+17
|
* convert some more special methods to use _PyObject_LookupSpecialBenjamin Peterson2009-05-091-3/+15
|
* lookup __reversed__ correctly as a special methodBenjamin Peterson2009-05-091-0/+3
|
* fix this testBenjamin Peterson2009-05-081-4/+2
|
* add _PyObject_LookupSpecial to handle fetching special method lookupBenjamin Peterson2009-05-081-0/+52
|
* fix a segfault when setting __class__ in __del__ #5283Benjamin Peterson2009-04-251-0/+10
|
* move test to a more appropiate oneBenjamin Peterson2009-04-181-25/+30
|
* try to initalize all builtin types with PyType_Ready to avoid problems like ↵Benjamin Peterson2009-04-181-0/+12
| | | | #5787
* apply the second part of #4242's patch; classify all the implementation ↵Benjamin Peterson2009-03-261-45/+109
| | | | details in test_descr
* when __getattr__ is a descriptor, call it correctly; fixes #4230Benjamin Peterson2008-11-171-0/+40
| | | | patch from Ziga Seilnacht
* Fix one of the tests: it relied on being present in an "output test" inArmin Rigo2008-10-281-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 Coghlan2008-08-111-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 Coghlan2008-07-151-0/+8
| | | | be blocked explicitly so that collections.Hashable remains meaningful
* Issue #2115: __slot__ attributes setting was 10x slower.Amaury Forgeot d'Arc2008-02-151-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 Brandl2008-02-021-4494/+4189
|
* Fix test67.py from issue #1303614.Guido van Rossum2008-01-241-0/+24
|
* Fi debug turd -- a call accidentally left out.Guido van Rossum2008-01-241-1/+1
|
* Fix the tests by restoring __import__. I think the test is still valid.Neal Norwitz2008-01-241-4/+6
|
* Turn three recently fixed crashers into regular tests.Guido van Rossum2008-01-231-1/+70
|
* Remove a straggling debugging print line.Brett Cannon2007-12-251-1/+0
|
* Actually execute the tests for the getter/setter/deleter tests on properties.Brett Cannon2007-12-251-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_descrChristian Heimes2007-11-271-1/+1
|
* Replaced import of the 'new' module with 'types' module and added a ↵Christian Heimes2007-11-271-1/+0
| | | | deprecation warning to the 'new' module.
* Issue 1416. Add getter, setter, deleter methods to properties that can beGuido van Rossum2007-11-101-0/+65
| | | | used as decorators to create fully-populated properties.
* Fix a crasher where Python code managed to infinitely recurse in C code withoutBrett Cannon2007-09-071-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 Rigo2007-05-021-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 Norwitz2007-04-251-2/+2
| | | | You might want to review this change as it's my first time. Be gentle. :-)
* Revert r53997 as perArmin Rigo2007-04-191-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.