Skip to content

Commit 1845044

Browse files
authored
Merge branch 'main' into isolated-diff-test
2 parents 7ab14fc + c70f114 commit 1845044

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/inline/plugin.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1247,9 +1247,7 @@ def parse_inline_test(self, node):
12471247
elif call.func.attr == self.diff_given_str:
12481248
self.parse_diff_given(call)
12491249
inline_test_call_index += 1
1250-
else:
1251-
break
1252-
1250+
12531251
for import_stmt in import_calls:
12541252
self.cur_inline_test.import_stmts.append(import_stmt)
12551253
for import_stmt in import_from_calls:

tests/test_plugin.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ def m(a):
6565
for x in (pytester.path, checkfile):
6666
items, reprec = pytester.inline_genitems(x)
6767
assert len(items) == 0
68-
69-
68+
7069
def test_inline_malformed_given(self, pytester: Pytester):
7170
checkfile = pytester.makepyfile(
7271
"""

0 commit comments

Comments
 (0)