summaryrefslogtreecommitdiff
path: root/selftest/run.py
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2014-12-15 00:51:32 +0000
committerAndrew Bartlett <abartlet@samba.org>2015-03-06 04:41:48 +0100
commit495e980fcd82bcaba8b4d341e699355533769ffe (patch)
tree058e3ba0eb365cd7b752b91d8bb76050167a67de /selftest/run.py
parentb2af53db74dcf6f4cfc9aa486ad3b0d14d64b5fd (diff)
downloadsamba-495e980fcd82bcaba8b4d341e699355533769ffe.tar.gz
Fix use of iso8601.Utc.
Change-Id: Id592571a173eff36e2fb9b395f61a6fb53d580e6 Signed-off-by: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'selftest/run.py')
-rw-r--r--selftest/run.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/selftest/run.py b/selftest/run.py
index b7638f0daa8..8a0e7ca6c41 100644
--- a/selftest/run.py
+++ b/selftest/run.py
@@ -21,6 +21,7 @@ import datetime
import os
import subprocess
from samba import subunit
+from iso8601 import iso8601
import sys
import tempfile
import warnings
@@ -88,7 +89,7 @@ def exported_envvars_str(vars, names):
def now():
"""Return datetime instance for current time in UTC.
"""
- return datetime.datetime.utcnow().replace(tzinfo=subunit.UTC())
+ return datetime.datetime.utcnow().replace(tzinfo=iso8601.Utc())
def run_testsuite_command(name, cmd, subunit_ops, env=None, outf=None):