test_descr testresult

executable py.py
execution-time 460.453628063
exit-status 1
fspath /Users/mwh/Source/pypy/dist/lib-python/modified-2.4.1/test/test_descr.py
options oldstylecore_weakref
outcome ERR
platform darwin
pypy-revision 34903
python-version-info (2, 4, 4, 'final', 0)
startdate Thu Nov 23 15:57:08 2006
testreport-version 1.1
timeout 529.0
userhost mwh@tuatara.cs.uni-duesseldorf.de

stdout

****************************************
Testing weakref segfault...
--> weakref_segfault OK(1/88)
****************************************
Testing SF bug 551412 ...
Testing SF bug 570483...
--> do_this_first OK(2/88)
****************************************
--> class_docstrings OK(3/88)
****************************************
Testing list operations...
checking a+b
checking b in a
checking b in a
checking a[b]
checking a[b:c]
--> lists FAILURE(3/88) type object 'list' has no attribute '__getslice__'
****************************************
Testing dict operations...
checking cmp(a,b)
--> dicts FAILURE(3/88) type object 'dict' has no attribute '__cmp__'
****************************************
Testing dict constructor ...
--> dict_constructor OK(4/88)
****************************************
Testing dir() ...
--> test_dir OK(5/88)
****************************************
Testing int operations...
checking a & b
checking a >= b
checking a ^ b
checking a >> b
checking a - b
checking a > b
checking a ** b
checking a < b
checking a != b
checking a + b
checking a <= b
checking divmod(a, b)
checking a << b
checking a * b
checking a / b
checking a == b
checking a | b
checking a % b
checking int(a)
checking - a
checking ~ a
checking float(a)
checking hex(a)
checking + a
checking long(a)
checking abs(a)
checking oct(a)
--> ints OK(6/88)
****************************************
Testing long operations...
checking a & b
checking a >= b
checking a ^ b
checking a >> b
checking a - b
checking a > b
checking a ** b
checking a < b
checking a != b
checking a + b
checking a <= b
checking divmod(a, b)
checking a << b
checking a * b
checking a / b
checking a == b
checking a | b
checking a % b
checking int(a)
checking - a
checking ~ a
checking float(a)
checking hex(a)
checking + a
checking long(a)
checking abs(a)
checking oct(a)
--> longs OK(7/88)
****************************************
Testing float operations...
checking a >= b
checking a - b
checking a > b
checking a ** b
checking a < b
checking a != b
checking a + b
checking a <= b
checking divmod(a, b)
checking a * b
checking a / b
checking a == b
checking a % b
checking int(a)
checking - a
checking float(a)
checking + a
checking long(a)
checking abs(a)
--> floats OK(8/88)
****************************************
Testing complex operations...
checking a - b
checking a ** b
checking a != b
checking a + b
checking divmod(a, b)
checking a * b
checking a / b
checking a == b
checking a % b
checking - a
checking + a
checking abs(a)
--> complexes OK(9/88)
****************************************
Testing Python subclass of dict...
pydict stress test ...
--> pydicts OK(10/88)
****************************************
Testing Python subclass of list...
--> pylists OK(11/88)
****************************************
Testing __metaclass__...
--> metaclass OK(12/88)
****************************************
Testing Python subclass of module...
--> pymods OK(13/88)
****************************************
Testing multiple inheritance...
--> multi OK(14/88)
****************************************
Testing error messages for MRO disagreement...
--> mro_disagreement FAILURE(14/88) Message 'cycle among base classes: A < B < A', expected 'Cannot create a consistent method resolution\norder (MRO) for bases '
****************************************
Testing multiple inheritance special cases...
--> diamond OK(15/88)
****************************************
Testing ex5 from C3 switch discussion...
--> ex5 OK(16/88)
****************************************
Testing MRO monotonicity...
--> monotonicity OK(17/88)
****************************************
Testing consistentcy with EPG...
--> consistency_with_epg OK(18/88)
****************************************
Testing object class...
--> objects OK(19/88)
****************************************
Testing __slots__...
--> slots FAILURE(19/88) 1 == 0
****************************************
Testing __dict__ and __weakref__ in __slots__...
--> slotspecials OK(20/88)
****************************************
Testing class attribute propagation...
--> dynamics OK(21/88)
****************************************
Testing errors...
--> errors FAILURE(21/88) inheritance from CFunction should be illegal
****************************************
Testing class methods...
--> classmethods OK(22/88)
****************************************
Testing static methods...
--> staticmethods OK(23/88)
****************************************
Testing classic classes...
--> classic OK(24/88)
****************************************
Testing computed attributes...
--> compattr OK(25/88)
****************************************
Testing __new__ slot override...
--> newslot OK(26/88)
****************************************
Testing mro() and overriding it...
--> altmro OK(27/88)
****************************************
Testing operator overloading...
--> overloading OK(28/88)
****************************************
Testing methods...
--> methods OK(29/88)
****************************************
Testing special operators...
--> specials FAILURE(29/88) shouldn't allow <type 'unicode'>.__cmp__(u'123', '123')
****************************************
Testing weak references...
--> weakrefs OK(30/88)
****************************************
Testing property...
--> properties FAILURE(30/88) expected TypeError from trying to set readonly '__doc__' attr on a property
****************************************
Testing super...
--> supers OK(31/88)
****************************************
Testing inheritance from basic types...
--> inherits OK(32/88)
****************************************
Testing keyword args to basic type constructors ...
--> keywords OK(33/88)
****************************************
--> restricted OK(34/88)
****************************************
Testing a str subclass used as dict key ..
--> str_subclass_as_dict_key OK(35/88)
****************************************
Testing classic comparisons...
        (base = test.test_descr.classic)
        (base = <type 'int'>)
        (base = <type 'object'>)
