-
Notifications
You must be signed in to change notification settings - Fork 36
Closed
Description
When trying to run my project with Django 2.1a1, I get the following error
envdir envs/dev/ pytest --cov=mygpo/ --cov-branch
Traceback (most recent call last):
File "/home/stefan/mygpo/venv/bin/pytest", line 11, in <module>
sys.exit(main())
File "/home/stefan/mygpo/venv/lib/python3.5/site-packages/_pytest/config.py", line 49, in main
config = _prepareconfig(args, plugins)
File "/home/stefan/mygpo/venv/lib/python3.5/site-packages/_pytest/config.py", line 168, in _prepareconfig
pluginmanager=pluginmanager, args=args)
File "/home/stefan/mygpo/venv/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py", line 745, in __call__
return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
File "/home/stefan/mygpo/venv/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py", line 339, in _hookexec
return self._inner_hookexec(hook, methods, kwargs)
File "/home/stefan/mygpo/venv/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py", line 334, in <lambda>
_MultiCall(methods, kwargs, hook.spec_opts).execute()
File "/home/stefan/mygpo/venv/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py", line 613, in execute
return _wrapped_call(hook_impl.function(*args), self.execute)
File "/home/stefan/mygpo/venv/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py", line 250, in _wrapped_call
wrap_controller.send(call_outcome)
File "/home/stefan/mygpo/venv/lib/python3.5/site-packages/_pytest/helpconfig.py", line 68, in pytest_cmdline_parse
config = outcome.get_result()
File "/home/stefan/mygpo/venv/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py", line 279, in get_result
raise ex[1].with_traceback(ex[2])
File "/home/stefan/mygpo/venv/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py", line 265, in __init__
self.result = func()
File "/home/stefan/mygpo/venv/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py", line 614, in execute
res = hook_impl.function(*args)
File "/home/stefan/mygpo/venv/lib/python3.5/site-packages/_pytest/config.py", line 957, in pytest_cmdline_parse
self.parse(args)
File "/home/stefan/mygpo/venv/lib/python3.5/site-packages/_pytest/config.py", line 1121, in parse
self._preparse(args, addopts=addopts)
File "/home/stefan/mygpo/venv/lib/python3.5/site-packages/_pytest/config.py", line 1092, in _preparse
args=args, parser=self._parser)
File "/home/stefan/mygpo/venv/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py", line 745, in __call__
return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
File "/home/stefan/mygpo/venv/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py", line 339, in _hookexec
return self._inner_hookexec(hook, methods, kwargs)
File "/home/stefan/mygpo/venv/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py", line 334, in <lambda>
_MultiCall(methods, kwargs, hook.spec_opts).execute()
File "/home/stefan/mygpo/venv/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py", line 613, in execute
return _wrapped_call(hook_impl.function(*args), self.execute)
File "/home/stefan/mygpo/venv/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py", line 254, in _wrapped_call
return call_outcome.get_result()
File "/home/stefan/mygpo/venv/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py", line 279, in get_result
raise ex[1].with_traceback(ex[2])
File "/home/stefan/mygpo/venv/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py", line 265, in __init__
self.result = func()
File "/home/stefan/mygpo/venv/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py", line 614, in execute
res = hook_impl.function(*args)
File "/home/stefan/mygpo/venv/lib/python3.5/site-packages/pytest_cov/plugin.py", line 97, in pytest_load_initial_conftests
plugin = CovPlugin(early_config.known_args_namespace, early_config.pluginmanager)
File "/home/stefan/mygpo/venv/lib/python3.5/site-packages/pytest_cov/plugin.py", line 152, in __init__
self.start(engine.Central)
File "/home/stefan/mygpo/venv/lib/python3.5/site-packages/pytest_cov/plugin.py", line 174, in start
self.cov_controller.start()
File "/home/stefan/mygpo/venv/lib/python3.5/site-packages/pytest_cov/engine.py", line 146, in start
self.cov.erase()
File "/home/stefan/mygpo/venv/lib/python3.5/site-packages/coverage/control.py", line 726, in erase
self._init()
File "/home/stefan/mygpo/venv/lib/python3.5/site-packages/coverage/control.py", line 226, in _init
self.plugins = Plugins.load_plugins(self.config.plugins, self.config, self.debug)
File "/home/stefan/mygpo/venv/lib/python3.5/site-packages/coverage/plugin_support.py", line 40, in load_plugins
__import__(module)
File "/home/stefan/mygpo/venv/lib/python3.5/site-packages/django_coverage_plugin/__init__.py", line 6, in <module>
from .plugin import DjangoTemplatePlugin
File "/home/stefan/mygpo/venv/lib/python3.5/site-packages/django_coverage_plugin/plugin.py", line 16, in <module>
from django.template.base import (
ImportError: cannot import name 'TOKEN_BLOCK'
I did not find anything in the (under development) release notes. Is this something that should be addressed in django_coverage_plugin, or should I report it to django instead?
jperelli
Metadata
Metadata
Assignees
Labels
No labels