summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_descr.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #20532: Tests which use _testcapi now are marked as CPython only.Serhiy Storchaka2014-02-071-0/+1
|
* Issue #19572: More silently skipped tests explicitly skipped.Zachary Ware2013-12-101-1/+2
|
* Issue #19603: Use specific asserts in test_decr.Serhiy Storchaka2013-11-171-159/+174
|
* Issue #16447: Fix potential segfault when setting __name__ on a class.Mark Dickinson2013-04-131-0/+14
|
* fix calling the classmethod descriptor directly (closes #14699)Benjamin Peterson2012-05-011-0/+16
|
* don't use a slot wrapper from a different special method (closes #14658)Benjamin Peterson2012-04-241-1/+9
| | | | | | | This also alters the fix to #11603. Specifically, setting __repr__ to object.__str__ now raises a recursion RuntimeError when str() or repr() is called instead of silently bypassing the recursion. I believe this behavior is more correct.
* check to make sure the attribute is a string (#14334)Benjamin Peterson2012-03-161-0/+3
|
* allow cycles throught the __dict__ slot to be cleared (closes #1469629)Benjamin Peterson2012-03-081-2/+17
| | | | Patch from Armin, test from me.
* Issue #11603: Fix a crash when __str__ is rebound as __repr__.Antoine Pitrou2011-07-151-0/+8
| | | | Patch by Andreas Stührk.
* Fixup repr for dict_proxy objects.Raymond Hettinger2011-06-291-0/+4
|
* correctly lookup __dir__Benjamin Peterson2011-05-231-0/+1
|
* (Merge 3.1) Issue #9756: When calling a method descriptor or a slot wrapperVictor Stinner2011-05-011-0/+16
| | | | | | descriptor, the check of the object type doesn't read the __class__ attribute anymore. Fix a crash if a class override its __class__ attribute (e.g. a proxy of the str type).
* #11565: Fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti2011-03-161-1/+1
|
* #11515: fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti2011-03-151-1/+1
|
* Merged revisions 87952-87954 via svnmerge fromBenjamin Peterson2011-01-121-0/+11
| | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r87952 | benjamin.peterson | 2011-01-12 09:24:27 -0600 (Wed, 12 Jan 2011) | 1 line move this test to test_descr; it's not abc specific ........ r87953 | benjamin.peterson | 2011-01-12 09:25:02 -0600 (Wed, 12 Jan 2011) | 1 line oops, wrong class ........ r87954 | benjamin.peterson | 2011-01-12 09:34:01 -0600 (Wed, 12 Jan 2011) | 1 line don't segfault on deleting __abstractmethods__ #10892 ........
* 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