Skip to content

Commit

Permalink
Fix high DPI test (set env var in function)
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreRaybaut committed May 2, 2024
1 parent 599e38f commit 1dbe6e9
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions qwt/tests/test_highdpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@
from qwt.tests import utils
from qwt.tests.test_simple import SimplePlot

# Performance should be the same with "1" and "2" scale factors:
# (as of today, this is not the case, but it has to be fixed in the future:
# https://github.com/PlotPyStack/PythonQwt/issues/83)
os.environ["QT_SCALE_FACTOR"] = "2"


class HighDPIPlot(SimplePlot):
NUM_POINTS = 5000000 # 5 million points needed to test high DPI support
Expand All @@ -28,6 +23,12 @@ class HighDPIPlot(SimplePlot):
@pytest.mark.skip(reason="This test is not relevant for the automated test suite")
def test_highdpi():
"""Test high DPI support"""

# Performance should be the same with "1" and "2" scale factors:
# (as of today, this is not the case, but it has to be fixed in the future:
# https://github.com/PlotPyStack/PythonQwt/issues/83)
os.environ["QT_SCALE_FACTOR"] = "2"

utils.test_widget(HighDPIPlot, (800, 480))


Expand Down

0 comments on commit 1dbe6e9

Please sign in to comment.