mirror of https://github.com/python/cpython.git
61 lines
2.6 KiB
Plaintext
61 lines
2.6 KiB
Plaintext
|
////////////////////////////////////////////////////////////////////////
|
||
|
test_class
|
||
|
////////////////////////////////////////////////////////////////////////
|
||
|
|
||
|
test test_class failed -- hash(C1()) should raise <class 'exceptions.TypeError'>
|
||
|
Also hash(C2())
|
||
|
Also stack blowout, recursing between
|
||
|
#5921 0x0003868c in slot_tp_call (self=0x5b0c90, args=0x338030, kwds=0x0) at ../Objects/typeobject.c:4583
|
||
|
#5922 0x00021124 in PyObject_Call (func=0x5b0c90, arg=0x3384c0, kw=0x134e10) at ../Objects/abstract.c:1791
|
||
|
|
||
|
////////////////////////////////////////////////////////////////////////
|
||
|
test_descr
|
||
|
////////////////////////////////////////////////////////////////////////
|
||
|
|
||
|
Testing hash of mutable subclasses...
|
||
|
Traceback (most recent call last):
|
||
|
File "../Lib/test/test_descr.py", line 4096, in <module>
|
||
|
test_main()
|
||
|
File "../Lib/test/test_descr.py", line 4059, in test_main
|
||
|
hashinherit()
|
||
|
File "../Lib/test/test_descr.py", line 3108, in hashinherit
|
||
|
raise TestFailed, "hash() of dict subclass should fail"
|
||
|
test.test_support.TestFailed: hash() of dict subclass should fail
|
||
|
|
||
|
|
||
|
////////////////////////////////////////////////////////////////////////
|
||
|
test_set
|
||
|
////////////////////////////////////////////////////////////////////////
|
||
|
|
||
|
======================================================================
|
||
|
FAIL: test_contains (__main__.TestSetSubclass)
|
||
|
----------------------------------------------------------------------
|
||
|
Traceback (most recent call last):
|
||
|
File "../Lib/test/test_set.py", line 52, in test_contains
|
||
|
self.assert_(self.thetype(self.letters) in s)
|
||
|
AssertionError
|
||
|
|
||
|
======================================================================
|
||
|
FAIL: test_discard (__main__.TestSetSubclass)
|
||
|
----------------------------------------------------------------------
|
||
|
Traceback (most recent call last):
|
||
|
File "../Lib/test/test_set.py", line 302, in test_discard
|
||
|
self.assert_(self.thetype(self.word) in s)
|
||
|
AssertionError
|
||
|
|
||
|
======================================================================
|
||
|
FAIL: test_hash (__main__.TestSetSubclass)
|
||
|
----------------------------------------------------------------------
|
||
|
Traceback (most recent call last):
|
||
|
File "../Lib/test/test_set.py", line 265, in test_hash
|
||
|
self.assertRaises(TypeError, hash, self.s)
|
||
|
AssertionError: TypeError not raised
|
||
|
|
||
|
======================================================================
|
||
|
FAIL: test_remove (__main__.TestSetSubclass)
|
||
|
----------------------------------------------------------------------
|
||
|
Traceback (most recent call last):
|
||
|
File "../Lib/test/test_set.py", line 291, in test_remove
|
||
|
self.assert_(self.thetype(self.word) in s)
|
||
|
AssertionError
|