Skip to content

TST/BLD: pytest minimum version #5215

Closed

Description

@josef-pkt

Why do we require a pytest minimum version of 3.6?

https://github.com/statsmodels/statsmodels/blame/master/setup.cfg#L5

I commented it out locally in my checkout so I can keep running with an old pytest.

Activity

  1. josef-pkt commented on Sep 15, 2018

    @josef-pkt
    MemberAuthor
  2. bashtage commented on Sep 15, 2018

    @bashtage
    Member

    I think there was a fix that cane in at 36 but don't fit recall. Otoh upgrading pytest is pretty simple

  3. bashtage commented on Sep 15, 2018

    @bashtage
    Member

    This is the reason:

    Revamp the internals of the pytest.mark implementation with correct per node handling which fixes a number of long standing bugs caused by the old design. This introduces new Node.iter_markers(name) and Node.get_closest_mark(name) APIs. Users are strongly encouraged to read the reasons for the revamp in the docs, or jump over to details about updating existing code to use the new APIs. (#3317)
    

    to ensure that we don't hit these issues when using custom marks.

  4. josef-pkt commented on Sep 15, 2018

    @josef-pkt
    MemberAuthor

    Ok, I will update pytest soon.
    pytest 3.6 is in the latest two Debian, so this should be fine without extra works
    https://packages.debian.org/search?keywords=python3-pytest

  5. jbrockmendel commented on May 8, 2019

    @jbrockmendel
    Contributor

    closeable?

  6. bashtage commented on May 8, 2019

    @bashtage
    Member

    No longer correct or relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions