-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include pytest version in the cached pyc tags #5484
Conversation
@@ -21,7 +22,7 @@ | |||
from _pytest.pathlib import PurePath | |||
|
|||
# pytest caches rewritten pycs in __pycache__. | |||
PYTEST_TAG = "{}-PYTEST".format(sys.implementation.cache_tag) | |||
PYTEST_TAG = "{}-pytest-{}".format(sys.implementation.cache_tag, version) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Decided to use lowercase pytest
here because all the other tag elements are lower case. Decided to follow suit.
Codecov Report
@@ Coverage Diff @@
## master #5484 +/- ##
==========================================
+ Coverage 96.07% 96.07% +<.01%
==========================================
Files 117 117
Lines 25538 25546 +8
Branches 2473 2473
==========================================
+ Hits 24536 24544 +8
Misses 698 698
Partials 304 304
Continue to review full report at Codecov.
|
Btw any concerns about the name of the file containing the dotted pytest version? For example I don't think it should be any problem, but thought I would ask. |
Seems fine to me! |
Likely should not really be a problem, but |
Though dropping dots creates ambiguity between 5.1.10 and 5.11.0 🤷♂️ |
Had the same thought. Well let's merge this then. |
pytest: drop the dot... only sometimes ;) |
All credits go to @asottile! Just wanted to make a small contribution before calling it a day.
Fix #1671