diff options
author | Emile Anclin <emile.anclin@logilab.fr> | 2010-11-04 12:00:07 +0100 |
---|---|---|
committer | Emile Anclin <emile.anclin@logilab.fr> | 2010-11-04 12:00:07 +0100 |
commit | 5010f6cd170b8902286d2984ea1457c415d0c87e (patch) | |
tree | 7a211797c38483d27fabb2e914935ba07f581bd1 /test/unittest_shellutils.py | |
parent | 8cceca1baa01a39fb38c87757e36b7b0258bff55 (diff) | |
download | logilab-common-5010f6cd170b8902286d2984ea1457c415d0c87e.tar.gz |
[tests] make tests independent from cwd
Diffstat (limited to 'test/unittest_shellutils.py')
-rw-r--r-- | test/unittest_shellutils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unittest_shellutils.py b/test/unittest_shellutils.py index 444e75e..10a51c0 100644 --- a/test/unittest_shellutils.py +++ b/test/unittest_shellutils.py @@ -18,7 +18,7 @@ """unit tests for logilab.common.shellutils""" import sys, os, tempfile, shutil -from os.path import join +from os.path import join, dirname, abspath import datetime, time from StringIO import StringIO @@ -30,7 +30,7 @@ from logilab.common.shellutils import (globfind, find, ProgressBar, from logilab.common.compat import str_to_bytes from logilab.common.proc import NoSuchProcess -DATA_DIR = join('data','find_test') +DATA_DIR = join(dirname(abspath(__file__)), 'data', 'find_test') class FindTC(TestCase): def test_include(self): |