mirror of https://github.com/scrapy/scrapy.git
test_closespider fixed for python 2.6
This commit is contained in:
parent
461eace4af
commit
14e382ae48
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue