From c1014e00ca852483ff10e0c6fa92e935d5d8fd41 Mon Sep 17 00:00:00 2001 From: micbou Date: Wed, 6 Jun 2018 15:59:07 +0200 Subject: [PATCH] Fix flow analysis test There is no seekable method for file objects on Python 2. Use flush instead. --- test/completion/flow_analysis.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/completion/flow_analysis.py b/test/completion/flow_analysis.py index 60fb94e8..3eb50d5e 100644 --- a/test/completion/flow_analysis.py +++ b/test/completion/flow_analysis.py @@ -31,8 +31,8 @@ finally: if False: with open("") as defined_in_false: - #? ['seekable'] - defined_in_false.seekab + #? ['flush'] + defined_in_false.flu # ----------------- # Return checks