summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Liechti <cliechti@gmx.net>2016-10-06 20:23:52 +0200
committerChris Liechti <cliechti@gmx.net>2016-10-06 20:23:52 +0200
commit7fabc9c50cf94702d67365ddc04e191dfbdbeebb (patch)
treedb1954ea89b88e49c1f06296ce47afd133587ba3
parentd361d68867e14c8905e2fb1290c7e78bf73ba429 (diff)
downloadpyserial-git-7fabc9c50cf94702d67365ddc04e191dfbdbeebb.tar.gz
test: fix sys.path patch to run local tests
-rw-r--r--test/run_all_tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/run_all_tests.py b/test/run_all_tests.py
index c49dc53..e0797e7 100644
--- a/test/run_all_tests.py
+++ b/test/run_all_tests.py
@@ -15,7 +15,7 @@ import sys
import os
# inject local copy to avoid testing the installed version instead of the one in the repo
-sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))
+sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
import serial # noqa
print("Patching sys.path to test local version. Testing Version: {}".format(serial.VERSION))