diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2020-04-20 14:30:32 +0200 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2020-04-20 21:58:08 +0200 |
commit | 7f2b98acdd5e0d69bb662af751cfe16550b2697f (patch) | |
tree | 395c7e0647853d986563d77746e26564de66fb29 /tests/test_self.py | |
parent | 20d41aef7dac4305468b81872df9f44830ecb8d9 (diff) | |
download | pylint-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.py | 2 |
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) |