summaryrefslogtreecommitdiffstats
path: root/testing/mozharness/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'testing/mozharness/scripts')
-rwxr-xr-xtesting/mozharness/scripts/desktop_unittest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/mozharness/scripts/desktop_unittest.py b/testing/mozharness/scripts/desktop_unittest.py
index 336f2c752b..b2bf44c2b2 100755
--- a/testing/mozharness/scripts/desktop_unittest.py
+++ b/testing/mozharness/scripts/desktop_unittest.py
@@ -12,7 +12,6 @@ author: Jordan Lund
import copy
import glob
-import imp
import json
import multiprocessing
import os
@@ -25,6 +24,7 @@ from datetime import datetime, timedelta
here = os.path.abspath(os.path.dirname(__file__))
sys.path.insert(1, os.path.dirname(here))
+from mozfile import load_source
from mozharness.base.errors import BaseErrorList
from mozharness.base.log import INFO, WARNING
from mozharness.base.script import PreScriptAction
@@ -1167,7 +1167,7 @@ class DesktopUnittest(TestingMixin, MercurialScript, MozbaseMixin, CodeCoverageM
)
if suite_category == "reftest":
- ref_formatter = imp.load_source(
+ ref_formatter = load_source(
"ReftestFormatter",
os.path.abspath(
os.path.join(dirs["abs_reftest_dir"], "output.py")