python-dtcwt/0.12.0-5 vs pytest/8.2.2-1

Bug #2068558 reported by Chris Peterson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-dtcwt (Debian)
New
Unknown
python-dtcwt (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Pytest 8 dropped support for nose style tests, which utilize "def setup()" module level functions. This is the cause of the autopkgtest errors like so:

1s =================================== FAILURES ===================================
 81s _____________________________ test_mandrill_loaded _____________________________
 81s
 81s def test_mandrill_loaded():
 81s > assert verif is not None
 81s E NameError: name 'verif' is not defined
 81s
 81s tests/test_againstmatlab.py:69: NameError

which are caused by the test setup function not being run.

https://autopkgtest.ubuntu.com/results/autopkgtest-oracular/oracular/amd64/p/python-dtcwt/20240606_104626_b47f2@/log.gz

Revision history for this message
Chris Peterson (cpete) wrote :
Changed in python-dtcwt (Ubuntu):
assignee: Chris Peterson (cpete) → nobody
description: updated
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "python-dtcwt_0.12.0-5_0.12.0-5ubuntu1.debdiff" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

tags: added: patch
Revision history for this message
Chris Peterson (cpete) wrote :

I've forwarded the patch to upstream. Please see the new debdiff with the updated patch header.

Revision history for this message
Simon Quigley (tsimonq2) wrote :

Uploaded your most recent debdiff, thanks!

Please also send this up to Debian, since the package is in sync.

Changed in python-dtcwt (Ubuntu):
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python-dtcwt - 0.12.0-5ubuntu1

---------------
python-dtcwt (0.12.0-5ubuntu1) oracular; urgency=medium

  * d/p/pytest-nose-deprecation.patch: Update tests for pytest 8 compatibility
    (LP: #2068558).

 -- Chris Peterson <email address hidden> Wed, 05 Jun 2024 21:53:51 -0700

Changed in python-dtcwt (Ubuntu):
status: Fix Committed → Fix Released
Changed in python-dtcwt (Debian):
status: Unknown → New
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.