From b73afc8e3d89df143ce686c7086939710ebf29c3 Mon Sep 17 00:00:00 2001 From: Claudiu Popa Date: Thu, 14 May 2020 08:39:40 +0200 Subject: `continue-in-finally` no longer emitted on Python 3.8 where it's now valid Close #3612 --- ChangeLog | 4 ++++ pylint/checkers/base.py | 1 + tests/functional/c/continue_in_finally.rc | 2 ++ 3 files changed, 7 insertions(+) create mode 100644 tests/functional/c/continue_in_finally.rc diff --git a/ChangeLog b/ChangeLog index 4492c007c..1cb53f6d0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -30,6 +30,10 @@ Release date: TBA Close #3600 +* `continue-in-finally` no longer emitted on Python 3.8 where it's now valid + + Close #3612 + What's New in Pylint 2.5.2? =========================== diff --git a/pylint/checkers/base.py b/pylint/checkers/base.py index fc8587e3d..582b0fdeb 100644 --- a/pylint/checkers/base.py +++ b/pylint/checkers/base.py @@ -541,6 +541,7 @@ class BasicErrorChecker(_BasicChecker): "continue-in-finally", "Emitted when the `continue` keyword is found " "inside a finally clause, which is a SyntaxError.", + {"maxversion": (3, 8)}, ), "E0117": ( "nonlocal name %s found without binding", diff --git a/tests/functional/c/continue_in_finally.rc b/tests/functional/c/continue_in_finally.rc new file mode 100644 index 000000000..67a28a36a --- /dev/null +++ b/tests/functional/c/continue_in_finally.rc @@ -0,0 +1,2 @@ +[testoptions] +max_pyver=3.8 -- cgit v1.2.1