Closed mgedmin closed 7 years ago
There's one DeprecationWarning on Python 3.6 that I can't figure out:
/home/travis/virtualenv/python3.6.3/lib/python3.6/importlib/_bootstrap.py:219: ImportWarning: can't resolve package from __spec__ or __package__, falling back on __name__ and __path__
return f(*args, **kwds)
It shows up during import time, I think. Steps to reproduce:
PYTHONWARNINGS=default,error:can:ImportWarning .tox/py36/bin/zope-testrunner --test-path=src --tests-pattern='^f?tests$' -pvc
which gives me
Traceback (most recent call last):
File "/home/mg/src/zodbbrowser/.tox/py36/lib/python3.6/site-packages/zodbbrowser/ftests/test_standalone.py", line 13, in <module>
from lxml.html import fromstring, tostring
File "/home/mg/src/zodbbrowser/.tox/py36/lib/python3.6/site-packages/lxml/html/__init__.py", line 54, in <module>
from .. import etree
File "src/lxml/etree.pyx", line 93, in init lxml.etree
File "src/lxml/_elementpath.py", line 56, in init lxml._elementpath
ImportWarning: can't resolve package from __spec__ or __package__, falling back on __name__ and __path__
Fixes #20.