diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-06-16 21:06:01 +0200 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-06-17 13:45:42 +0200 |
commit | 4dfaddf58129f1718340bf3b513a0270fe749354 (patch) | |
tree | a8a5ddcce96841e8092387a33fe37017b24f5ef2 | |
parent | 0f08e2e52baf46498c0b2ae19dadb1144eb70295 (diff) | |
download | pylint-git-4dfaddf58129f1718340bf3b513a0270fe749354.tar.gz |
Fix update a functional test with no expected output
It was impossible to generate a functional output from nothing
-rw-r--r-- | tests/test_functional.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_functional.py b/tests/test_functional.py index c23aee84d..c42cb0c38 100644 --- a/tests/test_functional.py +++ b/tests/test_functional.py @@ -55,7 +55,7 @@ class LintModuleOutputUpdate(testutils.LintModuleTest): def _check_output_text(self, _, expected_output, actual_output): if expected_output and expected_output == actual_output: return - if not expected_output: + if not expected_output and not actual_output: if os.path.exists(self._test_file.expected_output): os.remove(self._test_file.expected_output) return |