From e18679274bdfce281cff60191793862bedf307b4 Mon Sep 17 00:00:00 2001 From: Ian Cordasco Date: Mon, 30 Jan 2017 11:08:30 -0600 Subject: Add regression test for nested definitions The bug was already fixed since it also affected E302 but this adds a test to ensure it doesn't regress for nested definitions either. Closes gh-619 --- testsuite/E30not.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/testsuite/E30not.py b/testsuite/E30not.py index 00bee95..6303b3b 100644 --- a/testsuite/E30not.py +++ b/testsuite/E30not.py @@ -158,3 +158,7 @@ defined_properly = True #: Okay defaults = {} defaults.update({}) +#: Okay +def foo(x): + classification = x + definitely = not classification -- cgit v1.2.1