diff options
| author | Emile Anclin <emile.anclin@logilab.fr> | 2010-11-04 15:56:15 +0100 |
|---|---|---|
| committer | Emile Anclin <emile.anclin@logilab.fr> | 2010-11-04 15:56:15 +0100 |
| commit | a1d7362cb39cd7644d3476111a49c7c7fb7d30cf (patch) | |
| tree | dba31fee1eed68949bfb35869483abc5c0f4d626 /test/utils.py | |
| parent | 6ba4a8b8ecb47b2d382616385f84eb60cca81615 (diff) | |
| download | pylint-git-a1d7362cb39cd7644d3476111a49c7c7fb7d30cf.tar.gz | |
test: make tests independent of current working directory
Diffstat (limited to 'test/utils.py')
| -rw-r--r-- | test/utils.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/utils.py b/test/utils.py index 3ae8f8925..4cbac92b1 100644 --- a/test/utils.py +++ b/test/utils.py @@ -73,8 +73,7 @@ class TestReporter(BaseReporter): # # # # # pyreverse unittest utilities # # # # # # - -import unittest +from logilab.common.testlib import TestCase import os import sys from os.path import join @@ -116,13 +115,13 @@ class Config(object): for attr, value in DEFAULTS.items(): setattr(self, attr, value) -class FileTC(unittest.TestCase): +class FileTC(TestCase): """base test case for testing file output""" generated_files = () def setUp(self): - self.expected_files = [join('data', file) + self.expected_files = [join(dirname(abspath(__file__)), 'data', file) for file in self.generated_files] def tearDown(self): |
