question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Test failure on macOS

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
thebjorncommented, Nov 24, 2019

I should probably remove the tox files. I don’t use them because they’re horribly slow. I would just create a virtualenv for each version you want to test and run pytest.

0reactions
mikethemancommented, Nov 24, 2019

Awesome! I’ve confirmed that the original error, and the HOME do not trigger on a fresh virtualenv. Thanks! Closing!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Check if a Mac disk is about to fail - Apple Support
On your Mac, open Disk Utility in the Utilities folder in Applications. · Select the disk you want to check. · Click the...
Read more >
macOS Big Sur upgrade issue - Provar
If you use a Mac and want to upgrade to macOS Big Sur, you will need to use Provar version 2.2.1 to avoid...
Read more >
Multiple test failures on MacOS 12 (Monterey) Apple Silicon ...
Confirming that running the test on Apple Silicon creates huge files > 300GB in size. Had to kill the process when 50% of...
Read more >
[Bug] and [macOS] Exchange test failed : r/Airmailreddit
I've tried the app specific passwords but to no avail. Airmail can no longer connect to Office 365 exchange server if two-factor auth...
Read more >
How to detect disk failure on Mac - CleanMyMac X
Restart your Mac and hold down Command + R. Select Reinstall macOS in macOS Utilities. Having a disk fail on your Mac, especially...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found