Skip to content

Commit efeb57a

Browse files
committed
High DPI curve plot test: set env var in func
1 parent cad0539 commit efeb57a

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

plotpy/tests/items/test_curves_highdpi.py

+6-5
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,16 @@
1616
from plotpy.builder import make
1717
from plotpy.tests import vistools as ptv
1818

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

2520
@pytest.mark.skip(reason="This test is not relevant for the automated test suite")
2621
def test_plot_highdpi():
2722
"""Curve plotting test with high DPI"""
23+
24+
# Performance should be the same with "1" and "2" scale factors:
25+
# (as of today, this is not the case, but it has to be fixed in the future:
26+
# https://github.com/PlotPyStack/PlotPy/issues/10)
27+
os.environ["QT_SCALE_FACTOR"] = "2"
28+
2829
x = np.linspace(-10, 10, 5000000) # 5M points are needed to see the difference
2930
y = np.sin(np.sin(np.sin(x)))
3031
with qt_app_context(exec_loop=True):

0 commit comments

Comments
 (0)