proposed-migration yt/4.3.0-1build1 vs pytest/8.2.1-2

Bug #2068046 reported by Chris Peterson
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
yt (Debian)
Confirmed
Unknown
yt (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

yt autopkgtests fail with the latest version of pytest:

=================================== FAILURES ===================================
__________________________ test_cylindrical_ray_trace __________________________

    def test_cylindrical_ray_trace():
        for pair in point_pairs:
            p1, p2 = pair
            p1cart, p2cart = _cyl2cart(pair)
            pathlen = np.sqrt(np.sum((p2cart - p1cart) ** 2))

> t, s, rztheta, inds = cylindrical_ray_trace(p1, p2, left_grid, right_grid)

yt/utilities/lib/tests/test_alt_ray_tracers.py:74:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

> rleft = left_edges[:,0]
E TypeError: 'NoneType' object is not subscriptable

yt/utilities/lib/alt_ray_tracers.pyx:111: TypeError

This is likely due to the deprecation of nose style test support: https://github.com/pytest-dev/pytest/issues/9886

Chris Peterson (cpete)
tags: added: update-excuse
Revision history for this message
Chris Peterson (cpete) wrote :

The provided patch is a minimal change to allow the current tests to pass with pytest 8.2. Upstream has more changes of this kind, but I didn't think it was necessary to replicate all of them.

PPA with build: https://launchpad.net/~cpete/+archive/ubuntu/yt/+packages

Autopkgtest results for amd64: https://autopkgtest.ubuntu.com/results/autopkgtest-oracular-cpete-yt/

Changed in yt (Ubuntu):
assignee: Chris Peterson (cpete) → nobody
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "yt_4.3.0-1build1_4.3.0-1ubuntu1.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
Michael Hudson-Doyle (mwhudson) wrote :

Uploading to ubuntu (via ftp to upload.ubuntu.com):
  Uploading yt_4.3.0-1ubuntu1.dsc: done.
  Uploading yt_4.3.0-1ubuntu1.debian.tar.xz: done.
  Uploading yt_4.3.0-1ubuntu1_source.buildinfo: done.
  Uploading yt_4.3.0-1ubuntu1_source.changes: done.
Successfully uploaded packages.

Changed in yt (Debian):
status: Unknown → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package yt - 4.3.0-1ubuntu1

---------------
yt (4.3.0-1ubuntu1) oracular; urgency=medium

  * d/p/test-alt-ray-tracers-pytest-module-funcs.patch (LP: #2068046)
    - Update test module for Pytest 8 compatibility

 -- Chris Peterson <email address hidden> Tue, 04 Jun 2024 10:45:36 -0700

Changed in yt (Ubuntu):
status: New → Fix Released
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.