GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Upgrade to new-style hook wrappers · Issue #216 · matplotlib/pytest-mpl

Upgrade to new-style hook wrappers #216

New issue
Copy link
New issue
Copy link
Open
#219
Open
Upgrade to new-style hook wrappers#216
#219
Copy link
Milestone
1.0.0

Description

@ConorMacBride
ConorMacBride
opened on Dec 17, 2023
Issue body actions

Pytest 8 will use the new-style hook wrappers so we should add a version check to update the decorator for our pytest_runtest_call hooks.

See also: pytest-dev/pytest#11714

Also re-enable the pytestdev test environment.

Activity

  1. ConorMacBride
    closed this as completedin #219on Jan 10, 2024
  2. pllim commented on Jan 10, 2024

    @pllim
    pllim
    on Jan 10, 2024
    Contributor
    More actions

    Actually I didn't really upgrade to new style. I simply copy-pasted the suggested workaround by pytest dev, so maybe you should re-open this issue. I apologize for any inconvenience caused.

  3. ConorMacBride commented on Jan 10, 2024

    @ConorMacBride
    ConorMacBride
    on Jan 10, 2024
    MemberAuthor
    More actions

    Yes, I realised that, but I think how you fixed it is better. The pluggy documentation now recommends using force_exception so we are effectively adding proper support for newer pluggy versions, regardless of the pytest version installed.

    To add the new-style hook wrappers we'd need to do version checks on pytest to decide which kwargs to pass to the hooks, which might be unnecessary mess? The old-style hook wrappers will likely be supported for a long time yet. I'll reopen this issue though, as we should upgrade at some point. v1.0.0 would probably make sense.

    Reacted by P. L. Lim
  4. ConorMacBride
    reopened this on Jan 10, 2024
  5. ConorMacBride
    added this to the 1.0.0 milestone on Jan 10, 2024
  6. neutrinoceros commented on Jan 24, 2024

    @neutrinoceros
    neutrinoceros
    on Jan 24, 2024
    Contributor
    More actions

    Pluggy 1.4.0 (just released) now warns about old-style hook wrappers (xref #221). This breaks any CI that treats warnings as errors.

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

      • 1.0.0No due date

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402792 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.