Skip to content

3.0.0 sdist is missing tests/__init__.py #346

@mgorny

Description

@mgorny

When attempting to run the test suite from 3.0.0 sdist, I'm getting errors such as the following:

______________________________________________ ERROR collecting tests/test_commonmark.py ______________________________________________
ImportError while importing test module '/tmp/mistune-3.0.0/tests/test_commonmark.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/__init__.py:90: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_commonmark.py:2: in <module>
    from tests import BaseTestCase, normalize_html
E   ImportError: cannot import name 'BaseTestCase' from 'tests' (unknown location)

It seems that tests/__init__.py file is missing from the sdist for some reason.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions