summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorsten Marek <shlomme@gmail.com>2014-11-12 23:25:00 +0100
committerTorsten Marek <shlomme@gmail.com>2014-11-12 23:25:00 +0100
commit98b24b0c7220c5eb39431d4f14b3da2c83d53029 (patch)
tree409e55ec8851011c82184b5701446d0a798ffa5c
parentf1a5add4863066d5a87c7f2a9dea9715bfcc496b (diff)
downloadastroid-98b24b0c7220c5eb39431d4f14b3da2c83d53029.tar.gz
Don't use self imports in tests since those are susceptible to CWD changes.
-rw-r--r--astroid/tests/unittest_modutils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/astroid/tests/unittest_modutils.py b/astroid/tests/unittest_modutils.py
index ef467a4..a17b837 100644
--- a/astroid/tests/unittest_modutils.py
+++ b/astroid/tests/unittest_modutils.py
@@ -222,8 +222,8 @@ class IsRelativeTest(unittest.TestCase):
def test_knownValues_is_relative_1(self):
- import astroid
- self.assertEqual(modutils.is_relative('modutils', astroid.__path__[0]),
+ import email
+ self.assertEqual(modutils.is_relative('utils', email.__path__[0]),
True)
def test_knownValues_is_relative_2(self):