Skip to content

Commit da95579

Browse files
committed
benchmarks: using guidata's get_python_libs_infos
1 parent af9580e commit da95579

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

plotpy/tests/gui/test_benchmarks.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,10 @@
99

1010
import guidata
1111
import numpy as np
12-
import qtpy
1312
from guidata.qthelpers import qt_app_context
14-
from qtpy import QtCore as QC
13+
from guidata.widgets import about
1514
from qtpy import QtWidgets as QW
1615

17-
import plotpy
1816
from plotpy.builder import make
1917
from plotpy.plot import PlotOptions, PlotWindow
2018

@@ -127,11 +125,7 @@ def compute_data(self):
127125
def test_benchmarks():
128126
"""Run benchmark"""
129127
# Print(informations banner)
130-
131-
qt_lib = "PyQt5"
132-
title = "plotpy plot benchmark [{} v{} (Qt v{}), plotpy v{}]".format(
133-
qt_lib, QC.PYQT_VERSION_STR, qtpy.QT_VERSION, plotpy.__version__
134-
)
128+
title = f"PlotPy plot benchmark [{about.get_python_libs_infos()}]"
135129
print(title)
136130
print("-" * len(title))
137131
print()

0 commit comments

Comments
 (0)