mgedmin / zodbbrowser

ZODB browser
http://launchpad.net/zodbbrowser
Other
19 stars 6 forks source link

Declare Python 3 support #24

Closed mgedmin closed 7 years ago

mgedmin commented 7 years ago

Fixes #20.

coveralls commented 7 years ago

Coverage Status

Coverage increased (+9.3%) to 94.266% when pulling f9e8dbfe3f291e3ace86681cc05ad880b6d4aa7f on py3 into d9eb09b77ee72213b75a5001575a6085951f480d on master.

mgedmin commented 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__
mgedmin commented 7 years ago

Filed https://bugs.launchpad.net/lxml/+bug/1732505.