diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2014-12-11 01:55:16 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2015-03-06 04:41:46 +0100 |
commit | 8487f4afc1b514942f90b8f384b11f2cd66565fc (patch) | |
tree | 2a0d19a5b9acf64674cc6bedd4e225776a0dec2b /selftest/run.py | |
parent | 9a1a34451f5c9fff702f43168e3d20df24acec41 (diff) | |
download | samba-8487f4afc1b514942f90b8f384b11f2cd66565fc.tar.gz |
Use Samba-only subunit module in selftest/tests/.
Change-Id: I48c61f975c1fa49f6e244ad39dd720fe507db45b
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.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/selftest/run.py b/selftest/run.py index 222ac8b1a8b..b7638f0daa8 100644 --- a/selftest/run.py +++ b/selftest/run.py @@ -18,10 +18,9 @@ """Test command running.""" import datetime -from subunit import iso8601 import os import subprocess -import subunit +from samba import subunit import sys import tempfile import warnings @@ -89,7 +88,7 @@ def exported_envvars_str(vars, names): def now(): """Return datetime instance for current time in UTC. """ - return datetime.datetime.utcnow().replace(tzinfo=iso8601.Utc()) + return datetime.datetime.utcnow().replace(tzinfo=subunit.UTC()) def run_testsuite_command(name, cmd, subunit_ops, env=None, outf=None): |