Made tests more stable: repetitions are now done slower

This commit is contained in:
Holger Rapp 2010-08-17 17:05:35 +02:00
parent 564c2af59c
commit aede01607d

View File

@ -87,6 +87,8 @@ class _VimTest(unittest.TestCase):
wanted = wanted + "\n" + self.expected_error wanted = wanted + "\n" + self.expected_error
for i in range(4): for i in range(4):
if self.output != wanted: if self.output != wanted:
# Redo this, but slower
self.sleeptime += 0.02
self.setUp() self.setUp()
self.assertEqual(self.output, wanted) self.assertEqual(self.output, wanted)