Skip to content

ImportWarning: can't resolve package from __spec__ or __package__ #4423

@Callek

Description

@Callek

Related to #3061

I'm hitting this in @mozilla-releng/addonscript with pytest 4.0 on travis (locally reproduced back to pytest 3.7.3) --

Travis Log: https://travis-ci.org/mozilla-releng/addonscript/builds/457101239

Local pytest extensions

  • pytest-asyncio
  • pytest-cov
  • pytest-mock

I'm also getting no traceback at all..

====================================================== warnings summary ======================================================
.tox/py36/lib/python3.6/importlib/_bootstrap.py:219
  /home/callek/mozilla/git/addonscript/.tox/py36/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)

-- Docs: https://docs.pytest.org/en/latest/warnings.html
=========================================== 64 passed, 1 warnings in 0.61 seconds ============================================
py36 runtests: commands[3] | coverage html
py36 runtests: commands[4] | flake8

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: collectionrelated to the collection phasetopic: rewriterelated to the assertion rewrite mechanismtype: bugproblem that needs to be addressed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions