[pypy-dev] Current test_all on windows
Ben.Young at risk.sungard.com
Ben.Young at risk.sungard.com
Mon Sep 19 11:04:54 CEST 2005
Hi Everyone,
It really looks like your optimization work is progressing! At this rate
you'll be faster than CPython by Christmas. I just had a couple of
questions from looking over the current changes.
Is there a plan to write an API for graph transformations that stops you
from performing invalid changes? That would be really useful considering
the amount and subtlety of the changes that are being made.
Also, do you really need to do inlining to do malloc removal? If you
annotate whether a function takes any ownership over an argument (would
need to propagate up from the leaf functions) then you can tell whether
you can just stack allocate the argument and just pass it in with & (Or is
that the plan anyway?).
Now as I was told to continue my nagging emails here is a latest list of
test failures on Windows. They have all been failing for a week or so (I
think). Interestingly the "inf" one only started failing around the time
you set more compliant calculations on for Windows
Cheers,
Ben
-------------- next part --------------
============================= test process starts =============================
testing-mode: inprocess
executable: c:\Python24\python.exe (2.4.1-final-0)
using py lib: c:\Documents and Settings\YoungB\dist\py <rev unknown>
annotation\test\test_model.py[10] ..........
annotation\test\test_pairtype.py[3] ...
doc\test_redirections.py[30] ..............................
doc\_ref.txt[62] s.............................................................
doc\architecture.txt[11] s..........
doc\coding-guide.txt[7] s......
doc\contact.txt[2] s.
doc\contributor.txt[2] s.
doc\draft-dynamic-language-translation.txt[7] s......
doc\extradoc.txt[2] s.
doc\faq.txt[4] s...
doc\garbage_collection.txt[4] s...
doc\getting-started.txt[14] s.............
doc\index.txt[33] s................................
doc\interpreter.txt[11] s..........
doc\misc.txt[2] s.
doc\news.txt[2] s.
doc\objspace.txt[7] s......
doc\parser.txt[2] s.
doc\release-0.6.txt[2] s.
doc\release-0.7.0.txt[2] s.
doc\svn-help.txt[3] s..
doc\theory.txt[6] s.....
doc\thoughts_string_interning.txt[2] s.
doc\translation.txt[10] s.........
interpreter\pyparser\test\test_astbuilder.py[?].......................................................................................................................................................................................................................................................................................................................................
interpreter\pyparser\test\test_astcompiler.py[317] .....................................................................................................................................................................................................................................................................................................F.......................
interpreter\pyparser\test\test_lookahead.py[8] ........
interpreter\pyparser\test\test_parsestring.py[3] ...
interpreter\pyparser\test\test_pytokenizer.py[5] .....
interpreter\pyparser\test\test_samples.py[71] .......................................................................
interpreter\test\test_appinterp.py[15] ...............
interpreter\test\test_class.py[14] ..............
interpreter\test\test_code.py[2] ..
interpreter\test\test_compiler.py[56] ........................................................
interpreter\test\test_descrtypecheck.py[2] ..
interpreter\test\test_eval.py[2] ..
interpreter\test\test_exceptcomp.py[11] ...........
interpreter\test\test_exec.py[21] .....................
interpreter\test\test_function.py[28] ............................
interpreter\test\test_gateway.py[13] .............
interpreter\test\test_generator.py[8] ........
interpreter\test\test_interpreter.py[27] .....................s.....
interpreter\test\test_main.py[3] ...
interpreter\test\test_module.py[5] .....
interpreter\test\test_nestedscope.py[6] ......
interpreter\test\test_objspace.py[14] ..............
interpreter\test\test_py.py[5] ....s
interpreter\test\test_pyframe.py[9] .........
interpreter\test\test_raise.py[13] .............
interpreter\test\test_special.py[2] ..
interpreter\test\test_synerr.py[1] .
interpreter\test\test_syntax.py[39] .......................................
interpreter\test\test_typedef.py[2] ..
lib\test2\test_deque_extra.py[3] ...
lib\test2\test_exception_extra.py[1] .
lib\test2\test_exceptions_extra.py[1] .
lib\test2\test_file_extra.py[13] .............
lib\test2\test_imp_extra.py[7] .......
lib\test2\test_marshal_extra.py[156] ...s.....s.....s.....s.....s.........................................................................................s.....s.........ss.ss.ss.ss.ss.ss.ss.ss
lib\test2\test_md5_extra.py[5] .....
lib\test2\test_osfilewrapper.py[2] ..
lib\test2\test_sha_extra.py[2] ..
lib\test2\test_stablecompiler.py[1] .
lib\test2\test_string_extra.py[1] .
lib\test2\test_struct_extra.py[1] .
module\__builtin__\test\test_apply.py[3] ...
module\__builtin__\test\test_buffer.py[2] ..
module\__builtin__\test\test_builtin.py[44] ............................................
module\__builtin__\test\test_complexobject.py[11] ...........
module\__builtin__\test\test_descriptor.py[6] ......
module\__builtin__\test\test_filter.py[11] ...........
module\__builtin__\test\test_functional.py[23] .......................
module\__builtin__\test\test_import.py[30] .............................s
module\__builtin__\test\test_minmax.py[14] ..............
module\__builtin__\test\test_range.py[19] ...................
module\__builtin__\test\test_reduce.py[4] ....
module\__builtin__\test\test_special.py[2] ..
module\__builtin__\test\test_vars.py[3] ...
module\__builtin__\test\test_zip.py[8] ........
module\_codecs\test\test_codecs.py[18] ..................
module\_sre\test\test_app_sre.py[101] sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
module\_sre\test\test_interp_sre.py[11] ...........
module\errno\test\test_errno.py[3] ...
module\marshal\test\test_marshal.py[30] ..............................
module\marshal\test\test_marshalimpl.py[1] .
module\parser\test\test_parser.py[1] .
module\parser\test\test_simple.py[0]
module\posix\test\test_posix2.py[6] ......
module\posix\test\test_posix_libfile.py[2] ..
module\sys\test\test_sysmodule.py[31] ...........................s...
module\thread\rpython\test\test_ll_thread.py[3] ...
module\thread\test\test_import_lock.py[1] .
module\thread\test\test_local.py[3] F..
module\thread\test\test_lock.py[1] .
module\thread\test\test_thread.py[6] ......
module\time\test\test_time.py[3] ...
module\unicodedata\test\test_unicodedata.py[2] .s
objspace\flow\test\test_framestate.py[10] ..........
objspace\flow\test\test_model.py[3] ...
objspace\flow\test\test_objspace.py[38] ......................................
objspace\std\test\test_boolobject.py[6] ......
objspace\std\test\test_dictobject.py[32] ................................
objspace\std\test\test_dictproxy.py[3] ...
objspace\std\test\test_floatobject.py[16] ................
objspace\std\test\test_instmethobject.py[5] .....
objspace\std\test\test_intobject.py[40] ........................................
objspace\std\test\test_iterobject.py[16] ................
objspace\std\test\test_listobject.py[41] .........................................
objspace\std\test\test_listsort.py[2] ..
objspace\std\test\test_longobject.py[37] .....................................
objspace\std\test\test_multimethod.py[7] .......
objspace\std\test\test_noneobject.py[3] ...
objspace\std\test\test_obj.py[4] ....
objspace\std\test\test_operation.py[3] ...
objspace\std\test\test_sliceobject.py[8] ........
objspace\std\test\test_stdobjspace.py[4] ....
objspace\std\test\test_stringformat.py[27] ...........................
objspace\std\test\test_stringobject.py[52] ....................................................
objspace\std\test\test_strutil.py[8] ........
objspace\std\test\test_tupleobject.py[16] ................
objspace\std\test\test_typeobject.py[25] .........................
objspace\std\test\test_unicodeobject.py[17] .................
objspace\std\test\test_userobject.py[17] .................
objspace\test\test_descriptor.py[4] ....
objspace\test\test_descroperation.py[8] ........
objspace\test\test_thunkobjspace.py[6] ......
objspace\test\test_traceobjspace.py[5] .....
rpython\memory\test\test_address.py[30] ..............................
rpython\memory\test\test_convertlltype.py[11] ...........
rpython\memory\test\test_gc.py[24] ........................
rpython\memory\test\test_llinterpsim.py[28] ............................
rpython\memory\test\test_lltypesimulation.py[19] ...................
rpython\memory\test\test_simulator.py[8] ........
rpython\memory\test\test_support.py[2] ..
rpython\module\test\test_ll_math.py[8] ........
rpython\module\test\test_ll_os.py[6] ......
rpython\module\test\test_ll_os_path.py[4] ....
rpython\module\test\test_ll_strtod.py[2] ..
rpython\module\test\test_posix.py[9] .........
rpython\test\test_exception.py[3] ...
rpython\test\test_llann.py[14] ..............
rpython\test\test_llinterp.py[27] ...........................
rpython\test\test_lltype.py[24] ........................
rpython\test\test_nongc.py[8] ........
rpython\test\test_normalizecalls.py[2] ..
rpython\test\test_objectmodel.py[8] ........
rpython\test\test_rarithmetic.py[36] ....................................
rpython\test\test_rbool.py[5] .....
rpython\test\test_rbuiltin.py[20] ....................
rpython\test\test_rclass.py[20] ....................
rpython\test\test_rconstantdict.py[5] .....
rpython\test\test_rdict.py[26] ..........................
rpython\test\test_remptydict.py[1] .
rpython\test\test_rexternalobj.py[1] .
rpython\test\test_rfloat.py[5] .....
rpython\test\test_rint.py[9] .........
rpython\test\test_rlist.py[35] ...................................
rpython\test\test_robject.py[5] .....
rpython\test\test_rpbc.py[51] ...................................................
rpython\test\test_rptr.py[2] ..
rpython\test\test_rrange.py[9] .........
rpython\test\test_rspecialcase.py[3] ...
rpython\test\test_rstr.py[34] ..................................
rpython\test\test_rtuple.py[11] ...........
rpython\test\test_rtyper.py[9] .........
test_all.py[0]
tool\pytest\test\test_new_count.py[6] ssssss
tool\pytest\test\test_overview.py[1] s
tool\test\test_cache.py[1] .
tool\test\test_conftest1.py[4] ....
tool\test\test_getdocstrings.py[3] ...
tool\test\test_pytestsupport.py[7] .......
tool\test\test_template.py[1] .
translator\backendopt\test\test_all.py[3] ...
translator\backendopt\test\test_inline.py[14] ..............
translator\backendopt\test\test_malloc.py[6] ......
translator\backendopt\test\test_removenoops.py[3] ...
translator\backendopt\test\test_ssa.py[0]
translator\c\test\test_annotated.py[20] ....................
translator\c\test\test_backendoptimized.py[49] .................................................
translator\c\test\test_boehm.py[1] s
translator\c\test\test_database.py[17] .................
translator\c\test\test_exception.py[5] .....
translator\c\test\test_extfunc.py[93] ....................................................s.......................................F
translator\c\test\test_genc.py[12] .........F..
translator\c\test\test_lltyped.py[2] ..
translator\c\test\test_notype.py[33] .................................
translator\c\test\test_operation.py[1] .
translator\c\test\test_standalone.py[1] testing_175.c
c:\Documents and Settings\YoungB\dist\pypy\translator\c\src\ll_os.h(138) : warning C4244: 'return' : conversion from '__int64' to 'long', possible loss of data
c:\Documents and Settings\YoungB\dist\pypy\translator\c\src\ll_os.h(176) : warning C4013: 'getcwd' undefined; assuming extern returning int
c:\Documents and Settings\YoungB\dist\pypy\translator\c\src\ll_os.h(176) : warning C4047: '=' : 'char *' differs in levels of indirection from 'int'
c:\Documents and Settings\YoungB\dist\pypy\translator\c\src\ll_os.h(185) : warning C4013: 'chdir' undefined; assuming extern returning int
c:\Documents and Settings\YoungB\dist\pypy\translator\c\src\ll_os.h(192) : warning C4013: 'mkdir' undefined; assuming extern returning int
c:\Documents and Settings\YoungB\dist\pypy\translator\c\src\ll_os.h(199) : warning C4013: 'rmdir' undefined; assuming extern returning int
.
translator\c\test\test_support.py[7] .......
translator\c\test\test_symboltable.py[1] .
translator\c\test\test_typed.py[48] ................................................
translator\llvm\test\test_class.py[16] ssssssssssssssss
translator\llvm\test\test_exc_operation.py[15] sssssssssssssss
translator\llvm\test\test_exception.py[12] ssssssssssss
translator\llvm\test\test_extfunc.py[37] sssssssssssssssssssssssssssssssssssss
translator\llvm\test\test_gc.py[1] s
translator\llvm\test\test_genllvm.py[33] sssssssssssssssssssssssssssssssss
translator\llvm\test\test_genllvm1.py[14] ssssssssssssss
translator\llvm\test\test_lltype.py[16] ssssssssssssssss
translator\llvm\test\test_seq.py[19] sssssssssssssssssss
translator\llvm\test\test_snippet.py[17] sssssssssssssssss
translator\llvm\test\test_typed.py[22] ssssssssssssssssssssss
translator\pyrex\test\test_pyrextrans.py[21] .....................
translator\pyrex\test\test_sourcegen.py[3] ...
translator\test\test_annmm.py[2] ..
translator\test\test_annrpython.py[131] ...................................................................................................................................
translator\test\test_annsimplify2.py[1] .
translator\test\test_annsimplifyrpython.py[131] ...................................................................................................................................
translator\test\test_backends.pytranslator\test\test_cltrans.py[14] ssssssssssssss
translator\test\test_geninterp.py[27] ...........................
translator\test\test_rpystone.py[1] .
translator\test\test_translator.py[1] .
translator\test\test_unsimplify.py[3] ...
translator\tool\test\test_cbuild.py[1] test.c
.
__________________________ reasons for skipped tests __________________________
Skipped in c:\Documents and Settings\YoungB\dist\pypy\translator\c\test\test_boehm.py:53
reason: Skipped: boehm test is fragile wrt. the number of dynamically loaded libs
Skipped in c:\Documents and Settings\YoungB\dist\pypy\translator\llvm\test\test_exc_operation.py:129
Skipped in c:\Documents and Settings\YoungB\dist\pypy\translator\llvm\test\test_exc_operation.py:76
Skipped in c:\Documents and Settings\YoungB\dist\pypy\translator\llvm\test\test_exc_operation.py:116
reason: Skipped: ovf operator exception not implemented
Skipped in c:\Documents and Settings\YoungB\dist\pypy\translator\llvm\test\test_exc_operation.py:93
reason: Skipped: val operator exception not implemented
Skipped in c:\Documents and Settings\YoungB\dist\pypy\translator\test\test_cltrans.py:45
reason: Skipped: Common Lisp neither configured nor detected.
Skipped in c:\Documents and Settings\YoungB\dist\pypy\tool\pytest\appsupport.py:182
reason: Skipped: requires a 'wide' python build.
Skipped in c:\Documents and Settings\YoungB\dist\pypy\translator\c\test\test_extfunc.py:88
reason: Skipped: this os has no ftruncate :-(
Skipped in c:\Documents and Settings\YoungB\dist\pypy\translator\llvm\test\test_exc_operation.py:81
Skipped in c:\Documents and Settings\YoungB\dist\pypy\translator\llvm\test\test_exc_operation.py:87
reason: Skipped: ovf_zer operator exception not implemented
Skipped in c:\Documents and Settings\YoungB\dist\pypy\translator\llvm\test\runtest.py:34
Skipped in c:\Documents and Settings\YoungB\dist\pypy\translator\llvm\test\runtest.py:23
reason: Skipped: llvm not found
Skipped in c:\Documents and Settings\YoungB\dist\pypy\interpreter\test\test_interpreter.py:240
reason: Skipped: expression too large for the recursive parser
Skipped in c:\Documents and Settings\YoungB\dist\pypy\tool\pytest\test\test_new_count.py:10
reason: Skipped: does not work on python 2.4 and greater currently
Skipped in c:\Documents and Settings\YoungB\dist\pypy\translator\llvm\test\test_exc_operation.py:98
reason: Skipped: ovf_val operator exception not implemented
Skipped in c:\Documents and Settings\YoungB\dist\pypy\translator\llvm\test\test_exc_operation.py:142
reason: Skipped: shift operator exception not implemented
Skipped in c:\Documents and Settings\YoungB\dist\pypy\module\__builtin__\test\test_import.py:440
reason: Skipped: unresolved issues with win32 shell quoting rules
Skipped in c:\Documents and Settings\YoungB\dist\pypy\lib\test2\test_marshal_extra.py:80
Skipped in c:\Documents and Settings\YoungB\dist\pypy\lib\test2\test_marshal_extra.py:91
Skipped in c:\Documents and Settings\YoungB\dist\pypy\lib\test2\test_marshal_extra.py:106
Skipped in c:\Documents and Settings\YoungB\dist\pypy\lib\test2\test_marshal_extra.py:71
Skipped in c:\Documents and Settings\YoungB\dist\pypy\lib\test2\test_marshal_extra.py:120
reason: Skipped: this version of CPython doesn't support this object
Skipped in c:\Documents and Settings\YoungB\dist\pypy\translator\test\test_backends.py:12
reason: Skipped: the Translator and back-ends depend on too many conditions to test the back-ends generically
Skipped in c:\Documents and Settings\YoungB\dist\pypy\tool\pytest\appsupport.py:182
reason: Skipped: Reference counting is not implemented.
Skipped in c:\Documents and Settings\YoungB\dist\pypy\interpreter\test\test_py.py:80
reason: Skipped: cannot detect process exit code for now
Skipped in c:\Documents and Settings\YoungB\dist\pypy\interpreter\pyparser\test\test_astbuilder.py:674
reason: Skipped: too ambitious for now (and time consuming)
Skipped in c:\Documents and Settings\YoungB\dist\pypy\tool\pytest\test\test_overview.py:9
reason: Skipped: testresult directory not checked out
Skipped in c:\Documents and Settings\YoungB\dist\pypy\translator\llvm\test\test_exc_operation.py:104
reason: Skipped: zer operator exception not implemented
Skipped in c:\Documents and Settings\YoungB\dist\pypy\module\_sre\test\test_app_sre.py:18
reason: Skipped: --usemodules=_sre option not provided
Skipped in c:\Documents and Settings\YoungB\dist\py\documentation\conftest.py:21
reason: Skipped: docutils not importable
_______________________________________________________________________________
________________________ entrypoint: test_snippets[30] ________________________
def check_compile(expr, target='exec', quiet=False, space=None):
if not quiet:
print "Compiling:", expr
if space is None:
space = std_space
sc_code = compile_with_stablecompiler(expr, target=target)
ac_code = compile_with_astcompiler(expr, target=target, space=space)
> compare_code(ac_code, sc_code, space=space)
[c:\Documents and Settings\YoungB\dist\pypy\interpreter\pyparser\test\test_astcompiler.py:147]
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
def compare_code(ac_code, sc_code, space=FakeSpace()):
#print "Filename", ac_code.co_filename, sc_code.co_filename
ac_code = to_code(ac_code, space)
assert ac_code.co_filename == sc_code.co_filename
#print repr(ac_code.co_code)
#print repr(sc_code.co_code)
if ac_code.co_code != sc_code.co_code:
import dis
print "Code from pypy:"
dis.dis(ac_code)
print "Code from python", sys.version
dis.dis(sc_code)
E assert ac_code.co_code == sc_code.co_code
> assert <code object <module> at 01673720, file "<?>", line -1>.co_code == <code object <module> at 01AFB6A0, file "<?>", line 2>.co_code
[c:\Documents and Settings\YoungB\dist\pypy\interpreter\pyparser\test\test_astcompiler.py:103]
- - - - - - - - - - - - - - [30]: recorded stdout - - - - - - - - - - - - - -
Compiling: # Function(Decorators([Name('foo')]), 'f', ['a', 'b'], [], 0, None, Stmt([Pass()]))
@foo
def f(a, b):
pass
@accepts(int, (int,float))
@returns((int,float))
def func(arg1, arg2):
return arg1 * arg2
## Stmt([Function(Decorators([CallFunc(Getattr(Getattr(Name('mod1'), 'mod2'), 'accepts'), [Name('int'), Tuple([Name('int'), Name('float')])], None, None),
## CallFunc(Getattr(Getattr(Name('mod1'), 'mod2'), 'returns'), [Tuple([Name('int'), Name('float')])], None, None)]),
## 'func', ['arg1', 'arg2'], [], 0, None, Stmt([Return(Mul((Name('arg1'), Name('arg2'))))]))])
@mod1.mod2.accepts(int, (int,float))
@mod1.mod2.returns((int,float))
def func(arg1, arg2):
return arg1 * arg2
Code from pypy:
0 0 LOAD_NAME 0 (foo)
3 LOAD_CONST 1 (<pypy.interpreter.pycode.PyCode object at 0x01AD7F90>)
6 MAKE_FUNCTION 0
9 CALL_FUNCTION 1
12 STORE_NAME 1 (f)
15 LOAD_NAME 2 (accepts)
18 LOAD_NAME 3 (int)
21 LOAD_NAME 3 (int)
24 LOAD_NAME 4 (float)
27 BUILD_TUPLE 2
30 CALL_FUNCTION 2
33 LOAD_NAME 5 (returns)
36 LOAD_NAME 3 (int)
39 LOAD_NAME 4 (float)
42 BUILD_TUPLE 2
45 CALL_FUNCTION 1
48 LOAD_CONST 2 (<pypy.interpreter.pycode.PyCode object at 0x01AD7FF0>)
51 MAKE_FUNCTION 0
54 CALL_FUNCTION 1
57 CALL_FUNCTION 1
60 STORE_NAME 6 (func)
63 LOAD_NAME 7 (mod1)
66 LOAD_ATTR 8 (mod2)
69 LOAD_ATTR 2 (accepts)
72 LOAD_NAME 3 (int)
75 LOAD_NAME 3 (int)
78 LOAD_NAME 4 (float)
81 BUILD_TUPLE 2
84 CALL_FUNCTION 2
87 LOAD_NAME 7 (mod1)
90 LOAD_ATTR 8 (mod2)
93 LOAD_ATTR 5 (returns)
96 LOAD_NAME 3 (int)
99 LOAD_NAME 4 (float)
102 BUILD_TUPLE 2
105 CALL_FUNCTION 1
108 LOAD_CONST 2 (<pypy.interpreter.pycode.PyCode object at 0x01AD7FF0>)
111 MAKE_FUNCTION 0
114 CALL_FUNCTION 1
117 CALL_FUNCTION 1
120 STORE_NAME 6 (func)
123 LOAD_CONST 0 (None)
126 RETURN_VALUE
Code from python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)]
2 0 LOAD_NAME 0 (foo)
3 3 LOAD_CONST 1 (<code object f at 01AFB0A0, file "<?>", line 3>)
6 MAKE_FUNCTION 0
9 CALL_FUNCTION 1
12 STORE_NAME 1 (f)
6 15 LOAD_NAME 2 (accepts)
18 LOAD_NAME 3 (int)
21 LOAD_NAME 3 (int)
24 LOAD_NAME 4 (float)
27 BUILD_TUPLE 2
30 CALL_FUNCTION 2
7 33 LOAD_NAME 5 (returns)
36 LOAD_NAME 3 (int)
39 LOAD_NAME 4 (float)
42 BUILD_TUPLE 2
45 CALL_FUNCTION 1
8 48 LOAD_CONST 2 (<code object func at 01AFB360, file "<?>", line 8>)
51 MAKE_FUNCTION 0
54 CALL_FUNCTION 1
57 CALL_FUNCTION 1
60 STORE_NAME 6 (func)
15 63 LOAD_NAME 7 (mod1)
66 LOAD_ATTR 8 (mod2)
69 LOAD_ATTR 2 (accepts)
72 LOAD_NAME 3 (int)
75 LOAD_NAME 3 (int)
78 LOAD_NAME 4 (float)
81 BUILD_TUPLE 2
84 CALL_FUNCTION 2
16 87 LOAD_NAME 7 (mod1)
90 LOAD_ATTR 8 (mod2)
93 LOAD_ATTR 5 (returns)
96 LOAD_NAME 3 (int)
99 LOAD_NAME 4 (float)
102 BUILD_TUPLE 2
105 CALL_FUNCTION 1
17 108 LOAD_CONST 3 (<code object func at 01AFB3E0, file "<?>", line 17>)
111 MAKE_FUNCTION 0
114 CALL_FUNCTION 1
117 CALL_FUNCTION 1
120 STORE_NAME 6 (func)
123 LOAD_CONST 0 (None)
126 RETURN_VALUE
_______________________________________________________________________________
____________________ entrypoint: AppTestLocal().test_local ____________________
def test_local(self):
import thread
from thread import _local as tlsobject
freed = []
class X:
def __del__(self):
freed.append(1)
ok = []
TLS1 = tlsobject()
TLS2 = tlsobject()
TLS1.aa = "hello"
def f(i):
success = False
try:
a = TLS1.aa = i
b = TLS1.bbb = X()
c = TLS2.cccc = i*3
d = TLS2.ddddd = X()
self.busywait(0.05)
assert TLS1.aa == a
assert TLS1.bbb is b
assert TLS2.cccc == c
assert TLS2.ddddd is d
success = True
finally:
ok.append(success)
for i in range(20):
thread.start_new_thread(f, (i,))
self.waitfor(lambda: len(ok) == 20, timeout=30.0)
assert ok == 20*[True] # see stdout/stderr for failures in the threads
self.waitfor(lambda: len(freed) >= 40)
E assert len(freed) == 40
> (application-level) AssertionError: assert 26 == 40
+ where 26 = len([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1])
[c:\Documents and Settings\YoungB\dist\pypy\None<c:\Documents and Settings\YoungB\dist\pypy\interpreter\gateway.py:575>:34]
- - - - - - - - - - - - test_local: recorded stderr - - - - - - - - - - - - -
fake-wrapping interp file <open file '<stdout>', mode 'w' at 0x0096E068>
fake-wrapping interp file <open file '<stderr>', mode 'w' at 0x0096E0B0>
fake-wrapping interp file <open file '<stdin>', mode 'r' at 0x0096E020>
_______________________________________________________________________________
__________________________ entrypoint: test_environ ___________________________
def test_environ():
import py
gw = py.execnet.PopenGateway()
chan = gw.remote_exec(py.code.Source(test_src))
res = chan.receive()
E assert res
> assert False
[c:\Documents and Settings\YoungB\dist\pypy\translator\c\test\test_extfunc.py:476]
_______________________________________________________________________________
_______________________ entrypoint: test_infinite_float _______________________
def test_infinite_float():
x = 1.0
while x != x / 2:
x *= 3.1416
def fn():
return x
f1 = compile(fn, [])
res = f1()
E assert res > 0 and res == res / 2
> assert (1.084767451313375e-229 > 0 and 1.084767451313375e-229 == (1.084767451313375e-229 / 2))
[c:\Documents and Settings\YoungB\dist\pypy\translator\c\test\test_genc.py:213]
- - - - - - - - - - test_infinite_float: recorded stdout - - - - - - - - - - -
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function robjmodel_instantiate at 0x00D9E770>, const=<function instantiate at 0x00B73030>, methodname='pypy.rpython.objectmodel.instantiate', s_self=None), SomePBC(const=<class exceptions.OSError at 0x00964780>)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function robjmodel_instantiate at 0x00D9E770>, const=<function instantiate at 0x00B73030>, methodname='pypy.rpython.objectmodel.instantiate', s_self=None), SomePBC(const=<class exceptions.AssertionError at 0x00964B70>)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function robjmodel_instantiate at 0x00D9E770>, const=<function instantiate at 0x00B73030>, methodname='pypy.rpython.objectmodel.instantiate', s_self=None), SomePBC(const=<class exceptions.MemoryError at 0x00977120>)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function robjmodel_instantiate at 0x00D9E770>, const=<function instantiate at 0x00B73030>, methodname='pypy.rpython.objectmodel.instantiate', s_self=None), SomePBC(const=<class exceptions.LookupError at 0x00964BA0>)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function robjmodel_instantiate at 0x00D9E770>, const=<function instantiate at 0x00B73030>, methodname='pypy.rpython.objectmodel.instantiate', s_self=None), SomePBC(const=<class exceptions.StandardError at 0x00964570>)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function robjmodel_instantiate at 0x00D9E770>, const=<function instantiate at 0x00B73030>, methodname='pypy.rpython.objectmodel.instantiate', s_self=None), SomePBC(const=<class exceptions.ZeroDivisionError at 0x00964CF0>)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function robjmodel_instantiate at 0x00D9E770>, const=<function instantiate at 0x00B73030>, methodname='pypy.rpython.objectmodel.instantiate', s_self=None), SomePBC(const=<class exceptions.ValueError at 0x00964DE0>)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function robjmodel_instantiate at 0x00D9E770>, const=<function instantiate at 0x00B73030>, methodname='pypy.rpython.objectmodel.instantiate', s_self=None), SomePBC(const=<class exceptions.TypeError at 0x009645A0>)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function robjmodel_instantiate at 0x00D9E770>, const=<function instantiate at 0x00B73030>, methodname='pypy.rpython.objectmodel.instantiate', s_self=None), SomePBC(const=<class exceptions.IndexError at 0x00964BD0>)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function robjmodel_instantiate at 0x00D9E770>, const=<function instantiate at 0x00B73030>, methodname='pypy.rpython.objectmodel.instantiate', s_self=None), SomePBC(const=<class exceptions.OverflowError at 0x00964C90>)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function robjmodel_instantiate at 0x00D9E770>, const=<function instantiate at 0x00B73030>, methodname='pypy.rpython.objectmodel.instantiate', s_self=None), SomePBC(const=<class exceptions.StopIteration at 0x00964540>)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function robjmodel_instantiate at 0x00D9E770>, const=<function instantiate at 0x00B73030>, methodname='pypy.rpython.objectmodel.instantiate', s_self=None), SomePBC(const=<class exceptions.EnvironmentError at 0x009646C0>)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function robjmodel_instantiate at 0x00D9E770>, const=<function instantiate at 0x00B73030>, methodname='pypy.rpython.objectmodel.instantiate', s_self=None), SomePBC(const=<class exceptions.Exception at 0x00964510>)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function robjmodel_instantiate at 0x00D9E770>, const=<function instantiate at 0x00B73030>, methodname='pypy.rpython.objectmodel.instantiate', s_self=None), SomePBC(const=<class thread.error at 0x00B24CF0>)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function robjmodel_instantiate at 0x00D9E770>, const=<function instantiate at 0x00B73030>, methodname='pypy.rpython.objectmodel.instantiate', s_self=None), SomePBC(const=<class exceptions.IOError at 0x00964720>)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function robjmodel_instantiate at 0x00D9E770>, const=<function instantiate at 0x00B73030>, methodname='pypy.rpython.objectmodel.instantiate', s_self=None), SomePBC(const=<class exceptions.KeyError at 0x00964C30>)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function robjmodel_instantiate at 0x00D9E770>, const=<function instantiate at 0x00B73030>, methodname='pypy.rpython.objectmodel.instantiate', s_self=None), SomePBC(const=<class py.magic.AssertionError at 0x00CC49F0>)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function robjmodel_instantiate at 0x00D9E770>, const=<function instantiate at 0x00B73030>, methodname='pypy.rpython.objectmodel.instantiate', s_self=None), SomePBC(const=<class exceptions.ArithmeticError at 0x00964C60>)]
[rtyper:translating] getattr [SomePtr(ll_ptrtype=<* GcStruct object { typeptr: * Struct object_vtable { parenttypeptr: * Struct object_vtable { ... }, subclassrange_min: Signed, subclassrange_max: Signed, rtti: * RuntimeTypeInfo (opaque), name: * Array of Char , instantiate: * Func ( ) -> * GcStruct object { ... } } }>), SomeString(can_be_None=False, const='typeptr')]
[rtyper:translating] getattr [SomePtr(ll_ptrtype=<* Struct object_vtable { parenttypeptr: * Struct object_vtable { ... }, subclassrange_min: Signed, subclassrange_max: Signed, rtti: * RuntimeTypeInfo (opaque), name: * Array of Char , instantiate: * Func ( ) -> * GcStruct object { typeptr: * Struct object_vtable { ... } } }>), SomeString(can_be_None=False, const='rtti')]
[rtyper:translating] simple_call [SomePBC(const=<class exceptions.OSError at 0x00964780>), SomeInteger(nonneg=False, unsigned=False), SomePBC(const=None)]
[rtyper:translating] inplace_sub [SomeInteger(nonneg=True, unsigned=False), SomeInteger(const=1, nonneg=True, unsigned=False)]
[rtyper:translating] ge [SomeInteger(nonneg=False, unsigned=False), SomeInteger(const=0, nonneg=True, unsigned=False)]
[rtyper:translating] is_true [SomeBool(knowntypedata={(True, v1188852): SomeInteger(nonneg=True, unsigned=False)})]
[rtyper:translating] getattr [SomePtr(ll_ptrtype=<* Struct object_vtable { parenttypeptr: * Struct object_vtable { ... }, subclassrange_min: Signed, subclassrange_max: Signed, rtti: * RuntimeTypeInfo (opaque), name: * Array of Char , instantiate: * Func ( ) -> * GcStruct object { typeptr: * Struct object_vtable { ... } } }>), SomeString(can_be_None=False, const='subclassrange_min')]
[rtyper:translating] getattr [SomePtr(ll_ptrtype=<* Struct object_vtable { parenttypeptr: * Struct object_vtable { ... }, subclassrange_min: Signed, subclassrange_max: Signed, rtti: * RuntimeTypeInfo (opaque), name: * Array of Char , instantiate: * Func ( ) -> * GcStruct object { typeptr: * Struct object_vtable { ... } } }>), SomeString(can_be_None=False, const='subclassrange_min')]
[rtyper:translating] le [SomeInteger(nonneg=False, unsigned=False), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] is_true [SomeBool()]
[rtyper:translating] getitem [SomePtr(const=<* array [ {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...} ]>, ll_ptrtype=<* Array of { pycls: * PyObject, excinst: * GcStruct object { typeptr: * Struct object_vtable { parenttypeptr: * Struct object_vtable { ... }, subclassrange_min: Signed, subclassrange_max: Signed, rtti: * RuntimeTypeInfo (opaque), name: * Array of Char , instantiate: * Func ( ) -> * GcStruct object { ... } } } } >), SomeInteger(nonneg=True, unsigned=False)]
[rtyper:translating] getattr [SomePtr(ll_ptrtype=<* Struct <arrayitem> { pycls: * PyObject, excinst: * GcStruct object { typeptr: * Struct object_vtable { parenttypeptr: * Struct object_vtable { ... }, subclassrange_min: Signed, subclassrange_max: Signed, rtti: * RuntimeTypeInfo (opaque), name: * Array of Char , instantiate: * Func ( ) -> * GcStruct object { ... } } } }>), SomeString(can_be_None=False, const='pycls')]
[rtyper:translating] simple_call [SomePtr(const=<* fn PyErr_GivenExceptionMatches>, ll_ptrtype=<* Func ( * PyObject, * PyObject ) -> Signed>), SomePtr(ll_ptrtype=<* PyObject>), SomePtr(ll_ptrtype=<* PyObject>)]
[rtyper:translating] is_true [SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] getitem [SomePtr(const=<* array [ {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...}, {pycls=..., excinst=...} ]>, ll_ptrtype=<* Array of { pycls: * PyObject, excinst: * GcStruct object { typeptr: * Struct object_vtable { parenttypeptr: * Struct object_vtable { ... }, subclassrange_min: Signed, subclassrange_max: Signed, rtti: * RuntimeTypeInfo (opaque), name: * Array of Char , instantiate: * Func ( ) -> * GcStruct object { ... } } } } >), SomeInteger(nonneg=True, unsigned=False)]
[rtyper:translating] getattr [SomePtr(ll_ptrtype=<* Struct <arrayitem> { pycls: * PyObject, excinst: * GcStruct object { typeptr: * Struct object_vtable { parenttypeptr: * Struct object_vtable { ... }, subclassrange_min: Signed, subclassrange_max: Signed, rtti: * RuntimeTypeInfo (opaque), name: * Array of Char , instantiate: * Func ( ) -> * GcStruct object { ... } } } }>), SomeString(can_be_None=False, const='excinst')]
[rtyper:translating] type [SomeInstance(can_be_None=False, classdef=OSError)]
[rtyper:translating] getattr [SomePtr(ll_ptrtype=<* Struct object_vtable { parenttypeptr: * Struct object_vtable { ... }, subclassrange_min: Signed, subclassrange_max: Signed, rtti: * RuntimeTypeInfo (opaque), name: * Array of Char , instantiate: * Func ( ) -> * GcStruct object { typeptr: * Struct object_vtable { ... } } }>), SomeString(can_be_None=False, const='subclassrange_max')]
[rtyper:translating] lt [SomeInteger(nonneg=False, unsigned=False), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function cast_pointer at 0x00D9EA30>, const=<function cast_pointer at 0x00D6F730>, methodname='pypy.rpython.lltype.cast_pointer', s_self=None), SomePBC(const=<* GcStruct object { typeptr: * Struct object_vtable { parenttypeptr: * Struct object_vtable { ... }, subclassrange_min: Signed, subclassrange_max: Signed, rtti: * RuntimeTypeInfo (opaque), name: * Array of Char , instantiate: * Func ( ) -> * GcStruct object { ... } } }>), SomePtr(ll_ptrtype=<* GcStruct object { typeptr: * Struct object_vtable { parenttypeptr: * Struct object_vtable { ... }, subclassrange_min: Signed, subclassrange_max: Signed, rtti: * RuntimeTypeInfo (opaque), name: * Array of Char , instantiate: * Func ( ) -> * GcStruct object { ... } } }>)]
[rtyper:translating] getattr [SomePtr(ll_ptrtype=<* GcStruct object { typeptr: * Struct object_vtable { parenttypeptr: * Struct object_vtable { ... }, subclassrange_min: Signed, subclassrange_max: Signed, rtti: * RuntimeTypeInfo (opaque), name: * Array of Char , instantiate: * Func ( ) -> * GcStruct object { ... } } }>), SomeString(can_be_None=False, const='typeptr')]
5 nodes [ func: 3 pyobj: 2 ]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function malloc at 0x00D9E970>, const=<function malloc at 0x00D6FE70>, methodname='pypy.rpython.lltype.malloc', s_self=None), SomePBC(const=<GcStruct tuple10 { item0: Signed, item1: Signed, item2: Signed, item3: Signed, item4: Signed, item5: Signed, item6: Signed, item7: Signed, item8: Signed, item9: Signed }>)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function rarith_intmask at 0x00D9E730>, const=<function intmask at 0x00B489B0>, methodname='pypy.rpython.rarithmetic.intmask', s_self=None), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct tuple10 { item0: Signed, item1: Signed, item2: Signed, item3: Signed, item4: Signed, item5: Signed, item6: Signed, item7: Signed, item8: Signed, item9: Signed }>), SomeString(can_be_None=False, const='item0'), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function rarith_intmask at 0x00D9E730>, const=<function intmask at 0x00B489B0>, methodname='pypy.rpython.rarithmetic.intmask', s_self=None), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct tuple10 { item0: Signed, item1: Signed, item2: Signed, item3: Signed, item4: Signed, item5: Signed, item6: Signed, item7: Signed, item8: Signed, item9: Signed }>), SomeString(can_be_None=False, const='item1'), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function rarith_intmask at 0x00D9E730>, const=<function intmask at 0x00B489B0>, methodname='pypy.rpython.rarithmetic.intmask', s_self=None), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct tuple10 { item0: Signed, item1: Signed, item2: Signed, item3: Signed, item4: Signed, item5: Signed, item6: Signed, item7: Signed, item8: Signed, item9: Signed }>), SomeString(can_be_None=False, const='item2'), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function rarith_intmask at 0x00D9E730>, const=<function intmask at 0x00B489B0>, methodname='pypy.rpython.rarithmetic.intmask', s_self=None), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct tuple10 { item0: Signed, item1: Signed, item2: Signed, item3: Signed, item4: Signed, item5: Signed, item6: Signed, item7: Signed, item8: Signed, item9: Signed }>), SomeString(can_be_None=False, const='item3'), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function rarith_intmask at 0x00D9E730>, const=<function intmask at 0x00B489B0>, methodname='pypy.rpython.rarithmetic.intmask', s_self=None), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct tuple10 { item0: Signed, item1: Signed, item2: Signed, item3: Signed, item4: Signed, item5: Signed, item6: Signed, item7: Signed, item8: Signed, item9: Signed }>), SomeString(can_be_None=False, const='item4'), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function rarith_intmask at 0x00D9E730>, const=<function intmask at 0x00B489B0>, methodname='pypy.rpython.rarithmetic.intmask', s_self=None), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct tuple10 { item0: Signed, item1: Signed, item2: Signed, item3: Signed, item4: Signed, item5: Signed, item6: Signed, item7: Signed, item8: Signed, item9: Signed }>), SomeString(can_be_None=False, const='item5'), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function rarith_intmask at 0x00D9E730>, const=<function intmask at 0x00B489B0>, methodname='pypy.rpython.rarithmetic.intmask', s_self=None), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct tuple10 { item0: Signed, item1: Signed, item2: Signed, item3: Signed, item4: Signed, item5: Signed, item6: Signed, item7: Signed, item8: Signed, item9: Signed }>), SomeString(can_be_None=False, const='item6'), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function rarith_intmask at 0x00D9E730>, const=<function intmask at 0x00B489B0>, methodname='pypy.rpython.rarithmetic.intmask', s_self=None), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct tuple10 { item0: Signed, item1: Signed, item2: Signed, item3: Signed, item4: Signed, item5: Signed, item6: Signed, item7: Signed, item8: Signed, item9: Signed }>), SomeString(can_be_None=False, const='item7'), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function rarith_intmask at 0x00D9E730>, const=<function intmask at 0x00B489B0>, methodname='pypy.rpython.rarithmetic.intmask', s_self=None), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct tuple10 { item0: Signed, item1: Signed, item2: Signed, item3: Signed, item4: Signed, item5: Signed, item6: Signed, item7: Signed, item8: Signed, item9: Signed }>), SomeString(can_be_None=False, const='item8'), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function rarith_intmask at 0x00D9E730>, const=<function intmask at 0x00B489B0>, methodname='pypy.rpython.rarithmetic.intmask', s_self=None), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct tuple10 { item0: Signed, item1: Signed, item2: Signed, item3: Signed, item4: Signed, item5: Signed, item6: Signed, item7: Signed, item8: Signed, item9: Signed }>), SomeString(can_be_None=False, const='item9'), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function malloc at 0x00D9E970>, const=<function malloc at 0x00D6FE70>, methodname='pypy.rpython.lltype.malloc', s_self=None), SomePBC(const=<GcStruct tuple2 { item0: Float, item1: Signed }>)]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct tuple2 { item0: Float, item1: Signed }>), SomeString(can_be_None=False, const='item0'), SomeFloat()]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct tuple2 { item0: Float, item1: Signed }>), SomeString(can_be_None=False, const='item1'), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] getattr [SomePtr(ll_ptrtype=<* GcStruct list { length: Signed, items: * GcArray of * GcStruct rpy_string { hash: Signed, chars: Array of Char } }>), SomeString(can_be_None=False, const='items')]
[rtyper:translating] setitem [SomePtr(ll_ptrtype=<* GcArray of * GcStruct rpy_string { hash: Signed, chars: Array of Char } >), SomeInteger(nonneg=False, unsigned=False), SomePtr(ll_ptrtype=<* GcStruct rpy_string { hash: Signed, chars: Array of Char }>)]
[rtyper:translating] simple_call [SomePBC(const=<function ll_setitem_nonneg__dum_nocheckConst_listPtr_Signed_rpy_stringPtr at 0x17A905F0>), SomePBC(const=<function dum_nocheck at 0x037749B0>), SomePtr(ll_ptrtype=<* GcStruct list { length: Signed, items: * GcArray of * GcStruct rpy_string { hash: Signed, chars: Array of Char } }>), SomeInteger(nonneg=False, unsigned=False), SomePtr(ll_ptrtype=<* GcStruct rpy_string { hash: Signed, chars: Array of Char }>)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function malloc at 0x00D9E970>, const=<function malloc at 0x00D6FE70>, methodname='pypy.rpython.lltype.malloc', s_self=None), SomePBC(const=<GcStruct rpy_string { hash: Signed, chars: Array of Char }>), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] simple_call [SomePBC(const=<function ll_newlist__Ptr_GcStruct_listLlT_Signed at 0x17A90B70>), SomePBC(const=<* GcStruct list { length: Signed, items: * GcArray of * GcStruct rpy_string { hash: Signed, chars: Array of Char } }>), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] getattr [SomePBC(const=<* GcStruct list { length: Signed, items: * GcArray of * GcStruct rpy_string { hash: Signed, chars: Array of Char } }>), SomeString(can_be_None=False, const='TO')]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function malloc at 0x00D9E970>, const=<function malloc at 0x00D6FE70>, methodname='pypy.rpython.lltype.malloc', s_self=None), SomePBC(const=<GcStruct list { length: Signed, items: * GcArray of * GcStruct rpy_string { hash: Signed, chars: Array of Char } }>)]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct list { length: Signed, items: * GcArray of * GcStruct rpy_string { hash: Signed, chars: Array of Char } }>), SomeString(can_be_None=False, const='length'), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] getattr [SomePBC(const=<* GcStruct list { length: Signed, items: * GcArray of * GcStruct rpy_string { hash: Signed, chars: Array of Char } }>), SomeString(can_be_None=False, const='TO')]
[rtyper:translating] getattr [SomePBC(const=<GcStruct list { length: Signed, items: * GcArray of * GcStruct rpy_string { hash: Signed, chars: Array of Char } }>), SomeString(can_be_None=False, const='items')]
[rtyper:translating] getattr [SomePBC(const=<* GcArray of * GcStruct rpy_string { hash: Signed, chars: Array of Char } >), SomeString(can_be_None=False, const='TO')]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function malloc at 0x00D9E970>, const=<function malloc at 0x00D6FE70>, methodname='pypy.rpython.lltype.malloc', s_self=None), SomePBC(const=<GcArray of * GcStruct rpy_string { hash: Signed, chars: Array of Char } >), SomeInteger(nonneg=False, unsigned=False)]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct list { length: Signed, items: * GcArray of * GcStruct rpy_string { hash: Signed, chars: Array of Char } }>), SomeString(can_be_None=False, const='items'), SomePtr(ll_ptrtype=<* GcArray of * GcStruct rpy_string { hash: Signed, chars: Array of Char } >)]
[rtyper:translating] simple_call [SomeBuiltin(analyser=<function malloc at 0x00D9E970>, const=<function malloc at 0x00D6FE70>, methodname='pypy.rpython.lltype.malloc', s_self=None), SomePBC(const=<GcStruct tuple2 { item0: Float, item1: Float }>)]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct tuple2 { item0: Float, item1: Float }>), SomeString(can_be_None=False, const='item0'), SomeFloat()]
[rtyper:translating] setattr [SomePtr(ll_ptrtype=<* GcStruct tuple2 { item0: Float, item1: Float }>), SomeString(can_be_None=False, const='item1'), SomeFloat()]
214 nodes [ array: 19 func: 34 pyobj: 19 refcnt rtti: 18 struct: 124 ]
- - - - - - - - - - test_infinite_float: recorded stderr - - - - - - - - - - -
[annrpython] (pypy.translator.c.test.test_genc:209) fn -> SomeFloat(const=1.#INF)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_OSError -> SomeInstance(can_be_None=False, classdef=OSError)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_OSError -> SomeInstance(can_be_None=False, classdef=object)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_StandardError -> SomeInstance(can_be_None=False, classdef=StandardError)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_StandardError -> SomeInstance(can_be_None=False, classdef=object)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_StopIteration -> SomeInstance(can_be_None=False, classdef=StopIteration)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_StopIteration -> SomeInstance(can_be_None=False, classdef=object)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_LookupError -> SomeInstance(can_be_None=False, classdef=LookupError)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_LookupError -> SomeInstance(can_be_None=False, classdef=object)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_IndexError -> SomeInstance(can_be_None=False, classdef=IndexError)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_IndexError -> SomeInstance(can_be_None=False, classdef=object)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_AssertionError -> SomeInstance(can_be_None=False, classdef=AssertionError)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_AssertionError -> SomeInstance(can_be_None=False, classdef=object)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_KeyError -> SomeInstance(can_be_None=False, classdef=KeyError)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_KeyError -> SomeInstance(can_be_None=False, classdef=object)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_ArithmeticError -> SomeInstance(can_be_None=False, classdef=ArithmeticError)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_ArithmeticError -> SomeInstance(can_be_None=False, classdef=object)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_OverflowError -> SomeInstance(can_be_None=False, classdef=OverflowError)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_OverflowError -> SomeInstance(can_be_None=False, classdef=object)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_ZeroDivisionError -> SomeInstance(can_be_None=False, classdef=ZeroDivisionError)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_ZeroDivisionError -> SomeInstance(can_be_None=False, classdef=object)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_MemoryError -> SomeInstance(can_be_None=False, classdef=MemoryError)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_MemoryError -> SomeInstance(can_be_None=False, classdef=object)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_Exception -> SomeInstance(can_be_None=False, classdef=Exception)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_Exception -> SomeInstance(can_be_None=False, classdef=object)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_TypeError -> SomeInstance(can_be_None=False, classdef=TypeError)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_TypeError -> SomeInstance(can_be_None=False, classdef=object)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_error -> SomeInstance(can_be_None=False, classdef=error)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_error -> SomeInstance(can_be_None=False, classdef=object)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_AssertionError -> SomeInstance(can_be_None=False, classdef=AssertionError)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_AssertionError -> SomeInstance(can_be_None=False, classdef=object)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_EnvironmentError -> SomeInstance(can_be_None=False, classdef=EnvironmentError)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_EnvironmentError -> SomeInstance(can_be_None=False, classdef=object)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_ValueError -> SomeInstance(can_be_None=False, classdef=ValueError)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_ValueError -> SomeInstance(can_be_None=False, classdef=object)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_IOError -> SomeInstance(can_be_None=False, classdef=IOError)
[annrpython] (pypy.rpython.normalizecalls:332) instantiate_IOError -> SomeInstance(can_be_None=False, classdef=object)
[annrpython] (pypy.rpython.rclass:754) ll_runtime_type_info__objectPtr -> SomePtr(ll_ptrtype=<* RuntimeTypeInfo (opaque)>)
[annrpython] (pypy.rpython.rclass:736) ll_issubclass__object_vtablePtr_object_vtablePtr -> SomeBool()
[annrpython] (pypy.rpython.rclass:733) ll_type__objectPtr -> SomePtr(ll_ptrtype=<* Struct object_vtable { parenttypeptr: * Struct object_vtable { ... }, subclassrange_min: Signed, subclassrange_max: Signed, rtti: * RuntimeTypeInfo (opaque), name: * Array of Char , instantiate: * Func ( ) -> * GcStruct object { typeptr: * Struct object_vtable { ... } } }>)
[annrpython] (pypy.rpython.exceptiondata:125) ll_pyexcclass2exc__PyObjectPtr -> SomePtr(const=<* struct object { typeptr=... }>, ll_ptrtype=<* GcStruct object { typeptr: * Struct object_vtable { parenttypeptr: * Struct object_vtable { ... }, subclassrange_min: Signed, subclassrange_max: Signed, rtti: * RuntimeTypeInfo (opaque), name: * Array of Char , instantiate: * Func ( ) -> * GcStruct object { ... } } }>)
[annrpython] (pypy.rpython.exceptiondata:125) ll_pyexcclass2exc__PyObjectPtr -> SomePtr(ll_ptrtype=<* GcStruct object { typeptr: * Struct object_vtable { parenttypeptr: * Struct object_vtable { ... }, subclassrange_min: Signed, subclassrange_max: Signed, rtti: * RuntimeTypeInfo (opaque), name: * Array of Char , instantiate: * Func ( ) -> * GcStruct object { ... } } }>)
[annrpython] (pypy.rpython.exceptiondata:51) ll_raise_OSError__Signed -> SomeImpossibleValue()
[annrpython] (pypy.rpython.rlist:530) ll_setitem_nonneg__dum_nocheckConst_listPtr_Signed_rpy_stringPtr -> SomePBC(const=None)
[annrpython] (pypy.translator.c.extfunc:93) _RPyListOfString_SetItem__listPtr_Signed_rpy_stringPtr -> SomePBC(const=None)
[annrpython] (pypy.translator.c.extfunc:78) RPyString_New__Signed -> SomePtr(ll_ptrtype=<* GcStruct rpy_string { hash: Signed, chars: Array of Char }>)
[annrpython] (pypy.rpython.rlist:780) ll_newlist__Ptr_GcStruct_listLlT_Signed -> SomePtr(ll_ptrtype=<* GcStruct list { length: Signed, items: * GcArray of * GcStruct rpy_string { hash: Signed, chars: Array of Char } }>)
[annrpython] (pypy.translator.c.extfunc:90) _RPyListOfString_New__Signed -> SomePtr(ll_ptrtype=<* GcStruct list { length: Signed, items: * GcArray of * GcStruct rpy_string { hash: Signed, chars: Array of Char } }>)
[annrpython] (pypy.rpython.module.ll_math:25) ll_frexp_result__Float_Signed -> SomePtr(ll_ptrtype=<* GcStruct tuple2 { item0: Float, item1: Signed }>)
[annrpython] (pypy.rpython.module.ll_math:51) ll_modf_result__Float_Float -> SomePtr(ll_ptrtype=<* GcStruct tuple2 { item0: Float, item1: Float }>)
[annrpython] (pypy.rpython.module.ll_os:84) ll_stat_result__Signed_Signed_Signed_Signed_Signed_Signed_Signed_Signed_Signed_Signed -> SomePtr(ll_ptrtype=<* GcStruct tuple10 { item0: Signed, item1: Signed, item2: Signed, item3: Signed, item4: Signed, item5: Signed, item6: Signed, item7: Signed, item8: Signed, item9: Signed }>)
_______________________________________________________________________________
==== tests finished: 3349 passed, 4 failed, 378 skipped in 1337.19 seconds ====
'spam'
'bar'
'spam'
'bar'
'spam'
'bar'
'spam'
'bar'
case: None func=None
case: False func=False
case: True func=True
case: <class 'exceptions.StopIteration'> func=StopIteration
case: Ellipsis func=Ellipsis
case: 42 func=42
case: 2147483647 func=sys_dot_maxint
case: -1.25 func=_minus_1_dot_25
case: -1.25 func=_minus_1_dot_25__2
case: (2+5j) func=2_plus_5j
case: (2+5j) func=2_plus_5j__2
case: 42 func=42L
case: -1234567890123456789012345678901234567890 func=_minus_1234567890123456789012345678901234567890L
case: hello func=hello_____not_interned
case: hello func=_Quote_hello_Quote_
case: () func=_brace__ecarb_
case: (1, 2) func=_brace_1_comma__2_ecarb_
case: [] func=_list__tsil_
case: [3, 4] func=_list_3_comma__4_tsil_
case: {} func=_dict__tcid_
case: {5: 6, 7: 8} func=_dict_5_colon__6_comma__7_colon__8_tcid_
case: <code object at 0x2c21a10> func=func_dot_func_code
case: <code object at 0x2c290b0> func=scopefunc_dot_func_code
case: hello func=u_quote_hello_quote_
case: hello func=buffer_brace_hello_ecarb_
case: u n i c o d e , t o o func=buffer_brace_u_quote_unicode_comma__too_quote__ecarb_
case: set([]) func=set_brace__ecarb_
case: set([1, 2]) func=set_brace__list_1_comma__2_tsil__ecarb_
case: frozenset([]) func=frozenset_brace__ecarb_
case: frozenset([3, 4]) func=frozenset_brace__list_3_comma__4_tsil__ecarb_
*** timed out ***
import workx
import workx
Pystone(1.1) time for 25 passes = 0.930125
This machine benchmarks at 26.8781 pystones/second
More information about the pypy-dev
mailing list