gawel / pyquery

A jquery-like library for python
http://pyquery.rtfd.org/
Other
2.3k stars 182 forks source link

status of tests in -1.2.8; failures=7; py3.3 #61

Closed idella closed 10 years ago

idella commented 10 years ago

EDITED; It appears the first run yielded errors from the absence of the new dep. py3.3 yileds error.

from /path/to/rdflib-4.1.1/ $

after building with py3.3, system py3.3 set; (System python is Python 3.3.5)

/path/to/rdflib-4.1.1/build/src $ PYTHON_TARGETS=. ./run_tests.py

yields a very verbose output so I have snipped it;

Ran 2313 tests in 76.152s

FAILED (SKIP=78, errors=7)

ERROR: test.test_dawg.test_dawg(RDFTest(uri=rdflib.term.URIRef('http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/manifest#term-1'), name='Basic - Term 1', comment=None, data='file:///mnt/gen2/TmpDir/portage/dev-python/rdflib-4.1.1/work/rdflib-4.1.1-python3_3/build/src/test/DAWG/data-r2/basic/data-4.ttl', graphdata=[], action='file:///mnt/gen2/TmpDir/portage/dev-python/rdflib-4.1.1/work/rdflib-4.1.1-python3_3/build/src/test/DAWG/data-r2/basic/term-1.rq', result=rdflib.term.URIRef('file:///mnt/gen2/TmpDir/portage/dev-python/rdflib-4.1.1/work/rdflib-4.1.1-python3_3/build/src/test/DAWG/data-r2/basic/term-1.srx'), syntax=True),)
----------------------------------------------------------------------

ERROR: test.test_dawg.test_dawg(RDFTest(uri=rdflib.term.URIRef('http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/manifest#term-2'), name='Basic - Term 2', comment=None, data='file:///mnt/gen2/TmpDir/portage/dev-python/rdflib-4.1.1/work/rdflib-4.1.1-python3_3/build/src/test/DAWG/data-r2/basic/data-4.ttl', graphdata=[], action='file:///mnt/gen2/TmpDir/portage/dev-python/rdflib-4.1.1/work/rdflib-4.1.1-python3_3/build/src/test/DAWG/data-r2/basic/term-2.rq', result=rdflib.term.URIRef('file:///mnt/gen2/TmpDir/portage/dev-python/rdflib-4.1.1/work/rdflib-4.1.1-python3_3/build/src/test/DAWG/data-r2/basic/term-2.srx'), syntax=True),)
----------------------------------------------------------------------

ERROR: test.test_dawg.test_dawg(RDFTest(uri=rdflib.term.URIRef('http://www.w3.org/2001/sw/DataAccess/tests/data-r2/boolean-effective-value/manifest#dawg-boolean-literal'), name="Test literal 'true'", comment=None, data='file:///mnt/gen2/TmpDir/portage/dev-python/rdflib-4.1.1/work/rdflib-4.1.1-python3_3/build/src/test/DAWG/data-r2/boolean-effective-value/data-1.ttl', graphdata=[], action='file:///mnt/gen2/TmpDir/portage/dev-python/rdflib-4.1.1/work/rdflib-4.1.1-python3_3/build/src/test/DAWG/data-r2/boolean-effective-value/query-boolean-literal.rq', result=rdflib.term.URIRef('file:///mnt/gen2/TmpDir/portage/dev-python/rdflib-4.1.1/work/rdflib-4.1.1-python3_3/build/src/test/DAWG/data-r2/boolean-effective-value/result-boolean-literal.ttl'), syntax=True),)
----------------------------------------------------------------------

ERROR: test.test_dawg.test_dawg(RDFTest(uri=rdflib.term.URIRef('http://www.w3.org/2009/sparql/docs/tests/data-sparql11/functions/manifest#if01'), name='IF()', comment=None, data='file:///mnt/gen2/TmpDir/portage/dev-python/rdflib-4.1.1/work/rdflib-4.1.1-python3_3/build/src/test/DAWG/data-sparql11/functions/data2.ttl', graphdata=[], action='file:///mnt/gen2/TmpDir/portage/dev-python/rdflib-4.1.1/work/rdflib-4.1.1-python3_3/build/src/test/DAWG/data-sparql11/functions/if01.rq', result=rdflib.term.URIRef('file:///mnt/gen2/TmpDir/portage/dev-python/rdflib-4.1.1/work/rdflib-4.1.1-python3_3/build/src/test/DAWG/data-sparql11/functions/if01.srx'), syntax=True),)
--------------------------------------------------------------------

