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.

Don't expect so many failures

See original GitHub issue

I can only guess that test_basic.py has so many expect_failure=True’s out of a desire to be resilient if the testing environment doesn’t have tools like SVN installed. Really, if there’s a failure in [[http://bitbucket.org/ianb/pip/src/tip/tests/test_basic.py#cl-50|the SVN command]], though, it’s unlikely that any of the following lines will pass. As it is, the instruction to skip looks like at best obfuscation and at worse something that could cause a real problem to slip by undetected. The right answer is probably to use a mechanism to skip tests with dependencies that aren’t installed (and have a mode where everything is run anyway so we can find out what’s needed)


Issue Analytics

  • State:closed
  • Created 13 years ago
  • Comments:15 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
dstufftcommented, May 19, 2017

All over the place there are tests that call script.pip (or similar) that have an expect_error=True or expect_stderr=True that don’t need it. The way to resolve this ticket is for someone to go through and remove any of those that are not needed for the tests to pass.

1reaction
xavfernandezcommented, Apr 5, 2017

The easy fix part I had in mind was to check wheither the tests were in fact passing but I don’t think we have any test unexpectedly passing. So nevermind the easy fix ^^

Read more comments on GitHub >

github_iconTop Results From Across the Web

Don't Just Accept Failure, Expect It! | by Saar Oron - Medium
The only difference between success and failure is that success is something we embrace. We never expect failure nor accept it.
Read more >
Fail fast and fail often: why many failures can be the key to ...
Of course, it's not about just failing, but learning from your failures. It's said that insanity is doing the same thing over and...
Read more >
Should You Expect Failure? - - Help Everybody Everyday
The short answer is no. The long answer is much more complicated. So, let's talk about firsts. Learning To Walk And Kindergarten. This...
Read more >
The Hidden Reason Why You Are Not Getting the Results You ...
1. Expect success, regardless of appearance · 2. Don't bring past failures with you. · 3. Visualize your ideal outcome.
Read more >
30 Powerful Quotes on Failure - Forbes
1. "Failure isn't fatal, but failure to change might be" - John Wooden · 2. "Everything you want is on the other side...
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