New issue 537: DeprecationWarning: The compiler package is deprecated and 
removed in Python 3.x.   from compiler import parse, ast, pycodege
https://bitbucket.org/hpk42/pytest/issue/537/deprecationwarning-the-compiler-package-is

Thomas Güttler:

We use pytest==2.5.2

and get this warning:

*DeprecationWarning: The compiler package is deprecated and removed in Python 
3.x.   from compiler import parse, ast, pycodege*

Here is the stacktrace of the import statement:

```
#!python

INTERNALERROR> Traceback (most recent call last):
INTERNALERROR>   File 
"/home/modwork_vums_dtg/lib/python2.7/site-packages/_pytest/main.py", line 77, 
in wrap_session
INTERNALERROR>     config.do_configure()
INTERNALERROR>   File 
"/home/modwork_vums_dtg/lib/python2.7/site-packages/_pytest/config.py", line 
608, in do_configure
INTERNALERROR>     self.hook.pytest_configure(config=self)
INTERNALERROR>   File 
"/home/modwork_vums_dtg/lib/python2.7/site-packages/_pytest/core.py", line 377, 
in __call__
INTERNALERROR>     return self._docall(methods, kwargs)
INTERNALERROR>   File 
"/home/modwork_vums_dtg/lib/python2.7/site-packages/_pytest/core.py", line 388, 
in _docall
INTERNALERROR>     res = mc.execute()
INTERNALERROR>   File 
"/home/modwork_vums_dtg/lib/python2.7/site-packages/_pytest/core.py", line 289, 
in execute
INTERNALERROR>     res = method(**kwargs)
INTERNALERROR>   File 
"/home/modwork_vums_dtg/lib/python2.7/site-packages/_pytest/assertion/__init__.py",
 line 47, in pytest_configure
INTERNALERROR>     _load_modules(mode)
INTERNALERROR>   File 
"/home/modwork_vums_dtg/lib/python2.7/site-packages/_pytest/assertion/__init__.py",
 line 107, in _load_modules
INTERNALERROR>     from _pytest.assertion import reinterpret  # noqa
INTERNALERROR>   File 
"/home/modwork_vums_dtg/lib/python2.7/site-packages/_pytest/assertion/reinterpret.py",
 line 50, in <module>
INTERNALERROR>     from _pytest.assertion.oldinterpret import interpret as 
reinterpret_old
INTERNALERROR>   File 
"/home/modwork_vums_dtg/lib/python2.7/site-packages/_pytest/assertion/oldinterpret.py",
 line 1, in <module>

```
Do you know this issue? What can I do to get this warning fixed?


_______________________________________________
pytest-commit mailing list
pytest-commit@python.org
https://mail.python.org/mailman/listinfo/pytest-commit

Reply via email to