summaryrefslogtreecommitdiff
path: root/tests/test_self.py
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2020-04-20 14:30:32 +0200
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2020-04-20 21:58:08 +0200
commit7f2b98acdd5e0d69bb662af751cfe16550b2697f (patch)
tree395c7e0647853d986563d77746e26564de66fb29 /tests/test_self.py
parent20d41aef7dac4305468b81872df9f44830ecb8d9 (diff)
downloadpylint-git-7f2b98acdd5e0d69bb662af751cfe16550b2697f.tar.gz
Get rid of a bunch of yoda conditions in tests (misplaced-comparison-constant)
Diffstat (limited to 'tests/test_self.py')
-rw-r--r--tests/test_self.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_self.py b/tests/test_self.py
index 48ff7bdf3..94fdfbd66 100644
--- a/tests/test_self.py
+++ b/tests/test_self.py
@@ -205,7 +205,7 @@ class TestRunTC:
out = StringIO()
with pytest.raises(IOError) as excinfo:
self._run_pylint(["--rcfile=/tmp/norcfile.txt"], out=out)
- assert "The config file /tmp/norcfile.txt doesn't exist!" == str(excinfo.value)
+ assert str(excinfo.value) == "The config file /tmp/norcfile.txt doesn't exist!"
def test_help_message_option(self):
self._runtest(["--help-msg", "W0101"], code=0)