Repository navigation
Relocate generic pytest plugins to separate repositories #6606
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
Changes from all commits
afa2cf0
08df712
f6a3068
cad25a2
c4f52a5
bafcc83
91e0690
35f53b0
dead42e
1ea3191
68c7542
7862c53
97180a1
6d42858
5ae6ad5
be6f09b
d26cc4f
b17271e
f6253e6
dc3f5da
1a27565
8b89f60
19aed18
9fe3bd1
316be87
516cbed
a466ac9
19ee6dc
07860a6
f3e356e
cee0344
c16c2fa
1919592
93a78fb
5912e3f
00e77db
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -85,7 +85,8 @@ astropy.table | |
| astropy.tests | ||
| ^^^^^^^^^^^^^ | ||
|
|
||
| - Split pytest plugins into separate modules. [#6384] | ||
| - Split pytest plugins into separate modules. Move remotedata, openfiles, | ||
| doctestplus plugins to standalone repositories. [#6606] | ||
|
|
||
| astropy.time | ||
| ^^^^^^^^^^^^ | ||
|
|
@@ -529,6 +530,10 @@ astropy.tests | |
|
|
||
| - Updated top-level config file to properly ignore top-level directories. | ||
| [#6449] | ||
| - Fixed issue with running test suite directly from ``pytest``. [#6437] | ||
|
|
||
| astropy.time | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'll do a thorough review later. At a glance, the inclusion of extra
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh yeah, that was definitely an oversight. It might have happened when I rebased the old PR on the latest
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Off topic: Someone needs to implement |
||
| ^^^^^^^^^^^^ | ||
|
|
||
| astropy.units | ||
| ^^^^^^^^^^^^^ | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,13 @@ | ||
| # this contains imports plugins that configure py.test for astropy tests. | ||
| # by importing them here in conftest.py they are discoverable by py.test | ||
| # no matter how it is invoked within the astropy tree. | ||
| # Licensed under a 3-clause BSD style license - see LICENSE.rst | ||
| """ | ||
| This file contains pytest configuration settings that are astropy-specific | ||
| (i.e. those that would not necessarily be shared by affiliated packages | ||
| making use of astropy's test runner). | ||
| """ | ||
| from astropy.tests.plugins.display import PYTEST_HEADER_MODULES | ||
| from astropy.tests.helper import enable_deprecations_as_exceptions | ||
|
|
||
| from .tests.pytest_plugins import * | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is great to see gone, probably we should also do it in the package-template to make it less black boxy |
||
| enable_deprecations_as_exceptions(include_astropy_deprecations=False) | ||
|
|
||
| try: | ||
| import matplotlib | ||
|
|
@@ -11,6 +16,6 @@ | |
| else: | ||
| matplotlib.use('Agg') | ||
|
|
||
| enable_deprecations_as_exceptions(include_astropy_deprecations=False) | ||
|
|
||
| # This is astropy-specific so should not be included in a generic plugin that | ||
| # could potentially be used by other projects | ||
| PYTEST_HEADER_MODULES['Cython'] = 'cython' | ||
This file was deleted.
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.
can we add the
pytest-astropydependency directly to setup.py?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.
It's already there but for some reason it didn't work without being explicit here.
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.
Astropy is not installed before running the tests, hence why
install_requiresis not used I think.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.
Yes that's true, although the error is actually a segfault that occurs while building cython extensions. This seems pretty weird to me, but I can reproduce it locally, and will try to take a closer look tomorrow.