mirror of
https://github.com/jopohl/urh.git
synced 2026-03-24 17:07:01 +01:00
increase threshold for performance test
This commit is contained in:
@@ -51,7 +51,7 @@ class TestGeneratorTable(unittest.TestCase):
|
||||
t = time.time()
|
||||
self.gframe.table_model.data(indx, role = role)
|
||||
microseconds = (time.time() - t) * 10 ** 6
|
||||
self.assertLessEqual(microseconds, 1.75 * time_for_display, msg=self.__role_to_str(role))
|
||||
self.assertLessEqual(microseconds, 2 * time_for_display, msg=self.__role_to_str(role))
|
||||
if role == Qt.DisplayRole:
|
||||
time_for_display = microseconds
|
||||
print("{0}: {1} µs".format(self.__role_to_str(role), microseconds))
|
||||
|
||||
Reference in New Issue
Block a user