Skip to content

Fix pytest tests invocation with custom PYTHONPATH#4914

Merged
blueyed merged 1 commit into
pytest-dev:masterfrom
hroncok:issue4913
Mar 12, 2019
Merged

Fix pytest tests invocation with custom PYTHONPATH#4914
blueyed merged 1 commit into
pytest-dev:masterfrom
hroncok:issue4913

Conversation

@hroncok

@hroncok hroncok commented Mar 12, 2019

Copy link
Copy Markdown
Member

Fixes #4913

  • Create a new changelog file in the changelog folder...
  • Target the master branch for bug fixes, documentation updates and trivial changes.
  • Include new tests or update existing tests when applicable (this is a test update).
  • Add yourself to AUTHORS in alphabetical order (already there)

@asottile asottile left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

otherwise looks good! Thanks for the patch 🎉

Comment thread changelog/4913.bugfix.rst
@codecov

codecov Bot commented Mar 12, 2019

Copy link
Copy Markdown

Codecov Report

Merging #4914 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #4914      +/-   ##
=========================================
+ Coverage   95.68%   95.7%   +0.01%     
=========================================
  Files         113     113              
  Lines       25169   25170       +1     
  Branches     2498    2498              
=========================================
+ Hits        24083   24088       +5     
+ Misses        767     764       -3     
+ Partials      319     318       -1
Impacted Files Coverage Δ
testing/test_collection.py 99.8% <100%> (ø) ⬆️
src/_pytest/cacheprovider.py 95.75% <0%> (-1.42%) ⬇️
src/_pytest/capture.py 94.15% <0%> (+0.44%) ⬆️
src/_pytest/terminal.py 91.74% <0%> (+0.82%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 76c00d1...d32ab60. Read the comment docs.

Comment thread testing/test_collection.py Outdated

@asottile asottile left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes pytest-dev#4913

Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
@hroncok

hroncok commented Mar 12, 2019

Copy link
Copy Markdown
Member Author

I'm running a check to see if the current patch actually fixes the issue. It might take a few minutes.

@hroncok

hroncok commented Mar 12, 2019

Copy link
Copy Markdown
Member Author

It does.

@asottile asottile left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@blueyed blueyed left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the patch, and sorry for breaking it.

@blueyed blueyed merged commit 6630d96 into pytest-dev:master Mar 12, 2019
@hroncok

hroncok commented Mar 12, 2019

Copy link
Copy Markdown
Member Author

@blueyed don't worry about it, it's pretty nonstandard setup, it breaks all the time :D

@hroncok hroncok deleted the issue4913 branch March 12, 2019 18:06
@nicoddemus

Copy link
Copy Markdown
Member

Thanks everyone!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

monkeypatching PYTHONPATH breaks real PYTHONPATH

4 participants