Skip to content

Commit

Permalink
Merge pull request #2687 from j9ac9k/fudge_for_new_macos
Browse files Browse the repository at this point in the history
Allow macOS to have fudge factor in test_polyROI
  • Loading branch information
j9ac9k committed Apr 13, 2023
2 parents 35a897b + 8b7a4f2 commit e98dbaa
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/graphicsItems/test_ROI.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

import numpy as np
import pytest
from packaging.version import Version, parse

import pyqtgraph as pg
from pyqtgraph.Qt import QtCore, QtGui, QtTest
Expand Down Expand Up @@ -326,8 +327,12 @@ def test_PolyLineROI():

# call setPoints
r.setPoints(initState['points'])
assertImageApproved(plt, 'roi/polylineroi/' + name + '_setpoints',
'Reset points to initial state.')
assertImageApproved(
plt,
f'roi/polylineroi/{name}_setpoints',
'Reset points to initial state.',
pxCount=1 if platform.system() == "Darwin" and parse(platform.mac_ver()[0]) >= Version("13.0") else 0
)
assert len(r.getState()['points']) == 3

# call setState
Expand Down

0 comments on commit e98dbaa

Please sign in to comment.