aboutsummaryrefslogtreecommitdiffstats
path: root/test/pathod/tservers.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/pathod/tservers.py')
-rw-r--r--test/pathod/tservers.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/pathod/tservers.py b/test/pathod/tservers.py
index a7c92964..8fad133a 100644
--- a/test/pathod/tservers.py
+++ b/test/pathod/tservers.py
@@ -8,7 +8,7 @@ import urllib
from mitmproxy.net import tcp
-from mitmproxy.test import tutils
+from mitmproxy.utils import data
from pathod import language
from pathod import pathoc
@@ -17,6 +17,9 @@ from pathod import test
from pathod.pathod import CA_CERT_NAME
+cdata = data.Data(__name__)
+
+
def treader(bytes):
"""
Construct a tcp.Read object from bytes.
@@ -41,7 +44,7 @@ class DaemonTests:
opts["confdir"] = cls.confdir
so = pathod.SSLOptions(**opts)
cls.d = test.Daemon(
- staticdir=tutils.test_data.path("pathod/data"),
+ staticdir=cdata.path("data"),
anchors=[
(re.compile("/anchor/.*"), "202:da")
],