summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/run.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/run.py b/tests/run.py
index ef92fe09..68303cdb 100644
--- a/tests/run.py
+++ b/tests/run.py
@@ -25,7 +25,8 @@ if sys.version_info >= (3,):
os.chdir(newroot)
else:
# only find tests in this directory
- os.chdir(os.path.dirname(__file__))
+ if os.path.dirname(__file__):
+ os.chdir(os.path.dirname(__file__))
try: