See https://github.com/travispavek/testrail-python/blob/master/testrail/result.py#L83 You should store a string suffixed with 's'. '%ds' % td.seconds