summaryrefslogtreecommitdiff
path: root/tests/lint
diff options
context:
space:
mode:
authorJacob Walls <jacobtylerwalls@gmail.com>2021-12-11 03:10:28 -0500
committerGitHub <noreply@github.com>2021-12-11 09:10:28 +0100
commitbd55b27d41542e3ca1f031f986b6151f6cac457f (patch)
tree4600946172fe87d234cae6cf784ee66734cf3362 /tests/lint
parenta51a5486ebff7543ae4fb6943fac2558947fa974 (diff)
downloadpylint-git-bd55b27d41542e3ca1f031f986b6151f6cac457f.tar.gz
Fix #4761: Emit `used-before-assignment` where single assignment only made in except blocks (#5402)
Co-authored-by: Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Diffstat (limited to 'tests/lint')
-rw-r--r--tests/lint/test_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lint/test_utils.py b/tests/lint/test_utils.py
index f7294f353..44703982e 100644
--- a/tests/lint/test_utils.py
+++ b/tests/lint/test_utils.py
@@ -15,7 +15,7 @@ def test_prepare_crash_report(tmp_path: PosixPath) -> None:
template_path = prepare_crash_report(
ex, str(python_file), str(tmp_path / "pylint-crash-%Y.txt")
)
- assert str(tmp_path) in str(template_path)
+ assert str(tmp_path) in str(template_path) # pylint: disable=used-before-assignment
with open(template_path, encoding="utf8") as f:
template_content = f.read()
assert python_content in template_content