[PATCH 40/55] Fix use of iso8601.Utc.

Jelmer Vernooij jelmer at samba.org
Fri Feb 6 12:04:12 MST 2015


Change-Id: Id592571a173eff36e2fb9b395f61a6fb53d580e6
Signed-off-by: Jelmer Vernooij <jelmer at samba.org>
---
 selftest/run.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/selftest/run.py b/selftest/run.py
index b7638f0..8a0e7ca 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):
-- 
2.1.4



More information about the samba-technical mailing list