diff options
Diffstat (limited to 'pylint/test')
-rw-r--r-- | pylint/test/regrtest_data/dummy/__init__.py | 3 | ||||
-rw-r--r-- | pylint/test/regrtest_data/dummy/another.py | 4 | ||||
-rw-r--r-- | pylint/test/regrtest_data/dummy/dummy.py | 2 | ||||
-rw-r--r-- | pylint/test/test_self.py | 7 |
4 files changed, 15 insertions, 1 deletions
diff --git a/pylint/test/regrtest_data/dummy/__init__.py b/pylint/test/regrtest_data/dummy/__init__.py new file mode 100644 index 0000000..0b43a70 --- /dev/null +++ b/pylint/test/regrtest_data/dummy/__init__.py @@ -0,0 +1,3 @@ +# pylint: disable=missing-docstring +from .dummy import DUMMY +from .another import ANOTHER diff --git a/pylint/test/regrtest_data/dummy/another.py b/pylint/test/regrtest_data/dummy/another.py new file mode 100644 index 0000000..046b447 --- /dev/null +++ b/pylint/test/regrtest_data/dummy/another.py @@ -0,0 +1,4 @@ +# pylint: disable=missing-docstring + +ANOTHER = 42 + diff --git a/pylint/test/regrtest_data/dummy/dummy.py b/pylint/test/regrtest_data/dummy/dummy.py new file mode 100644 index 0000000..60345dc --- /dev/null +++ b/pylint/test/regrtest_data/dummy/dummy.py @@ -0,0 +1,2 @@ +# pylint: disable=missing-docstring +DUMMY = 42 diff --git a/pylint/test/test_self.py b/pylint/test/test_self.py index 69b739c..fae6403 100644 --- a/pylint/test/test_self.py +++ b/pylint/test/test_self.py @@ -288,7 +288,12 @@ class RunTC(unittest.TestCase): actual_output = out.getvalue() self.assertEqual(expected_output.strip(), actual_output.strip()) - + def test_import_itself_not_accounted_for_relative_imports(self): + expected = 'No config file found, using default configuration' + package = join(HERE, 'regrtest_data', 'dummy') + self._test_output([package, '--disable=locally-disabled', '-rn'], + expected_output=expected) + if __name__ == '__main__': |