-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
2.8.1 release #1084
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
2.8.1 release #1084
Conversation
importlib.invalidate_caches() - bump version to 2.8.1 - regen docs - amend changelog, authors
I could not get the pullrequest picture to be included correctly in both latex and html sphinx builders due to the "include" directive from doc/en/contributing.rst
release files are at https://devpi.net/hpk/dev/pytest/2.8.1 |
|
||
def _possibly_invalidate_import_caches(self): | ||
# invalidate caches if we can (py33 and above) | ||
try: |
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.
cant we use from importlib import invalidate_caches
to avoid the feature check in the else branch?
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.
probably -- but it's minor -- wouldn't want to repack/test everything for that.
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.
Or just do importlib.invalidate_caches()
here and do except (ImportError, AttributeError): pass
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.
@The-Compiler nope ^^
edit
to clarify, i think the invalidate_caches call should not be protected by any kind of except clause
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.
ronny regards it as a matter of principle: if invalidate_caches()
raises an AttributeError you would swallow it :)
👍 |
@@ -73,7 +73,7 @@ If you then run it with ``--lf``:: | |||
|
|||
$ py.test --lf | |||
======= test session starts ======== | |||
platform linux -- Python 3.4.2, pytest-2.8.1.dev1, py-1.4.30, pluggy-0.3.1 | |||
platform linux -- Python 3.4.3, pytest-2.8.1, py-1.4.30, pluggy-0.3.1 |
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.
No need to update this, just thought I would mention: next time we generate the examples I think (and Ronny agrees) that we should use Python 3.5 as a rule of thumb.
LGTM! 👍 Shame #1058 didn't make it though. |
we can update the docs on pytest.org after #1058 made it :) |
OK! 😄 |
No description provided.