Originally reported by: Barry Warsaw (Bitbucket: warsaw, GitHub: warsaw)
six hg head is not compatible with Python 3.5 (We're building against Python 3.5 in Ubuntu). ast module API breakage.
GLOB sdist-make: /home/barry/projects/debian/six/upstream/setup.py
py35 create: /home/barry/projects/debian/six/upstream/.tox/py35
py35 installdeps: pytest
py35 inst: /home/barry/projects/debian/six/upstream/.tox/dist/six-1.9.0.zip
py35 installed: py==1.4.30,pytest==2.7.2,six==1.9.0
py35 runtests: PYTHONHASHSEED='3069104211'
py35 runtests: commands[0] | py.test -rfsxX
============================= test session starts ==============================
platform linux -- Python 3.5.0 -- py-1.4.30 -- pytest-2.7.2
rootdir: /home/barry/projects/debian/six/upstream, inifile: setup.cfg
collected 0 items / 1 errors
==================================== ERRORS ====================================
_________________________ ERROR collecting test_six.py _________________________
.tox/py35/lib/python3.5/site-packages/py/_path/local.py:650: in pyimport
__import__(modname)
<frozen importlib._bootstrap>:969: in _find_and_load
???
<frozen importlib._bootstrap>:954: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:892: in _find_spec
???
<frozen importlib._bootstrap>:873: in _find_spec_legacy
???
.tox/py35/lib/python3.5/site-packages/_pytest/assertion/rewrite.py:137: in find_module
source_stat, co = _rewrite_test(state, fn_pypath)
.tox/py35/lib/python3.5/site-packages/_pytest/assertion/rewrite.py:278: in _rewrite_test
rewrite_asserts(tree)
.tox/py35/lib/python3.5/site-packages/_pytest/assertion/rewrite.py:336: in rewrite_asserts
AssertionRewriter().run(mod)
.tox/py35/lib/python3.5/site-packages/_pytest/assertion/rewrite.py:557: in run
new.extend(self.visit(child))
/usr/lib/python3.5/ast.py:245: in visit
return visitor(node)
.tox/py35/lib/python3.5/site-packages/_pytest/assertion/rewrite.py:665: in visit_Assert
top_condition, explanation = self.visit(assert_.test)
/usr/lib/python3.5/ast.py:245: in visit
return visitor(node)
.tox/py35/lib/python3.5/site-packages/_pytest/assertion/rewrite.py:796: in visit_Compare
left_res, left_expl = self.visit(comp.left)
/usr/lib/python3.5/ast.py:245: in visit
return visitor(node)
.tox/py35/lib/python3.5/site-packages/_pytest/assertion/rewrite.py:757: in visit_Call
new_func, func_expl = self.visit(call.func)
/usr/lib/python3.5/ast.py:245: in visit
return visitor(node)
.tox/py35/lib/python3.5/site-packages/_pytest/assertion/rewrite.py:757: in visit_Call
new_func, func_expl = self.visit(call.func)
/usr/lib/python3.5/ast.py:245: in visit
return visitor(node)
.tox/py35/lib/python3.5/site-packages/_pytest/assertion/rewrite.py:700: in visit_Name
locs = ast.Call(self.builtin("locals"), [], [], None, None)
E TypeError: Call constructor takes either 0 or 3 positional arguments
=========================== 1 error in 0.22 seconds ============================
ERROR: InvocationError: '/home/barry/projects/debian/six/upstream/.tox/py35/bin/py.test -rfsxX'
___________________________________ summary ___________________________________
ERROR: py35: commands failed
</frozen></frozen></frozen></frozen>
- Bitbucket: https://bitbucket.org/gutworth/six/issue/131
该提问来源于开源项目:benjaminp/six