mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-05 15:27:38 +08:00
Test fixes and for loops need to be handled a awell in flow_analysis.
This commit is contained in:
@@ -269,7 +269,7 @@ class MethodDecoratorDoesntExist(Base):
|
||||
# -----------------
|
||||
def memoize(function):
|
||||
def wrapper(*args):
|
||||
if 1:
|
||||
if random.choice([0, 1]):
|
||||
pass
|
||||
else:
|
||||
rv = function(*args)
|
||||
|
||||
@@ -318,8 +318,8 @@ blub()[0]
|
||||
|
||||
# with else clause
|
||||
def blub():
|
||||
if 1:
|
||||
1
|
||||
if random.choice([0, 1]):
|
||||
1
|
||||
else:
|
||||
a = []
|
||||
a.append(1)
|
||||
|
||||
Reference in New Issue
Block a user