summaryrefslogtreecommitdiff
path: root/selftest/run.py
diff options
context:
space:
mode:
Diffstat (limited to 'selftest/run.py')
-rw-r--r--selftest/run.py5
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):