test_closespider fixed for python 2.6

This commit is contained in:
nramirezuy 2013-05-30 10:57:06 -03:00
parent 461eace4af
commit 14e382ae48
1 changed files with 2 additions and 1 deletions

View File

@ -64,4 +64,5 @@ class TestCloseSpider(TestCase):
start = stats.get_value('start_time')
stop = stats.get_value('finish_time')
diff = stop - start
self.assertTrue(diff.total_seconds() >= close_on)
total_seconds = diff.seconds + diff.microseconds
self.assertTrue(total_seconds >= close_on)