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.

Running the full test suite on Windows can affect system Python

See original GitHub issue

Environment

  • pip version: 19.3.1 and master
  • Python version: 3.8.1
  • OS: Windows 10

Description Copied from here:

Oh, if additional arguments are needed to run pip’s tests out of the box, that’s not right.

The commands to run the tests on Windows (from the CI config) are:

tox -e py -- -m unit -n auto
tox -e py -- -m integration -n auto

Those work. But just tox -e py produces loads of errors, suggesting that there are tests that are marked as neither “unit” nor “integration” that are failing on Windows. Worse, after running the incorrect command, I found masses of unexpected packages installed in my system Python! (I was running tox from a venv created just for testing pip, so everything should have been 100% isolated from the system install. It was bad enough that reinstalling my system Python was the easiest fix.

I’ll make this comment into a separate issue, but honestly I don’t want to spend a lot of time fighting the test suite into submission on Windows, particularly if it involves trashing my system Python on a regular basis 🙁 So if anyone else wants to pick this up, they are welcome to do so.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:12 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
pfmoorecommented, Feb 12, 2020

OK, I’ve run the test suite multiple times now, and never been able to reproduce the issue. I’m going to put it down as user error, and close the issue.

0reactions
pfmoorecommented, Feb 5, 2020

That’s an interesting idea, thanks. I’ll look into that (but I want to check locally that I didn’t do something really dumb first 🙂).

Read more comments on GitHub >

github_iconTop Results From Across the Web

unittest — Unit testing framework — Python 3.11.1 ...
The remainder of the documentation explores the full feature set from first ... The unittest module can be used from the command line...
Read more >
Testing only affected code in Python - Stack Overflow
Parallel execution of separate test suites on different machines; Running tests at ... Then you can execute tests based on the code changed....
Read more >
Effective Python Testing With Pytest
In this tutorial, you'll learn how to take your testing to the next level with pytest. You'll cover intermediate and advanced pytest ...
Read more >
Testing Python in Visual Studio Code
Developers typically run unit tests even before committing code to a repository; gated check-in systems can also run unit tests before merging a...
Read more >
Continuous Integration – Introduction to automated testing and ...
When running tests on your local machine you can be confident that the code is working in your environment, i.e. your operating system,...
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