Skip to content

Instantly share code, notes, and snippets.

@antonagestam
Created May 29, 2020 16:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antonagestam/54430b1c02081fabd6bbae1eb9046368 to your computer and use it in GitHub Desktop.
Save antonagestam/54430b1c02081fabd6bbae1eb9046368 to your computer and use it in GitHub Desktop.
pytest -k errors_for_invalid_action_signature
==================================================================== test session starts ====================================================================
platform darwin -- Python 3.8.2, pytest-5.4.2, py-1.8.1, pluggy-0.13.1 -- /Users/anton/.pyenv/versions/django-stubs/bin/python3
cachedir: .pytest_cache
rootdir: /Users/anton/projects/django-stubs, inifile: pytest.ini, testpaths: ./test-data
plugins: mypy-plugins-1.2.0
collected 170 items / 169 deselected / 1 selected
test-data/typecheck/contrib/admin/test_options.yml::errors_for_invalid_action_signature
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/Users/anton/.pyenv/versions/django-stubs/lib/python3.8/site-packages/_pytest/main.py", line 191, in wrap_session
INTERNALERROR> session.exitstatus = doit(config, session) or 0
INTERNALERROR> File "/Users/anton/.pyenv/versions/django-stubs/lib/python3.8/site-packages/_pytest/main.py", line 247, in _main
INTERNALERROR> config.hook.pytest_runtestloop(session=session)
INTERNALERROR> File "/Users/anton/.pyenv/versions/django-stubs/lib/python3.8/site-packages/pluggy/hooks.py", line 286, in __call__
INTERNALERROR> return self._hookexec(self, self.get_hookimpls(), kwargs)
INTERNALERROR> File "/Users/anton/.pyenv/versions/django-stubs/lib/python3.8/site-packages/pluggy/manager.py", line 93, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/Users/anton/.pyenv/versions/django-stubs/lib/python3.8/site-packages/pluggy/manager.py", line 84, in <lambda>
INTERNALERROR> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
INTERNALERROR> File "/Users/anton/.pyenv/versions/django-stubs/lib/python3.8/site-packages/pluggy/callers.py", line 208, in _multicall
INTERNALERROR> return outcome.get_result()
INTERNALERROR> File "/Users/anton/.pyenv/versions/django-stubs/lib/python3.8/site-packages/pluggy/callers.py", line 80, in get_result
INTERNALERROR> raise ex[1].with_traceback(ex[2])
INTERNALERROR> File "/Users/anton/.pyenv/versions/django-stubs/lib/python3.8/site-packages/pluggy/callers.py", line 187, in _multicall
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/Users/anton/.pyenv/versions/django-stubs/lib/python3.8/site-packages/_pytest/main.py", line 272, in pytest_runtestloop
INTERNALERROR> item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
INTERNALERROR> File "/Users/anton/.pyenv/versions/django-stubs/lib/python3.8/site-packages/pluggy/hooks.py", line 286, in __call__
INTERNALERROR> return self._hookexec(self, self.get_hookimpls(), kwargs)
INTERNALERROR> File "/Users/anton/.pyenv/versions/django-stubs/lib/python3.8/site-packages/pluggy/manager.py", line 93, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/Users/anton/.pyenv/versions/django-stubs/lib/python3.8/site-packages/pluggy/manager.py", line 84, in <lambda>
INTERNALERROR> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
INTERNALERROR> File "/Users/anton/.pyenv/versions/django-stubs/lib/python3.8/site-packages/pluggy/callers.py", line 208, in _multicall
INTERNALERROR> return outcome.get_result()
INTERNALERROR> File "/Users/anton/.pyenv/versions/django-stubs/lib/python3.8/site-packages/pluggy/callers.py", line 80, in get_result
INTERNALERROR> raise ex[1].with_traceback(ex[2])
INTERNALERROR> File "/Users/anton/.pyenv/versions/django-stubs/lib/python3.8/site-packages/pluggy/callers.py", line 187, in _multicall
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/Users/anton/.pyenv/versions/django-stubs/lib/python3.8/site-packages/_pytest/runner.py", line 85, in pytest_runtest_protocol
INTERNALERROR> runtestprotocol(item, nextitem=nextitem)
INTERNALERROR> File "/Users/anton/.pyenv/versions/django-stubs/lib/python3.8/site-packages/_pytest/runner.py", line 100, in runtestprotocol
INTERNALERROR> reports.append(call_and_report(item, "call", log))
INTERNALERROR> File "/Users/anton/.pyenv/versions/django-stubs/lib/python3.8/site-packages/_pytest/runner.py", line 188, in call_and_report
INTERNALERROR> report = hook.pytest_runtest_makereport(item=item, call=call)
INTERNALERROR> File "/Users/anton/.pyenv/versions/django-stubs/lib/python3.8/site-packages/pluggy/hooks.py", line 286, in __call__
INTERNALERROR> return self._hookexec(self, self.get_hookimpls(), kwargs)
INTERNALERROR> File "/Users/anton/.pyenv/versions/django-stubs/lib/python3.8/site-packages/pluggy/manager.py", line 93, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/Users/anton/.pyenv/versions/django-stubs/lib/python3.8/site-packages/pluggy/manager.py", line 84, in <lambda>
INTERNALERROR> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
INTERNALERROR> File "/Users/anton/.pyenv/versions/django-stubs/lib/python3.8/site-packages/pluggy/callers.py", line 203, in _multicall
INTERNALERROR> gen.send(outcome)
INTERNALERROR> File "/Users/anton/.pyenv/versions/django-stubs/lib/python3.8/site-packages/_pytest/skipping.py", line 129, in pytest_runtest_makereport
INTERNALERROR> rep = outcome.get_result()
INTERNALERROR> File "/Users/anton/.pyenv/versions/django-stubs/lib/python3.8/site-packages/pluggy/callers.py", line 80, in get_result
INTERNALERROR> raise ex[1].with_traceback(ex[2])
INTERNALERROR> File "/Users/anton/.pyenv/versions/django-stubs/lib/python3.8/site-packages/pluggy/callers.py", line 187, in _multicall
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/Users/anton/.pyenv/versions/django-stubs/lib/python3.8/site-packages/_pytest/runner.py", line 260, in pytest_runtest_makereport
INTERNALERROR> return TestReport.from_item_and_call(item, call)
INTERNALERROR> File "/Users/anton/.pyenv/versions/django-stubs/lib/python3.8/site-packages/_pytest/reports.py", line 294, in from_item_and_call
INTERNALERROR> longrepr = item.repr_failure(excinfo)
INTERNALERROR> File "/Users/anton/.pyenv/versions/django-stubs/lib/python3.8/site-packages/pytest_mypy/item.py", line 304, in repr_failure
INTERNALERROR> repr_tb_entry = TraceLastReprEntry(filelocrepr=repr_file_location,
INTERNALERROR> TypeError: __init__() got an unexpected keyword argument 'filelocrepr'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment