diff options
author | Bryce Guinta <bryce.paul.guinta@gmail.com> | 2017-11-02 06:46:58 -0600 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2017-11-02 13:46:58 +0100 |
commit | 6df6ff8a23e79f24968a781f87c41a893f5929d8 (patch) | |
tree | 8efea9683ce734764930e1e3aa4da56e98f34714 | |
parent | dd78aedcf0f499188ad8232f2193ba62c791d33e (diff) | |
download | pylint-git-6df6ff8a23e79f24968a781f87c41a893f5929d8.tar.gz |
Fix test from failing when user has ~/.pylintrc (#1720)
-rw-r--r-- | pylint/test/test_self.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pylint/test/test_self.py b/pylint/test/test_self.py index f8e5a4cfc..acb7f7aea 100644 --- a/pylint/test/test_self.py +++ b/pylint/test/test_self.py @@ -269,6 +269,10 @@ class TestRunTC(object): to_remove = "No config file found, using default configuration" if to_remove in actual_output: actual_output = actual_output[len(to_remove):] + if actual_output.startswith("Using config file "): + # If ~/.pylintrc is present remove the + # Using config file... line + actual_output = actual_output[actual_output.find("\n"):] assert expected_output.strip() == actual_output.strip() def test_import_itself_not_accounted_for_relative_imports(self): |