Skip to content

Test failure on macOS #41

@miketheman

Description

@miketheman

As part of starting to see how to contribute, I checked out the code, installed the requirements, and ran the tests, which produced this test failure.

________________________________________________________________________ test_output _________________________________________________________________________

tmpdir = local('/private/var/folders/rj/671kk3fx4cj_q5qdpp4kcmmm0000gp/T/pytest-of-miketheman/pytest-1/test_output0')

    def test_output(tmpdir):
        files = """
            unrelated: []
            foo:
                - __init__.py
                - a.py: |
                    from bar import b
            bar:
                - __init__.py
                - b.py
        """
        with create_files(files) as workdir:
>           assert os.getcwd() == workdir
E           AssertionError: assert '/private/var...T/tmpdq01lrqw' == '/var/folders/...T/tmpdq01lrqw'
E             - /private/var/folders/rj/671kk3fx4cj_q5qdpp4kcmmm0000gp/T/tmpdq01lrqw
E             ? --------
E             + /var/folders/rj/671kk3fx4cj_q5qdpp4kcmmm0000gp/T/tmpdq01lrqw

tests/test_cli.py:21: AssertionError

It looks like the os.getcwd call is returning the full path including /private/ preface.

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