This commit is contained in:
Florian Bruhin 2018-09-15 20:41:56 +02:00
parent abff44def6
commit f817e5d271

View File

@ -50,8 +50,8 @@ class Selection:
def check(self, expected, *, strip=False): def check(self, expected, *, strip=False):
"""Check whether we got the expected selection. """Check whether we got the expected selection.
Since (especially on Windows) the selection is empty if we're too Since (especially on Windows) the selection is empty if we're checking
quickly, we try to read it multiple times. too quickly, we try to read it multiple times.
""" """
for _ in range(10): for _ in range(10):
with self._qtbot.wait_signal( with self._qtbot.wait_signal(