Hi there,
I follow the pypy development, and tend to sync to head every day or so. I
recently noticed some test failures that don't seem to be going away, and
was wondering whether there is something wrong with my configuration or if
there was something wrong with the way I was running the tests. I addition
I noticed that some tests are skipped due to a floating point error. Is
this expected too?
I run the tests with python 2.4 on cygwin.
Cheers,
Ben
============================= 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] ...
documentation\test_redirections.py[27] ...........................
documentation\website\contact.txt[2] s.
documentation\website\install.txt[3] s..
documentation\website\news.txt[4] s...
documentation\_ref.txt[2] s.
documentation\architecture.txt[9] s........
documentation\coding-guide.txt[6] s.....
documentation\contributor.txt[2] s.
documentation\extradoc.txt[2] s.
documentation\getting_started.txt[10] s.........
documentation\index.txt[27] s..........................
documentation\misc.txt[2] s.
documentation\objspace.txt[7] s......
documentation\release-0.6.txt[2] s.
documentation\svn-help.txt[3] s..
documentation\theory.txt[6] s.....
documentation\translation.txt[7] s......
interpreter\test\test_appinterp.py[15] ...............
interpreter\test\test_class.py[14] ..............
interpreter\test\test_code.py[2] ..
interpreter\test\test_compiler.py[6] ......
interpreter\test\test_descrtypecheck.py[2] ..
interpreter\test\test_eval.py[2] ..
interpreter\test\test_exceptcomp.py[11] ...........
interpreter\test\test_exec.py[11] ...........
interpreter\test\test_function.py[28] ............................
interpreter\test\test_gateway.py[12] ............
interpreter\test\test_generator.py[7] .......
interpreter\test\test_interpreter.py[16] ................
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[6] ......
interpreter\test\test_raise.py[13] .............
interpreter\test\test_special.py[2] ..
interpreter\test\test_typedef.py[2] ..
lib\test2\test_codeccallbacks.pylib\test2\test_exception_extra.py[1] .
lib\test2\test_exceptions_extra.py[1] .
lib\test2\test_file_extra.py[8] ........
lib\test2\test_imp_extra.py[2] ..
lib\test2\test_md5_extra.py[5] .....
lib\test2\test_sha_extra.py[2] ..
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_builtin.py[43]
...........................................
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[20] ....................
module\__builtin__\test\test_import.py[21] ....................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_vars.py[3] ...
module\__builtin__\test\test_zip.py[8] ........
module\parser\test\test_parser.py[1] .
module\parser\test\test_simple.py[0]
module\recparser\test\test_pytokenizer.py[5] .....
module\recparser\test\test_samples.py[21] ..F..................
module\sys\test\test_sysmodule.py[30] ..............................
module\unicodedata\test\test_unicodedata.py[2] .F
objspace\flow\test\test_framestate.py[10] ..........
objspace\flow\test\test_model.py[3] ...
objspace\flow\test\test_objspace.py[35]
...................................
objspace\std\test\test_boolobject.py[6] ......
objspace\std\test\test_dictobject.py[29] .............................
objspace\std\test\test_dictproxy.py[2] ..
objspace\std\test\test_fake.py[1] .
objspace\std\test\test_floatobject.py[12] ............
objspace\std\test\test_instmethobject.py[5] .....
objspace\std\test\test_intobject.py[40]
........................................
objspace\std\test\test_iterobject.py[7] .......
objspace\std\test\test_listobject.py[32] ................................
objspace\std\test\test_listsort.py[2] ..
objspace\std\test\test_longobject.py[19] ...................
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[7] .......
objspace\std\test\test_stdobjspace.py[4] ....
objspace\std\test\test_stringformat.py[25] .........................
objspace\std\test\test_stringobject.py[50]
..................................................
objspace\std\test\test_strutil.py[6] ......
objspace\std\test\test_tupleobject.py[16] ................
objspace\std\test\test_typeobject.py[25] .........................
objspace\std\test\test_unicodestring.py[11] ...........
objspace\std\test\test_userobject.py[15] ...............
objspace\test\test_descriptor.py[4] ....
objspace\test\test_descroperation.py[7] .......
objspace\test\test_thunkobjspace.py[5] .....
objspace\test\test_traceobjspace.py[5] .....
rpython\test\test_llann.py[8] ........
rpython\test\test_lltype.py[14] ..............
rpython\test\test_rarithmetic.py[33] .................................
rpython\test\test_rbool.py[4] ....
rpython\test\test_rclass.py[1] .
rpython\test\test_rfloat.py[4] ....
rpython\test\test_rint.py[4] ....
rpython\test\test_rlist.py[5] .....
rpython\test\test_rstr.py[3] ...
rpython\test\test_rtyper.py[4] ....
test_all.py[0]
tool\pytest\test\test_overview.py[2] .F
tool\test\test_cache.py[1] .
tool\test\test_conftest1.py[4] ....
tool\test\test_pytestsupport.py[5] .....
tool\test\test_template.py[1] .
translator\c\test\test_database.py[15] ...............
translator\c\test\test_genc.py[4] ....
translator\genc\test\test_annotated.py[16] ................
translator\genc\test\test_lltyped.py[2] ..
translator\genc\test\test_notype.py[33] .................................
translator\genc\test\test_operation.py[1] .
translator\genc\test\test_typed.py[22] .................ss...
translator\llvm\test\test_class.py[12] ssssssssssss
translator\llvm\test\test_genllvm.py[12] ssssssssssss
translator\llvm\test\test_lazyattribute.py[4] ....
translator\llvm\test\test_seq.py[19] sssssssssssssssssss
translator\llvm\test\test_snippet.py[16] ssssssssssssssss
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[99]
...................................................................................................
translator\test\test_annsimplifyrpython.py[99]
...................................................................................................
translator\test\test_cltrans.py[14] ssssssssssssss
translator\test\test_geninterp.py[25] .........................
translator\test\test_rpystone.py[1] .
translator\test\test_translator.py[1] .
__________________________ reasons for skipped tests
__________________________
Skipped in c:\Documents and
Settings\YoungB\dist\pypy\lib\test2\test_codeccallbacks.py:2
reason: Skipped: this test module doesn't belong here
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\module\__builtin__\test\test_import.py:158
reason: Skipped: unresolved issues with win32 shell quoting rules
Skipped in c:\Documents and
Settings\YoungB\dist\pypy\translator\llvm\test\test_seq.py:17
Skipped in c:\Documents and
Settings\YoungB\dist\pypy\translator\llvm\test\test_genllvm.py:102
Skipped in c:\Documents and
Settings\YoungB\dist\pypy\translator\llvm\test\test_genllvm.py:165
Skipped in c:\Documents and
Settings\YoungB\dist\pypy\translator\llvm\test\test_seq.py:111
Skipped in c:\Documents and
Settings\YoungB\dist\pypy\translator\llvm\test\test_snippet.py:17
Skipped in c:\Documents and
Settings\YoungB\dist\pypy\translator\llvm\test\test_class.py:17
Skipped in c:\Documents and
Settings\YoungB\dist\pypy\translator\llvm\test\test_genllvm.py:128
Skipped in c:\Documents and
Settings\YoungB\dist\pypy\translator\llvm\test\test_genllvm.py:117
reason: Skipped: nothing works for now
Skipped in c:\Documents and
Settings\YoungB\dist\pypy\translator\test\test_cltrans.py:43
reason: Skipped: Common Lisp neither configured nor detected.
Skipped in c:\Documents and
Settings\YoungB\dist\pypy\translator\llvm\test\test_genllvm.py:55
Skipped in c:\Documents and
Settings\YoungB\dist\pypy\translator\llvm\test\test_genllvm.py:32
reason: Skipped: llvm-as not found on path
Skipped in c:\Documents and
Settings\YoungB\dist\pypy\translator\genc\test\test_typed.py:40
Skipped in c:\Documents and
Settings\YoungB\dist\pypy\translator\genc\test\test_typed.py:34
reason: Skipped: right now aborting python with Floating Point Error!
Skipped in c:\Documents and
Settings\YoungB\dist\py\documentation\conftest.py:17
reason: Skipped: docutils not importable
_______________________________________________________________________________
def check_parse(filepath):
> pypy_tuples = pypy_parse(filepath)
[c:\Documents and
Settings\YoungB\dist\pypy\module\recparser\test\test_samples.py:56]
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _
def pypy_parse(filename):
"""parse <filename> using PyPy's parser module and return nested
tuples
"""
pyf = file(filename)
> builder = parse_file_input(pyf, pythonutil.python_grammar())
[c:\Documents and
Settings\YoungB\dist\pypy\module\recparser\pythonparse.py:39]
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _
def parse_file_input(pyf, gram):
"""Parse a python file"""
> return parse_python_source( pyf.read(), gram, "file_input" )
[c:\Documents and
Settings\YoungB\dist\pypy\module\recparser\pythonparse.py:25]
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _
def parse_python_source( textsrc, gram, goal ):
"""Parse a python source according to goal"""
target = gram.rules[goal]
src = PythonSource(textsrc)
builder = BaseGrammarBuilder(debug=False, rules=gram.rules)
result = target.match(src, builder)
# <HACK> XXX find a clean way to process encoding declarations
if src.encoding:
builder._source_encoding = src.encoding
# </HACK>
if not result:
E raise SyntaxError("at %s" % src.debug() )
> SyntaxError: at line 3 : f(a,)
[c:\Documents and
Settings\YoungB\dist\pypy\module\recparser\pythonparse.py:20]
[testcode : c:\Documents and
Settings\YoungB\dist\pypy\module\recparser\test\test_samples.py:55]
[modulepath: test_samples[8]]
_______________________________________________________________________________
def test_cjk(self):
import unicodedata
for first, last in ((0x3400, 0x4DB5),
(0x4E00, 0x9FA5), # 9FBB in Unicode 4.1
(0x20000, 0x2A6D6)):
# Test at and inside the boundary
for i in (first, first + 1, last - 1, last):
charname = 'CJK UNIFIED IDEOGRAPH-%X'%i
E assert unicodedata.name(unichr(i)) == charname
> (application-level) ValueError: character code not in
range(0x110000)
[c:\Documents and Settings\YoungB\dist\pypy\None<c:\Documents and
Settings\YoungB\dist\pypy\interpreter\gateway.py:573>:9]
[testcode : c:\Documents and
Settings\YoungB\dist\pypy\module\unicodedata\test\test_unicodedata.py:43]
[modulepath: AppTestUnicodeData().test_cjk]
_______________________________________________________________________________
def test_getlatest_datetime(self):
> result = self.rc.getlatest('test_datetime', ok=1)
[c:\Documents and
Settings\YoungB\dist\pypy\tool\pytest\test\test_overview.py:22]
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _
def getlatest(self, name, timeout=0, error=0, ok=0):
l = []
E resultlist = self.name2result[name]
> KeyError: 'test_datetime'
[c:\Documents and Settings\YoungB\dist\pypy\tool\pytest\overview.py:34]
[testcode : c:\Documents and
Settings\YoungB\dist\pypy\tool\pytest\test\test_overview.py:21]
[modulepath: TestResultCache().test_getlatest_datetime]
_______________________________________________________________________________
===== tests finished: 1377 passed, 3 failed, 94 skipped in 171.23 seconds
=====