Skip to content

fixes for test_wcs - #1

Merged
kelle merged 1 commit into
kelle:pytest3-fixfrom
mhvk:pr-5678
Jan 9, 2017
Merged

kelle merged 1 commit into
kelle:pytest3-fixfrom
mhvk:pr-5678

Conversation

@mhvk

@mhvk mhvk commented Jan 9, 2017

Copy link
Copy Markdown

@kelle - for test_wcs the problem also seemed to be that one cannot use get_pkg_data_filenames inside a pytest.mark.parametrize decorator. With this PR, test -P wcs now passes...

@kelle
kelle self-requested a review January 9, 2017 19:59

@kelle kelle left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it works!

@kelle
kelle merged commit ae94fff into kelle:pytest3-fix Jan 9, 2017
@kelle

kelle commented Jan 9, 2017

Copy link
Copy Markdown
Owner

Ok, so get_pkg_data_contents works inside parametrize, but not get_pkg_data_filenames? Geez. How the heck did you figure that out?

Also, I really appreciate the comments you added in test_wcs! Much more readable now that it was!

@mhvk

mhvk commented Jan 9, 2017

Copy link
Copy Markdown
Author

Sheer trial and error, I fear. Indeed, both work fine under python3, but get_pkg_data_filenames does not seem to work under python2 in parametrize. Bizarre.

@mhvk
mhvk deleted the pr-5678 branch February 19, 2017 22:16
kelle pushed a commit that referenced this pull request May 11, 2017
Remove unit checks that are irrelevant for the bug fix.
kelle pushed a commit that referenced this pull request May 11, 2017
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.

2 participants