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 — Twisted: Incompability with pytest.skip and Twisted 25.5 · Issue #13497 · pytest-dev/pytest

Twisted: Incompability with pytest.skip and Twisted 25.5 #13497

New issue
Copy link
New issue
Copy link
Closed
#13502
Closed
Twisted: Incompability with pytest.skip and Twisted 25.5#13497
#13502
Copy link

Description

@nicoddemus
nicoddemus
opened on Jun 7, 2025
Issue body actions

The recently released twisted 25.5.0 is causing the test test_trial_exceptions_with_skips to fail:

https://github.com/pytest-dev/pytest/actions/runs/15509383216/job/43668300225?pr=13496

Created this MWE:

from __future__ import annotations

from twisted.trial import unittest

import pytest


class TC(unittest.TestCase):
    def test_hello(self):
        pytest.skip("skip_in_method")
λ uvx --with pytest,twisted==24.11 pytest testing\test_trial.py -q
s                                                                                                                                                                                                         [100%]
1 skipped in 0.13s
λ uvx --with pytest,twisted==25.5 pytest testing\test_trial.py -q
F                                                              [100%]
============================= FAILURES ==============================
___________________________ TC.test_hello ___________________________
skip_in_method

During handling of the above exception, another exception occurred:
'NoneType' object is not iterable

During handling of the above exception, another exception occurred:
NOTE: Incompatible Exception Representation, displaying natively:

Skipped: skip_in_method

====================== short test summary info ======================
FAILED testing/test_trial.py::TC::test_hello - Failed: NOTE: Incompatible Exception Representation, displaying n...
1 failed in 0.14s
Reacted by Glyph

Activity

  1. p12tic commented on Jun 9, 2025

    @p12tic
    p12tic
    on Jun 9, 2025
    More actions

    See analysis here twisted/twisted#12467 (comment). pytest patches twisted.python.failure.Failure.__init__ and it breaks in Twisted 25.5 because there's an additional except/raise pair in Twisted test framework code.

  2. nicoddemus commented on Jun 9, 2025

    @nicoddemus
    nicoddemus
    on Jun 9, 2025
    MemberAuthor
    More actions

    Thanks @p12tic appreciate the link.

    We are happy to fix pytest, after all we are patching the internals. Do you have any suggestion on how we can fix pytest?

  3. nicoddemus
    added 15 commits that reference this issue on Jun 9, 2025

    Fix compatibility with Twisted 25

    This issue will close once commit e9523ef is merged into the 'main' branch.
    e9523ef

    Fix compatibility with Twisted 25

    This issue will close once commit 1ce2bdd is merged into the 'main' branch.
    1ce2bdd

    Fix compatibility with Twisted 25

    This issue will close once commit e30e0a0 is merged into the 'main' branch.
    e30e0a0

    Fix compatibility with Twisted 25

    This issue will close once commit d12b29a is merged into the 'main' branch.
    d12b29a

    Fix compatibility with Twisted 25

    This issue will close once commit d0ee227 is merged into the 'main' branch.
    d0ee227

    Fix compatibility with Twisted 25

    This issue will close once commit 36c57ab is merged into the 'main' branch.
    36c57ab

    Fix compatibility with Twisted 25

    This issue will close once commit 96f0319 is merged into the 'main' branch.
    96f0319

    Extract `sys.exc_info` from trial's Failure during the test execution

    This issue will close once commit 646b58b is merged into the 'main' branch.
    646b58b

    Twisted support: extract `sys.exc_info` during `addError`

    This issue will close once commit c48c810 is merged into the 'main' branch.
    c48c810

    Twisted support: extract `sys.exc_info` during `addError`

    This issue will close once commit f519098 is merged into the 'main' branch.
    f519098

    Fix compatibility with Twisted 25

    This issue will close once commit 503b70f is merged into the 'main' branch.
    503b70f

    Twisted support: extract `sys.exc_info` during `addError`

    This issue will close once commit f048110 is merged into the 'main' branch.
    f048110

    Fix compatibility with Twisted 25

    This issue will close once commit eecd314 is merged into the 'main' branch.
    eecd314

    Twisted support: extract `sys.exc_info` during `addError`

    This issue will close once commit f12a5bd is merged into the 'main' branch.
    f12a5bd

    Fix compatibility with Twisted 25

    This issue will close once commit 4e533f7 is merged into the 'main' branch.
    4e533f7
  4. nicoddemus
    closed this as completedin #13502on Jun 17, 2025
  5. nicoddemus
    added a commit that references this issue on Jun 17, 2025

    Fix compatibility with Twisted 25 (#13502)

    This issue will close once commit 01dce85 is merged into the 'main' branch.
    01dce85
  6. patchback
    added a commit that references this issue on Jun 17, 2025

    Fix compatibility with Twisted 25 (#13502)

    This issue will close once commit 44b4dfe is merged into the 'main' branch.
    44b4dfe
  7. nicoddemus
    added a commit that references this issue on Jun 17, 2025

    Fix compatibility with Twisted 25 (#13502) (#13531)

    This issue will close once commit a1b3a78 is merged into the 'main' branch.
    a1b3a78
  8. luketainton
    added a commit that references this issue on Jan 5, 2026

    chore(deps): update dependency pytest to v9 (#305)

    4b75154
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

      You are visitor 01402775 — 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.