[Python-modules-commits] [pydot] 02/08: allow to run unittest from any directory
Sandro Tosi
morph at moszumanska.debian.org
Sat Nov 25 22:00:16 UTC 2017
This is an automated email from the git hooks/post-receive script.
morph pushed a commit to branch master
in repository pydot.
commit bc0a7f44c8c6bae6835b590d720577e0c6062278
Author: Sandro Tosi <morph at debian.org>
Date: Sat Nov 25 16:28:09 2017 -0500
allow to run unittest from any directory
---
test/pydot_unittest.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/pydot_unittest.py b/test/pydot_unittest.py
index 97e252a..1e3a3cb 100644
--- a/test/pydot_unittest.py
+++ b/test/pydot_unittest.py
@@ -20,7 +20,7 @@ import unittest
DOT_BINARY_PATH = 'dot'
-TEST_DIR = './'
+TEST_DIR = os.path.dirname(sys.argv[0])
REGRESSION_TESTS_DIR = os.path.join(TEST_DIR, 'graphs')
MY_REGRESSION_TESTS_DIR = os.path.join(TEST_DIR, 'my_tests')
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/pydot.git
More information about the Python-modules-commits
mailing list