Skip to content

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

Merged
merged 3 commits into from
Sep 29, 2015
Merged

2.8.1 release #1084

merged 3 commits into from
Sep 29, 2015

Conversation

hpk42
Copy link
Contributor

@hpk42 hpk42 commented Sep 29, 2015

No description provided.

  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
@hpk42
Copy link
Contributor Author

hpk42 commented Sep 29, 2015

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:
Copy link
Member

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?

Copy link
Contributor Author

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.

Copy link
Member

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

Copy link
Member

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

Copy link
Contributor Author

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 :)

@RonnyPfannschmidt
Copy link
Member

👍

@@ -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
Copy link
Member

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.

@nicoddemus
Copy link
Member

LGTM! 👍

Shame #1058 didn't make it though.

@hpk42
Copy link
Contributor Author

hpk42 commented Sep 29, 2015

we can update the docs on pytest.org after #1058 made it :)

@nicoddemus
Copy link
Member

OK! 😄

hpk42 added a commit that referenced this pull request Sep 29, 2015
@hpk42 hpk42 merged commit afdbb6b into pytest-dev:master Sep 29, 2015
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.

4 participants