Skip to content

Commit 1dbe6e9

Browse files
committed
Fix high DPI test (set env var in function)
1 parent 599e38f commit 1dbe6e9

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

qwt/tests/test_highdpi.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@
1515
from qwt.tests import utils
1616
from qwt.tests.test_simple import SimplePlot
1717

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

2419
class HighDPIPlot(SimplePlot):
2520
NUM_POINTS = 5000000 # 5 million points needed to test high DPI support
@@ -28,6 +23,12 @@ class HighDPIPlot(SimplePlot):
2823
@pytest.mark.skip(reason="This test is not relevant for the automated test suite")
2924
def test_highdpi():
3025
"""Test high DPI support"""
26+
27+
# Performance should be the same with "1" and "2" scale factors:
28+
# (as of today, this is not the case, but it has to be fixed in the future:
29+
# https://github.com/PlotPyStack/PythonQwt/issues/83)
30+
os.environ["QT_SCALE_FACTOR"] = "2"
31+
3132
utils.test_widget(HighDPIPlot, (800, 480))
3233

3334

0 commit comments

Comments
 (0)