Skip to content
This repository was archived by the owner on Nov 11, 2024. It is now read-only.

Ensure common py.test rootdir for test files - #189

Merged
embray merged 2 commits into
astropy:v1.0.xfrom
embray:fix-rootdir-issue
Sep 23, 2015
Merged

embray merged 2 commits into
astropy:v1.0.xfrom
embray:fix-rootdir-issue

Conversation

@embray

@embray embray commented Sep 21, 2015

Copy link
Copy Markdown
Member

This now copies the docs for testing into the temp dir, and ensures that the setup.cfg is in the common root directory for the Python files and the docs. This ensures that in py.test >= 2.7 the correct common test directory can be found as the 'rootdir'. Seems to work fine with older versions of py.test as well (down to 2.4).

This replaces #187 as a solution to astropy/astropy#4164

…hat the setup.cfg is in the common root directory for the Python files and the docs. This ensures that in py.test >= 2.7 the correct common test directory can be found as the 'rootdir'. Seems to work fine with older versions of py.test as well (down to 2.4).
@embray embray added this to the v1.0.4 milestone Sep 21, 2015
@mdboom

mdboom commented Sep 21, 2015

Copy link
Copy Markdown
Contributor

👍

@mdboom mdboom closed this Sep 21, 2015
@mdboom mdboom reopened this Sep 21, 2015
@mdboom

mdboom commented Sep 21, 2015

Copy link
Copy Markdown
Contributor

Sorry for closing. Bumped the wrong button :(

@embray

embray commented Sep 21, 2015

Copy link
Copy Markdown
Member Author

Happens :)

@embray embray mentioned this pull request Sep 21, 2015
embray added a commit to embray/astropy_helpers that referenced this pull request Sep 21, 2015
embray added a commit that referenced this pull request Sep 23, 2015
Ensure common py.test rootdir for test files
@embray
embray merged commit 3b11cb7 into astropy:v1.0.x Sep 23, 2015
@embray
embray deleted the fix-rootdir-issue branch September 23, 2015 17:17
embray added a commit to embray/astropy_helpers that referenced this pull request Sep 23, 2015
embray added a commit that referenced this pull request Sep 28, 2015
embray added a commit to embray/astropy_helpers that referenced this pull request Sep 30, 2015
…in OSX, where tempfile.mkdtemp does *not* return a real path.
embray added a commit that referenced this pull request Sep 30, 2015
… where tempfile.mkdtemp does *not* return a real path.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants