Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Three dflit_core tests fails #2

Open
mtelka opened this issue Oct 25, 2023 · 0 comments
Open

Three dflit_core tests fails #2

mtelka opened this issue Oct 25, 2023 · 0 comments

Comments

@mtelka
Copy link

mtelka commented Oct 25, 2023

I'm running tests for dflit_core 2.3.0.1 and three of them failed:

=================================== FAILURES ===================================
____________________________ test_prepare_metadata _____________________________

tmp_path = '/tmp/pytest-of-marcel/pytest-57/test_prepare_metadata0'

    def test_prepare_metadata(tmp_path):
        tmp_path = str(tmp_path)
        dist_info = build_thyself.prepare_metadata_for_build_wheel(tmp_path)
    
        assert dist_info.endswith('.dist-info')
>       assert dist_info.startswith('flit_core')
E       AssertionError: assert False
E        +  where False = <built-in method startswith of str object at 0x7fffac4ba6c0>('flit_core')
E        +    where <built-in method startswith of str object at 0x7fffac4ba6c0> = 'dflit_core-2.3.0.1.dist-info'.startswith

flit_core/tests/test_build_thyself.py:29: AssertionError
__________________________________ test_wheel __________________________________

tmp_path = '/tmp/pytest-of-marcel/pytest-57/test_wheel0', cwd_project = None

    def test_wheel(tmp_path, cwd_project):
        tmp_path = str(tmp_path)
        filename = build_thyself.build_wheel(tmp_path)
    
        assert filename.endswith('.whl')
>       assert filename.startswith('flit_core')
E       AssertionError: assert False
E        +  where False = <built-in method startswith of str object at 0x7fffac451210>('flit_core')
E        +    where <built-in method startswith of str object at 0x7fffac451210> = 'dflit_core-2.3.0.1-py2.py3-none-any.whl'.startswith

flit_core/tests/test_build_thyself.py:42: AssertionError
__________________________________ test_sdist __________________________________

tmp_path = '/tmp/pytest-of-marcel/pytest-57/test_sdist0', cwd_project = None

    def test_sdist(tmp_path, cwd_project):
        tmp_path = str(tmp_path)
        filename = build_thyself.build_sdist(tmp_path)
    
        assert filename.endswith('.tar.gz')
>       assert filename.startswith('flit_core')
E       AssertionError: assert False
E        +  where False = <built-in method startswith of str object at 0x7fffac53f530>('flit_core')
E        +    where <built-in method startswith of str object at 0x7fffac53f530> = 'dflit_core-2.3.0.1.tar.gz'.startswith

flit_core/tests/test_build_thyself.py:53: AssertionError
=========================== short test summary info ============================
FAILED flit_core/tests/test_build_thyself.py::test_prepare_metadata - Asserti...
FAILED flit_core/tests/test_build_thyself.py::test_wheel - AssertionError: as...
FAILED flit_core/tests/test_build_thyself.py::test_sdist - AssertionError: as...
========================= 3 failed, 42 passed in 0.57s =========================

I found that when I replace flit_core by dflit_core in asserts then all tests pass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant