1
0
forked from VimPlug/jedi

Make refactoring tests a bit clearer

This commit is contained in:
Dave Halter
2020-02-11 10:08:36 +01:00
parent e43b0cec4a
commit 0697a39145
2 changed files with 9 additions and 9 deletions

View File

@@ -44,8 +44,8 @@ class RefactoringCase(object):
def _collect_file_tests(code, path, lines_to_execute):
r = r'^# -{5} ?([^\n]*)\n((?:(?!\n# \+{5}).)*\n)' \
r'# \+{5}\n((?:(?!\n# -{5}).)*\n)'
r = r'^# -{5,} ?([^\n]*)\n((?:(?!\n# \+{5,}).)*\n)' \
r'# \+{5,}\n((?:(?!\n# -{5,}).)*\n)'
for match in re.finditer(r, code, re.DOTALL | re.MULTILINE):
name = match.group(1).strip()
first = match.group(2)