Skip to content

Commit

Permalink
Ignore warnings for specific tests due to corner case situtation
Browse files Browse the repository at this point in the history
  • Loading branch information
t20100 committed Apr 19, 2024
1 parent be6143d commit c6d913b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/silx/gui/plot/test/testPlotWidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -1530,6 +1530,7 @@ def testBoundingRectArguments(self):
with self.assertRaises(Exception):
item.setBounds((-1000, 1000, 2000, -2000))

@pytest.mark.filterwarnings("ignore:Attempting to set identical low and high ylims makes transformation singular; automatically expanding.:UserWarning")
def testBoundingRectWithLog(self):
item = BoundingRect()
self.plot.addItem(item)
Expand All @@ -1549,6 +1550,7 @@ def testBoundingRectWithLog(self):
self.plot.getYAxis()._setLogarithmic(False)
self.assertIsNone(item.getBounds())

@pytest.mark.filterwarnings("ignore:Attempting to set identical low and high ylims makes transformation singular; automatically expanding.:UserWarning")
def testAxisExtent(self):
"""Test XAxisExtent and yAxisExtent"""
for cls, axis in (
Expand Down Expand Up @@ -2054,6 +2056,7 @@ class TestSpecial_ExplicitMplBackend(TestSpecialBackend):
backend = "mpl"


@pytest.mark.filterwarnings("ignore:All-NaN slice encountered:RuntimeWarning")
@pytest.mark.parametrize("plotWidget", ("mpl", "gl"), indirect=True)
@pytest.mark.parametrize(
"xerror,yerror",
Expand Down

0 comments on commit c6d913b

Please sign in to comment.