summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_class.py
Commit message (Collapse)AuthorAgeFilesLines
* backport:Neal Norwitz2003-02-021-0/+27
| | | | | | | | | | revision 1.10 date: 2002/10/29 19:08:29; author: gvanrossum; state: Exp; lines: +27 -0 Added test for this fix to classobject.c: Since properties are supported here, is possible that instance_getattr2() raises an exception. Fix all code that made this assumption.
* Backport:Guido van Rossum2002-06-131-0/+14
| | | | | | | Fix for SF bug 532646. This is a little simpler than what Neal suggested there, based upon a better analysis (__getattr__ is a red herring). [This might be a 2.1 bugfix candidate we well, if people care]
* Fiddle test_class so it passes with -Qnew.Tim Peters2001-12-111-5/+20
|
* Committing and closing SF patch #403671 by Finn Bock to help JythonBarry Warsaw2001-08-201-11/+31
| | | | pass these tests.
* Finn Bock (SF patch #103345): Avoid outdated exec form inGuido van Rossum2001-01-221-2/+2
| | | | test_class.py.
* Add test that ensures hash() of objects defining __cmp__ or __eq__ butGuido van Rossum2001-01-181-0/+23
| | | | not __hash__ raises TypeError.
* Make reindent.py happy (convert everything to 4-space indents!).Fred Drake2000-10-231-9/+8
|
* Fix for test_class.py on Win64. id(self), which on Win64 returns aTrent Mick2000-10-041-1/+1
| | | | | PyLong, was used for the return value of a class __hash__ method, which *must* return a PyInt. Solution: hash() the id(self) value.
* Apply SF patch #101029: call __getitem__ with a proper slice object if thereThomas Wouters2000-08-171-0/+219
is no __getslice__ available. Also does the same for C extension types. Includes rudimentary documentation (it could use a cross reference to the section on slice objects, I couldn't figure out how to do that) and a test suite for all Python __hooks__ I could think of, including the new behaviour.