summaryrefslogtreecommitdiffhomepage
path: root/tests/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/util.py')
-rw-r--r--tests/util.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/util.py b/tests/util.py
index 0639f8ae..2f1c5ac2 100644
--- a/tests/util.py
+++ b/tests/util.py
@@ -1,6 +1,7 @@
from os.path import dirname, realpath, join
import builtins
import os
+from pathlib import Path
import struct
import sys
import unittest
@@ -18,7 +19,10 @@ tests_dir = dirname(realpath(__file__))
def _support(filename):
- return join(tests_dir, filename)
+ base = Path(tests_dir)
+ top = base / filename
+ deeper = base / "_support" / filename
+ return str(deeper if deeper.exists() else top)
def _config(name):