summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_property.py
Commit message (Collapse)AuthorAgeFilesLines
* gh-89519: Remove classmethod descriptor chaining, deprecated since 3.11 ↵Raymond Hettinger2023-10-271-21/+0
| | | | (gh-110163)
* gh-98963: Restore the ability to have a dict-less property. (#105262)Gregory P. Smith2023-06-051-5/+56
| | | | | Ignore doc string assignment failures in `property` as has been the behavior of all past Python releases.
* GH-100942: Fix incorrect cast in property_copy(). (#100965)Raymond Hettinger2023-01-121-0/+17
|
* bpo-41287: Handle `doc` argument of `property.__init__` in subclasses (#23205)Sergei Izmailov2022-05-291-0/+95
| | | | | Fixes #85459 Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* Use raw string to avoid deprecation warning (GH-31427)Dennis Sweeney2022-02-191-1/+1
|
* bpo-46730: Add more info to @property AttributeError messages (GH-31311)Alex-Blade2022-02-161-5/+5
| | | On `obj.read_only_property = x`, raise `AttributeError: property 'read_only_property' of 'A' object has no setter`.
* bpo-27794: Add `name` attribute to `property` class (GH-23967)Yurii Karabas2020-12-301-0/+50
|
* bpo-19072: Make @classmethod support chained decorators (GH-8405)Berker Peksag2019-08-241-0/+21
|
* bpo-31787: Prevent refleaks when calling __init__() more than once (GH-3995)Oren Milman2018-02-131-0/+11
|
* Issue #25755: Move PropertyWritableDoc into the test caseBerker Peksag2015-12-111-7/+7
| | | | | | | | This fixes a test failure in refleak mode because test_property_decorator_doc_writable no longer modifies the class in module level. Initial patch by Nan Wu and Torsten Landschoff (from issue 25757)
* Issue #24064: Property() docstrings are now writeable.Raymond Hettinger2015-05-131-0/+22
| | | | (Patch by Berker Peksag.)
* Issue #21741: Update 147 test modules to use test discovery.Zachary Ware2015-04-131-5/+1
| | | | | | | I have compared output between pre- and post-patch runs of these tests to make sure there's nothing missing and nothing broken, on both Windows and Linux. The only differences I found were actually tests that were previously *not* run.
* Issue #23641: Cleaned out legacy dunder names from tests and docs.Serhiy Storchaka2015-03-121-2/+2
| | | | Fixed 2 to 3 porting bug in pynche.ColorDB.
* Fix skip conditions in some docstings tests.Serhiy Storchaka2013-01-281-2/+2
|\
| * Fix skip conditions in some docstings tests.Serhiy Storchaka2013-01-281-2/+2
| |
* | improve abstract property support (closes #11610)Benjamin Peterson2011-12-151-0/+23
|/ | | | Thanks to Darren Dale for patch.
* Merged revisions 82332 via svnmerge fromBenjamin Peterson2010-06-281-1/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r82332 | benjamin.peterson | 2010-06-28 10:41:06 -0500 (Mon, 28 Jun 2010) | 1 line fix skipping condition ........
* Merged revisions 78351 via svnmerge fromR. David Murray2010-02-241-11/+30
| | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78351 | r.david.murray | 2010-02-22 19:24:49 -0500 (Mon, 22 Feb 2010) | 5 lines Issue 6292: for the moment at least, the test suite passes if run with -OO. Tests requiring docstrings are skipped. Patch by Brian Curtin, thanks to Matias Torchinsky for helping review and improve the patch. ........
* convert old fail* assertions to assert*Benjamin Peterson2009-06-301-2/+2
|
* Merged revisions 72299 via svnmerge fromR. David Murray2009-05-041-1/+115
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r72299 | r.david.murray | 2009-05-04 18:16:24 -0400 (Mon, 04 May 2009) | 7 lines 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. ........
* #2621 rename test.test_support to test.supportBenjamin Peterson2008-05-201-1/+1
|
* Merged revisions 59488-59511 via svnmerge fromChristian Heimes2007-12-151-0/+98
svn+ssh://pythondev@svn.python.org/python/trunk ........ r59489 | christian.heimes | 2007-12-14 03:33:57 +0100 (Fri, 14 Dec 2007) | 1 line Silence a warning about an unsed variable in debug builds ........ r59490 | christian.heimes | 2007-12-14 03:35:23 +0100 (Fri, 14 Dec 2007) | 2 lines Fixed bug #1620: New @spam.getter property syntax modifies the property in place. I added also the feature that a @prop.getter decorator does not overwrite the doc string of the property if it was given as an argument to property(). ........ r59491 | raymond.hettinger | 2007-12-14 03:49:47 +0100 (Fri, 14 Dec 2007) | 1 line Cleaner method naming convention ........ r59492 | christian.heimes | 2007-12-14 04:02:34 +0100 (Fri, 14 Dec 2007) | 1 line Fixed a warning in _codecs_iso2022.c and some non C89 conform // comments. ........ r59493 | christian.heimes | 2007-12-14 05:38:13 +0100 (Fri, 14 Dec 2007) | 1 line Fixed warning in ssl module ........ r59500 | raymond.hettinger | 2007-12-14 19:08:20 +0100 (Fri, 14 Dec 2007) | 1 line Add line spacing for readability ........ r59501 | raymond.hettinger | 2007-12-14 19:12:21 +0100 (Fri, 14 Dec 2007) | 3 lines Update method names for named tuples. ........ r59503 | georg.brandl | 2007-12-14 20:03:36 +0100 (Fri, 14 Dec 2007) | 3 lines Add a section about nested listcomps to the tutorial. Thanks to Ian Bruntlett and Robert Lehmann. ........ r59504 | raymond.hettinger | 2007-12-14 20:19:59 +0100 (Fri, 14 Dec 2007) | 1 line Faster and simpler _replace() method ........ r59505 | raymond.hettinger | 2007-12-14 22:51:50 +0100 (Fri, 14 Dec 2007) | 1 line Add usage note ........ r59507 | andrew.kuchling | 2007-12-14 23:41:18 +0100 (Fri, 14 Dec 2007) | 1 line Remove warning about URL ........ r59510 | andrew.kuchling | 2007-12-14 23:52:36 +0100 (Fri, 14 Dec 2007) | 1 line Bump the version number, and make a few small edits ........ r59511 | christian.heimes | 2007-12-15 00:42:36 +0100 (Sat, 15 Dec 2007) | 2 lines Fixed bug #1628 The detection now works on Unix with Makefile, Makefile with VPATH and on Windows. ........