From bf9a3a4ca83b107d45b94d726b7ed36972e9da86 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Wed, 26 Feb 2020 00:24:27 +0100 Subject: [PATCH] Rewrite an extract test to make them more diverse --- test/refactor/extract_function.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/test/refactor/extract_function.py b/test/refactor/extract_function.py index 812ca5ed..103f7d6e 100644 --- a/test/refactor/extract_function.py +++ b/test/refactor/extract_function.py @@ -245,10 +245,9 @@ def x(v1): # -------------------------------------------------- with-range-func-2 import os # comment1 -@dec # comment2 def x(v1): - #? 2 text {'new_name': 'a', 'until_line': 11, 'until_column': 0} + #? 2 text {'new_name': 'a', 'until_line': 10, 'until_column': 0} #foo v2 = 2 if 1: @@ -259,6 +258,7 @@ x # ++++++++++++++++++++++++++++++++++++++++++++++++++ import os # comment1 +# comment2 def a(v1, v2, v3): #foo v2 = 2 @@ -268,10 +268,8 @@ def a(v1, v2, v3): return y -@dec -# comment2 def x(v1): - #? 2 text {'new_name': 'a', 'until_line': 11, 'until_column': 0} + #? 2 text {'new_name': 'a', 'until_line': 10, 'until_column': 0} y = a(v1, v2, v3) return y x