[pypy-issue] [issue1476] apparent regression in import in py2.0 b2
Ian Delaney
tracker at bugs.pypy.org
Sun May 5 16:49:01 CEST 2013
New submission from Ian Delaney <della5 at iinet.com.au>:
on installing the pypy2.0 beta2, the troublesome test.py pulls a peculiar fail.
lxml-cffi-3.0.2 $ PYTHONPATH=src/ pypy-c2.0 test.py
Traceback (most recent call last):
File "app_main.py", line 52, in run_toplevel
File "test.py", line 607, in <module>
exitcode = main(sys.argv)
File "test.py", line 570, in main
test_cases = get_test_cases(test_files, cfg, tracer=tracer)
File "test.py", line 267, in get_test_cases
module = import_module(file, cfg, tracer=tracer)
File "test.py", line 210, in import_module
mod = __import__(modname)
File
"/mnt/gen2/TmpDir/portage/dev-python/lxml-cffi-3.0.2/work/lxml-cffi-3.0.2/src/lxml/html/__init__.py",
line 42, in <module>
from lxml import etree
File
"/mnt/gen2/TmpDir/portage/dev-python/lxml-cffi-3.0.2/work/lxml-cffi-3.0.2/src/lxml/etree.py",
line 2798, in <module>
from .xpath import XPath, ETXPath, XPathElementEvaluator, XPathDocumentEvaluator
File
"/mnt/gen2/TmpDir/portage/dev-python/lxml-cffi-3.0.2/work/lxml-cffi-3.0.2/src/lxml/xpath.py",
line 15, in <module>
from .xslt import LIBXSLT_VERSION
File
"/mnt/gen2/TmpDir/portage/dev-python/lxml-cffi-3.0.2/work/lxml-cffi-3.0.2/src/lxml/xslt.py",
line 165, in <module>
XSLT_DOC_DEFAULT_LOADER = xslt.xsltDocDefaultLoader
AttributeError: 'module' object has no attribute 'xsltDocDefaultLoader'
work/lxml-cffi-3.0.2 $ find . -name xslt.py
./src/lxml/xslt.py
./src/lxml/includes/xslt.py
work/lxml-cffi-3.0.2 $ PYTHONPATH=src/ python2.7 test.py
Comparing with ElementTree 1.3.0
TESTED VERSION: 3.0.2
Python: sys.version_info(major=2, minor=7, micro=3,
releaselevel='final', serial=0)
lxml.etree: (3, 0, 2, 0)
libxml used: (2, 9, 0)
libxml compiled: (2, 9, 0)
libxslt used: (1, 1, 28)
libxslt compiled: (1, 1, 28)
FAIL: txt (element_classes)
Traceback (most recent call last):
File "/usr/lib64/python2.7/unittest/case.py", line 327, in run
testMethod()
File "/usr/lib64/python2.7/doctest.py", line 2201, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for element_classes.txt
File
"/mnt/gen2/TmpDir/portage/dev-python/lxml-cffi-3.0.2/work/lxml-cffi-3.0.2/doc/element_classes.txt",
line 0, in txt
----------------------------------------------------------------------
File
"/mnt/gen2/TmpDir/portage/dev-python/lxml-cffi-3.0.2/work/lxml-cffi-3.0.2/doc/element_classes.txt",
line 304, in element_classes.txt
Failed example:
a.honking # id does not match !
Expected:
Traceback (most recent call last):
AttributeError: '_Element' object has no attribute 'honking'
Got:
Traceback (most recent call last):
File "/usr/lib64/python2.7/doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "<doctest element_classes.txt[44]>", line 1, in <module>
a.honking # id does not match !
AttributeError: 'lxml.etree._Element' object has no attribute 'honking'
py2.7 doesn't have problem with it, and I'm sure with pypy2.0 beta 1 installed
it had no issue with import paths instead failing on the 3 vs 4 args issue in a
data structure 'struct.
./src/lxml/xslt.py imports from with '.includes import xslt'
but it doesn't.
----------
assignedto: amaury
messages: 5669
nosy: amaury, idella5, pypy-issue
priority: performance bug
status: chatting
title: apparent regression in import in py2.0 b2
________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1476>
________________________________________
More information about the pypy-issue
mailing list