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.

Why do coverage reports always crash?

See original GitHub issue

When I use: pytest It’s absolutely fine. However, if I add ‘–cov=whatever’, Python just crashes. I’m using stackless-python 3.6.6 on Windows 10. Actually, even the old ‘coverage’ package doesn’t work as well, so I’m not even sure that I should be asking about this here… Anyways, I’ll just submit an issue and hope for some luck. I have 2 files in the same folder(main.py & test_main.py). main.py:

def road(x, y):
    return 1

test_main.py:

from main import road


class TestModels(object):
    def setup_class(self):
        # Init
        print('hi')

    def teardown_class(self):
        print('haha')

    def test_exist(self):
        assert road(0, 0) == 1

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
ionelmccommented, May 14, 2019

What exactly does crashing mean? Please add details like traceback, command line, project layout, configuration etc. Ideally you’d post a small reproducing example.

0reactions
voldemortXcommented, May 15, 2019

Sorry for the troubles… It turns out to be some sort of compatibility issue with package PyTorch A default python 3.6.8 enviroment works fine.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Visual Studio 2019 crashes when 'Show code coverage ...
Several times a day I experience that Visual Studio 2019 crashes when I want to see my code coverage. It happens when clicking...
Read more >
Car crash coverage: Why the media keeps botching it.
“Coverage almost always treats crashes as isolated incidents,” Ralph and her colleagues wrote in a 2019 academic paper.
Read more >
Troubleshooting Code Coverage - Visual Studio (Windows)
In this article. What you should see; Possible reasons for seeing no results or old results; Some code is always shown as not...
Read more >
Detect and diagnose crashes - Android Developers
Once you have identified that your app is reporting crashes, the next step is to diagnose them. Solving crashes can be difficult. However,...
Read more >
Why News Coverage of Car Crashes Favors Drivers
News reports rarely mention the broader context behind car crashes involving pedestrians and cyclists. Safety advocates are right to be ...
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