Changes between Version 2 and Version 3 of Ticket #4190


Ignore:
Timestamp:
2026-01-04T19:41:56Z (9 days ago)
Author:
hacklschorsch
Comment:

I was able to reproduce the behavior on my NixOS development machine with a 3.13.9 CPython.

Replacing all occurrences of failUnlessRaises with assertRaises fixes this problem.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #4190 – Description

    v2 v3  
    44
    55Thanks @sajith for the pointer (both to the broken tests and the possible cause)!
     6
     7{{{
     82025-12-30 20:51:45 hacklschorsch   sajith: thanks for your link to > https://app.circleci.com/pipelines/github/tahoe-lafs/tahoe-lafs/5377/workflows/cd00a81d-54c3-43be-8041-719ea727c3f1
     92025-12-30 20:53:20 hacklschorsch   Seems most failures here are due to "[...] object has no attribute 'failUnlessRaises'" - Maybe some dependency has changed?
     102025-12-30 20:55:31 hacklschorsch   (in the windows builds)
     112025-12-30 20:55:38 hacklschorsch   IIRC these worked until a while ago
     122025-12-30 21:43:49 sajith  hacklschorsch: I am not 100% sure right now, but I think Python (unittest module maybe?) has deprecated failUnlessRaises in favor of assertRaises or something, and I suspect that we've ended up importing failUnlessRaises both from twisted.trial.unittest and stdlib unittest. Just a hypothesis. I don't have the time to check right now.
     13}}}