Skip to content

TEST: Prefer vanilla unittest.skip* to pytest skips #883

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
Feb 8, 2020

Conversation

effigies
Copy link
Member

@effigies effigies commented Feb 8, 2020

Both pytest and nose respect unittest marks, while nose doesn't respect pytest's. This strategy should reduce the need to add files to the ignore list in Travis as we finish up the conversion.

This is also hopefully more future-proof than nose. If pytest someday goes the same way as nose, then hopefully vanilla unittest structures will not need to be ported, reducing the burden.

@codecov
Copy link

codecov bot commented Feb 8, 2020

Codecov Report

Merging #883 into pytest will decrease coverage by 0.07%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           pytest     #883      +/-   ##
==========================================
- Coverage   91.36%   91.28%   -0.08%     
==========================================
  Files          98       98              
  Lines       12166    12158       -8     
  Branches     2186     2185       -1     
==========================================
- Hits        11115    11098      -17     
- Misses        706      714       +8     
- Partials      345      346       +1     
Impacted Files Coverage Δ
nibabel/pydicom_compat.py 77.27% <0.00%> (-22.73%) ⬇️
nibabel/conftest.py 80.00% <0.00%> (-20.00%) ⬇️
nibabel/viewers.py 95.39% <0.00%> (-0.66%) ⬇️
nibabel/deprecator.py 100.00% <0.00%> (ø) ⬆️
nibabel/keywordonly.py 100.00% <0.00%> (ø) ⬆️
nibabel/imageclasses.py 100.00% <0.00%> (ø) ⬆️
nibabel/orientations.py 100.00% <0.00%> (ø) ⬆️
nibabel/gifti/giftiio.py 100.00% <0.00%> (ø) ⬆️
nibabel/streamlines/tractogram_file.py 100.00% <0.00%> (ø) ⬆️
nibabel/streamlines/tck.py 99.45% <0.00%> (ø) ⬆️
... and 31 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update afa0f2e...a223c07. Read the comment docs.

@effigies effigies force-pushed the test/vanilla_unittest branch from e3bbf5b to b35166f Compare February 8, 2020 02:34
@effigies effigies force-pushed the test/vanilla_unittest branch from b35166f to a223c07 Compare February 8, 2020 17:07
@effigies effigies merged commit 328c236 into nipy:pytest Feb 8, 2020
@effigies effigies deleted the test/vanilla_unittest branch February 8, 2020 22:39
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.

1 participant