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.

I want to implement a pytest.ignore() that will behave as pytest.skip(), but without any visuals. ie, no yellow S, or xx skipped in the ui.

Using pytest with testinfra I end up with a ton of tests that I don’t want to show in the UI because of parameterize. I asked at https://stackoverflow.com/questions/62079737/pytest-ignore-test-not-just-skip, and have looked around but can not find any indication that this is possible.

I can submit a pr on this, but I want to see if it will get accepted first, and/or if there are any deep reason why this can not be implemented.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
RonnyPfannschmidtcommented, May 29, 2020

Im -1 on that one

0reactions
asottilecommented, Jun 12, 2020

ah thanks, yes that’s an exact duplicate – let’s continue the discussion there

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ignoring rule results
On the result tab, locate the rule result that contains the rule exception to ignore. Right-click the rule result and select Ignore Result....
Read more >
How do I ignore an error returned from a Rust function and ...
1 Answer 1 · Don't use the Result : let _ = failing_function();. The function will be called, but the result will be...
Read more >
What is the best way to ignore a `Result`? - help
Another option is to use let _: Result<(), _> = delete(); which generalizes to other cases like let _: Result<bool, _> = blah();...
Read more >
A simple crate to make ignoring rust Results safe and easy
ignore () -> () method that consumes a Result<T,E> coming out of a function and always returns () – regardless of what the...
Read more >
ignore-result for rust
ignore () function to Result instances that ignores both the Ok and Err variants of the result, silencing compiler warnings about unused errors ......
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