ERROR: test.test_dawg.test_dawg(RDFTest(uri=rdflib.term.URIRef('http://www.w3.org/2009/sparql/docs/tests/data-sparql11/functions/manifest#if02'), name='IF() error propogation', comment=None, data='file:///mnt/gen2/TmpDir/portage/dev-python/rdflib-4.1.1/work/rdflib-4.1.1-python3_3/build/src/test/DAWG/data-sparql11/functions/data2.ttl', graphdata=[], action='file:///mnt/gen2/TmpDir/portage/dev-python/rdflib-4.1.1/work/rdflib-4.1.1-python3_3/build/src/test/DAWG/data-sparql11/functions/if02.rq', result=rdflib.term.URIRef('file:///mnt/gen2/TmpDir/portage/dev-python/rdflib-4.1.1/work/rdflib-4.1.1-python3_3/build/src/test/DAWG/data-sparql11/functions/if02.srx'), syntax=True),)
----------------------------------------------------------------------

ERROR: test.test_dawg.test_dawg(RDFTest(uri=rdflib.term.URIRef('http://www.w3.org/2009/sparql/docs/tests/data-sparql11/syntax-query/manifest#test_26'), name='syntax-not-exists-03.rq', comment=None, data=None, graphdata=None, action='file:///mnt/gen2/TmpDir/portage/dev-python/rdflib-4.1.1/work/rdflib-4.1.1-python3_3/build/src/test/DAWG/data-sparql11/syntax-query/syntax-not-exists-03.rq', result=None, syntax=True),)
----------------------------------------------------------------------

each yield

  File "/usr/lib64/python3.3/site-packages/pyparsing.py", line 632, in wrapper
    return func(*args[limit:])
TypeError: <lambda>() takes 0 positional arguments but 3 were given

plus

======================================================================
ERROR: Failure: TypeError (__class__ assignment: 'UnboundSelf' object layout differs from 'TestStore')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python3.3/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/usr/lib64/python3.3/site-packages/nose/loader.py", line 516, in makeTest
    return self._makeTest(obj, parent)
  File "/usr/lib64/python3.3/site-packages/nose/loader.py", line 565, in _makeTest
    return self.loadTestsFromTestClass(obj)
  File "/usr/lib64/python3.3/site-packages/nose/loader.py", line 509, in loadTestsFromTestClass
    for case in filter(wanted, dir(cls))]
  File "/usr/lib64/python3.3/site-packages/nose/loader.py", line 508, in <listcomp>
    cases = [self.makeTest(getattr(cls, case), cls)
  File "/usr/lib64/python3.3/site-packages/nose/loader.py", line 504, in wanted
    item = unbound_method(cls, item)
  File "/usr/lib64/python3.3/site-packages/nose/pyversion.py", line 131, in unbound_method
    return UnboundMethod(cls, func)
  File "/usr/lib64/python3.3/site-packages/nose/pyversion.py", line 92, in __init__
    self.__self__.__class__ = cls
TypeError: __class__ assignment: 'UnboundSelf' object layout differs from 'TestStore'

----------------------------------------------------------------------
Ran 2313 tests in 76.152s

FAILED (SKIP=78, errors=7)

The whole log is 481 kb., very verbose. Can you replicate?

idella commented 10 years ago

doing a sed -e s':testdawg:&:' -i test/test_dawg.py and disabling the test_dawg knocks out the first 6 errors demoing that it's the one error repeated 6 times by the one def test_dawg. The final one though cites only the installed nose under py3. This appears to be an issue with nose itself under py3, or under minor sub-versions of py3.

gawel commented 10 years ago

I don't really understand this issue. You should use tox. When you using it everything is fine.

idella commented 10 years ago

gawel, my red faced apology here, I was working the suite of rdflib-4.1.1 as well and have got them totally mixed up. I had a correct report of the runs in the first place, returned to this page and thought it was the bug I had filed for the fails of rdflib and totally substituted the content.

The suite still fails under to run from the source. Closing this and starting afresh.