Skip to content
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

Bump pytest #22320

Merged
merged 8 commits into from
Aug 16, 2018
Merged

Bump pytest #22320

merged 8 commits into from
Aug 16, 2018

Conversation

WillAyd
Copy link
Member

@WillAyd WillAyd commented Aug 13, 2018

@TomAugspurger

@WillAyd WillAyd added Testing pandas testing functions or related to the test suite Dependencies Required and optional dependencies labels Aug 13, 2018
@jreback jreback added this to the 0.24.0 milestone Aug 13, 2018
Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

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

can you add a nice error message in the conftest.py that checks pytest version, else raises a nice error message? Ideally also add a test for this in test_downstream (though it should just pass as well always require this)

@codecov
Copy link

codecov bot commented Aug 14, 2018

Codecov Report

Merging #22320 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #22320   +/-   ##
=======================================
  Coverage   92.05%   92.05%           
=======================================
  Files         169      169           
  Lines       50709    50709           
=======================================
  Hits        46679    46679           
  Misses       4030     4030
Flag Coverage Δ
#multiple 90.46% <ø> (ø) ⬆️
#single 42.25% <ø> (ø) ⬆️

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 70e6f7c...b26dacc. Read the comment docs.

@TomAugspurger
Copy link
Contributor

TomAugspurger commented Aug 14, 2018 via email

@WillAyd
Copy link
Member Author

WillAyd commented Aug 14, 2018

Went with @TomAugspurger suggestion and updated the setup.cfg to require this, which gives a nice error message when trying to run below the required version:

ERROR: /Users/williamayd/clones/pandas/setup.cfg:34: requires pytest-3.6, actual pytest-3.4.1'

Not sure if there's a reasonable way to create a test for this so haven't done that, but @jreback if that's a deal breaker lmk and can explore options

@jreback
Copy link
Contributor

jreback commented Aug 14, 2018

can you add a whatsnew note (in Development, pls create if we don't have it). We put significant changes in the development process there. may need to edit slightly in contributing.rst as well.

This is actually user visible change as well. As users do pandas.test(), so may want to actually list in the dependencies changed (even though its not a strict dep).

and maybe add to install.rst as well (I don't think its listed), but for running tests it is required.

@@ -202,15 +202,15 @@ pandas is equipped with an exhaustive set of unit tests, covering about 97% of
the code base as of this writing. To run it on your machine to verify that
everything is working (and that you have all of the dependencies, soft and hard,
installed), make sure you have `pytest
<http://doc.pytest.org/en/latest/>`__ and run:
<http://doc.pytest.org/en/latest/>`__ >= 3.6 and run:
Copy link
Member

Choose a reason for hiding this comment

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

Minor comment: The URL redirects me from doc.pytest to docs.pytest; would be nice to use the newer URL in case the redirect gets removed.

@jreback jreback merged commit b5d81cf into pandas-dev:master Aug 16, 2018
@jreback
Copy link
Contributor

jreback commented Aug 16, 2018

thanks!

Moons08 pushed a commit to Moons08/pandas that referenced this pull request Aug 17, 2018
TomAugspurger added a commit to TomAugspurger/pandas that referenced this pull request Aug 18, 2018
commit b29dfc6
Author: Tom Augspurger <tom.w.augspurger@gmail.com>
Date:   Thu Aug 16 10:45:38 2018 -0500

    Support NDFrame.shift with EAs

    Uses take internally.

    Closes pandas-dev#22386

commit b5d81cf
Author: William Ayd <william.ayd@icloud.com>
Date:   Thu Aug 16 03:54:18 2018 -0700

    Bump pytest (pandas-dev#22320)

commit f07a790
Author: jbrockmendel <jbrockmendel@gmail.com>
Date:   Thu Aug 16 03:46:58 2018 -0700

    Make more of numpy_helper unnecessary (pandas-dev#22344)

commit 7b80d4d
Author: Graham Inggs <graham.inggs+github@gmail.com>
Date:   Thu Aug 16 12:43:02 2018 +0200

    Drop redundant TestLocale (pandas-dev#22349)

commit 6bcfc46
Author: Matthew Roeschke <emailformattr@gmail.com>
Date:   Thu Aug 16 03:32:31 2018 -0700

    Fix failing dateutil test (pandas-dev#22354)

commit 86e8f23
Author: jbrockmendel <jbrockmendel@gmail.com>
Date:   Thu Aug 16 03:08:09 2018 -0700

    remove last cython: nprofile comments (pandas-dev#22371)

commit 70e6f7c
Author: Joris Van den Bossche <jorisvandenbossche@gmail.com>
Date:   Wed Aug 15 18:09:50 2018 +0200

    DOC: edit docstring example to prevent segfault (pandas-dev#21824) (pandas-dev#22368)
TomAugspurger added a commit to TomAugspurger/pandas that referenced this pull request Aug 18, 2018
commit c4b0b97
Author: Tom Augspurger <tom.w.augspurger@gmail.com>
Date:   Thu Aug 16 14:36:39 2018 -0500

    Slice based

commit c980035
Author: Tom Augspurger <tom.w.augspurger@gmail.com>
Date:   Thu Aug 16 14:20:21 2018 -0500

    Updated

commit b29dfc6
Author: Tom Augspurger <tom.w.augspurger@gmail.com>
Date:   Thu Aug 16 10:45:38 2018 -0500

    Support NDFrame.shift with EAs

    Uses take internally.

    Closes pandas-dev#22386

commit b5d81cf
Author: William Ayd <william.ayd@icloud.com>
Date:   Thu Aug 16 03:54:18 2018 -0700

    Bump pytest (pandas-dev#22320)

commit f07a790
Author: jbrockmendel <jbrockmendel@gmail.com>
Date:   Thu Aug 16 03:46:58 2018 -0700

    Make more of numpy_helper unnecessary (pandas-dev#22344)

commit 7b80d4d
Author: Graham Inggs <graham.inggs+github@gmail.com>
Date:   Thu Aug 16 12:43:02 2018 +0200

    Drop redundant TestLocale (pandas-dev#22349)

commit 6bcfc46
Author: Matthew Roeschke <emailformattr@gmail.com>
Date:   Thu Aug 16 03:32:31 2018 -0700

    Fix failing dateutil test (pandas-dev#22354)

commit 86e8f23
Author: jbrockmendel <jbrockmendel@gmail.com>
Date:   Thu Aug 16 03:08:09 2018 -0700

    remove last cython: nprofile comments (pandas-dev#22371)

commit 70e6f7c
Author: Joris Van den Bossche <jorisvandenbossche@gmail.com>
Date:   Wed Aug 15 18:09:50 2018 +0200

    DOC: edit docstring example to prevent segfault (pandas-dev#21824) (pandas-dev#22368)
Sup3rGeo pushed a commit to Sup3rGeo/pandas that referenced this pull request Oct 1, 2018
@WillAyd WillAyd deleted the bump-pytest branch February 28, 2019 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dependencies Required and optional dependencies Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bump Min pytest Version
4 participants