Skip to content

Commit

Permalink
TST: cleanup unused return values in tests (following pytest deprecat…
Browse files Browse the repository at this point in the history
…ion)
  • Loading branch information
neutrinoceros committed Jul 13, 2022
1 parent 2692093 commit b6c2c9f
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion yt/visualization/volume_rendering/tests/test_composite.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,3 @@ def test_composite_vr(self):
im = sc.render()
im = ImageArray(im.d)
im.write_png("composite.png")
return im
1 change: 0 additions & 1 deletion yt/visualization/volume_rendering/tests/test_points.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,3 @@ def test_points_vr(self):
sc.add_source(points_source)
im = sc.render()
im.write_png("points.png")
return im
2 changes: 0 additions & 2 deletions yt/visualization/volume_rendering/tests/test_save_render.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,3 @@ def test_save_render(self):
# save a different format with/without sigma clips
sc.save(os.path.join(self.tmpdir, "no_clip.jpg"), render=False)
sc.save(os.path.join(self.tmpdir, "clip_2.jpg"), sigma_clip=2, render=False)

return sc
3 changes: 1 addition & 2 deletions yt/visualization/volume_rendering/tests/test_simple_vr.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,4 @@ def tearDown(self):

def test_simple_vr(self):
ds = fake_random_ds(32)
im, sc = yt.volume_render(ds, fname="test.png", sigma_clip=4.0)
return im, sc
_im, _sc = yt.volume_render(ds, fname="test.png", sigma_clip=4.0)

0 comments on commit b6c2c9f

Please sign in to comment.