Skip to content

Commit af9580e

Browse files
committed
Removed obsolete TODOs
1 parent c8dc5c6 commit af9580e

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

plotpy/tests/gui/test_benchmarks.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
"""plotpy plot benchmarking"""
77

8-
98
import time
109

1110
import guidata
@@ -142,8 +141,6 @@ def test_benchmarks():
142141
# Run benchmarks
143142
persist = []
144143
with qt_app_context(exec_loop=True):
145-
# FIXME: Error 'BasePlot' object has no attribute '_QwtPlot__data', when moving
146-
# plot widget position in the screen
147144
for benchmark in (
148145
CurveBM("Simple curve", 5e6),
149146
CurveBM("Curve with markers", 2e5, marker="Ellipse", markersize=10),

plotpy/tests/unit/test_plot_image.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -112,22 +112,9 @@ def test_set_aspect_ratio(qtbot, ratio):
112112
plot.add_item(item, autoscale=False)
113113
win.show()
114114
qtbot.addWidget(win)
115-
116115
x0, x1, y0, y1 = plot.get_plot_limits()
117-
original_width = abs(x1 - x0)
118-
original_height = abs(y1 - y0)
119-
120116
plot.set_aspect_ratio(ratio, True)
121117
assert plot.get_aspect_ratio() == ratio
122-
x0, x1, y0, y1 = plot.get_plot_limits()
123-
width = abs(x1 - x0)
124-
height = abs(y1 - y0)
125-
# XXX: This is tested with gui, it depends on x/y image ration
126-
# assert original_width != width
127-
# assert original_height / height == pytest.approx(ratio)
128-
# assert original_height == height
129-
# assert width / original_width == pytest.approx(ratio)
130-
131118
qtbot.keyClick(win, Qt.Key_Enter)
132119

133120

@@ -152,6 +139,5 @@ def test_colormap_tool(qtbot):
152139
assert item.get_color_map_name() == "Accent"
153140
accent_img = plot.grab().toImage()
154141
assert jet_img != accent_img
155-
# TODO: Check colormap of accent_img
156142

157143
qtbot.keyClick(win, Qt.Key_Enter)

0 commit comments

Comments
 (0)