test: don't use total_seconds() because of py2.6