Skip to content

Commit 41be6cc

Browse files
committed
Rename local variables in test
1 parent 45d7fe8 commit 41be6cc

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

scrapscript_tests.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1267,23 +1267,24 @@ def test_parenthesized_expression_preserves_source_extent(self) -> None:
12671267
left_paren.source_extent = SourceExtent(
12681268
start=SourceLocation(lineno=1, colno=1, byteno=0), end=SourceLocation(lineno=1, colno=1, byteno=0)
12691269
)
1270-
num = IntLit(1)
1271-
num.source_extent = SourceExtent(
1270+
int_lit = IntLit(1)
1271+
int_lit.source_extent = SourceExtent(
12721272
start=SourceLocation(lineno=1, colno=2, byteno=1), end=SourceLocation(lineno=1, colno=2, byteno=1)
12731273
)
12741274
right_paren = RightParen()
12751275
right_paren.source_extent = SourceExtent(
12761276
start=SourceLocation(lineno=1, colno=3, byteno=2), end=SourceLocation(lineno=1, colno=3, byteno=2)
12771277
)
1278-
parenthesized_num = make_source_annotated_object(
1278+
parenthesized_int_lit = make_source_annotated_object(
12791279
Int,
12801280
SourceExtent(
12811281
start=SourceLocation(lineno=1, colno=1, byteno=0), end=SourceLocation(lineno=1, colno=3, byteno=2)
12821282
),
12831283
1,
12841284
)
12851285
self.assertTrue(
1286-
parse(Peekable(iter([left_paren, num, right_paren]))).source_extent == parenthesized_num.source_extent
1286+
parse(Peekable(iter([left_paren, int_lit, right_paren]))).source_extent
1287+
== parenthesized_int_lit.source_extent
12871288
)
12881289

12891290
def test_parse_spread_preserves_source_extent(self) -> None:

0 commit comments

Comments
 (0)