Skip to content

Commit

Permalink
don't use pg.image() in tests
Browse files Browse the repository at this point in the history
a global reference is created by pg.image()
  • Loading branch information
pijyoi committed Feb 25, 2023
1 parent 7118248 commit d191299
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/imageview/test_imageview.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@
def test_nan_image():
img = np.ones((10,10))
img[0,0] = np.nan
v = pg.image(img)
v.imageItem.getHistogram()
iv = pg.ImageView()
iv.setImage(img)
iv.show()
iv.getImageItem().getHistogram()
app.processEvents()
v.window().close()
iv.window().close()


def test_timeslide_snap():
Expand Down

0 comments on commit d191299

Please sign in to comment.