--> classic_comparisons OK(36/88)
****************************************
Testing rich comparisons...
        (base = test.test_descr.classic)
        (base = <type 'int'>)
        (base = <type 'object'>)
        (base = <type 'list'>)
--> rich_comparisons OK(37/88)
****************************************
Testing coercions...
--> coercions OK(38/88)
****************************************
Testing descriptor doc strings...
--> descrdoc OK(39/88)
****************************************
Testing __class__ assignment...
--> setclass OK(40/88)
****************************************
Testing __dict__ assignment...
--> setdict OK(41/88)
****************************************
Testing pickling and copying new-style classes and objects...
pickle text
a = x = C1(1, 2)<[42, 24]>
b = y = 42
pickle binary
a = x = C1(1, 2)<[42, 24]>
b = y = 42
cPickle text
a = x = C1(1, 2)<[42, 24]>
b = y = 42
cPickle binary
a = x = C1(1, 2)<[42, 24]>
b = y = 42
deepcopy
a = x = C1(1, 2)<[42, 24]>
b = y = 42
--> pickles OK(42/88)
****************************************
Testing copy.copy() and copy.deepcopy()...
--> copies OK(43/88)
****************************************
Testing overrides of binary operations...
--> binopoverride OK(44/88)
****************************************
Testing propagation of slot functions to subclasses...
--> subclasspropagation OK(45/88)
****************************************
Testing that buffer interface is inherited ...
--> buffer_inherit OK(46/88)
****************************************
Testing __str__ defined in subclass of str ...
--> str_of_str_subclass OK(47/88)
****************************************
Testing keyword arguments to __init__, __call__...
--> kwdargs OK(48/88)
****************************************
Testing __del__ hook...
--> delhook OK(49/88)
****************************************
Testing hash of mutable subclasses...
--> hashinherit OK(50/88)
****************************************
--> strops OK(51/88)
****************************************
Testing deepcopy of recursive objects...
--> deepcopyrecursive OK(52/88)
****************************************
Testing uninitialized module objects...
--> modules OK(53/88)
****************************************
Testing dict-proxy iterkeys...
--> dictproxyiterkeys OK(54/88)
****************************************
Testing dict-proxy itervalues...
--> dictproxyitervalues OK(55/88)
****************************************
Testing dict-proxy iteritems...
--> dictproxyiteritems OK(56/88)
****************************************
Testing pickling of classes with __slots__ ...
--> pickleslots OK(57/88)
****************************************
Testing __new__ returning something unexpected...
--> funnynew OK(58/88)
****************************************
Testing for __imul__ problems...
--> imulbug OK(59/88)
****************************************
Testing __doc__ descriptor...
--> docdescriptor OK(60/88)
****************************************
Testing string exceptions ...
--> string_exceptions FAILURE(60/88) string subclass allowed as exception
****************************************
Testing that copy.*copy() correctly uses __setstate__...
--> copy_setstate OK(61/88)
****************************************
Testing cases with slices and overridden __getitem__ ...
--> slices OK(62/88)
****************************************
Testing resurrection of new-style instance...
--> subtype_resurrection OK(63/88)
****************************************
Testing slot trash...
--> slottrash OK(64/88)
****************************************
--> slotmultipleinheritance FAILURE(64/88) type object 'C' has no attribute '__basicsize__'
****************************************
Testing correct invocation of __rmul__...
--> testrmul OK(65/88)
****************************************
Testing correct invocation of __ipow__...
--> testipow OK(66/88)
****************************************
Testing mutable bases...
--> test_mutable_bases OK(67/88)
****************************************
Testing mutable bases with failing mro...
--> test_mutable_bases_with_failing_mro OK(68/88)
****************************************
Testing mutable bases catch mro conflict...
--> test_mutable_bases_catch_mro_conflict OK(69/88)
****************************************
Testing mutable names...
--> mutable_names OK(70/88)
****************************************
Testing correct dispatch of subclass overloading __r<op>__...
--> subclass_right_op OK(71/88)
****************************************
Testing type of __dict__ when __metaclass__ set...
--> dict_type_with_metaclass OK(72/88)
****************************************
Testing __get__ method of METH_CLASS C methods...
--> meth_class_get FAILURE(72/88) shouldn't have allowed descr.__get__(None, None)
****************************************
Testing proxy isinstance() and isclass()...
--> isinst_isclass OK(73/88)
****************************************
Testing super() for a proxy object...
--> proxysuper OK(74/88)
****************************************
Testing prohibition of Carlo Verre's hack...
--> carloverre OK(75/88)
****************************************
Testing sys.stdout is changed in getattr...
--> filefault OK(76/88)
****************************************
Testing vicious_descriptor_nonsense...
--> vicious_descriptor_nonsense OK(77/88)
****************************************
--> test_init FAILURE(77/88) __init__() should return None

stderr

Loading grammar /Users/mwh/Source/pypy/dist/pypy/interpreter/pyparser/data/Grammar2.5a
faking <type 'module'>
faking <type 'posix.stat_result'>
faking <type 'posix.statvfs_result'>
Traceback (application-level):
  File "/Users/mwh/Source/pypy/dist/pypy/tool/pytest/run-script/regrverbose.py", line 12 in <module>
    indirect_test()
  File "/Users/mwh/Source/pypy/dist/lib-python/modified-2.4.1/test/test_descr.py", line 3996 in test_main
    raise TestFailed, "%d/%d" % (success, n)
TestFailed: 77/88