Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 33dc4d8

Browse filesBrowse files
committed
Update comment
1 parent 53ba444 commit 33dc4d8
Copy full SHA for 33dc4d8

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed

‎Lib/test/test_compile.py

Copy file name to clipboardExpand all lines: Lib/test/test_compile.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1182,7 +1182,8 @@ def test_complex_single_line_expression(self):
11821182
line=1, end_line=1, column=0, end_column=27, occurrence=4)
11831183

11841184
def test_multiline_assert_rewritten_as_method_call(self):
1185-
# GH-94694
1185+
# GH-94694: Copying location information from a "real" node to a
1186+
# handwritten one should always be valid!
11861187
tree = ast.parse("assert (\n42\n)")
11871188
old_node = tree.body[0]
11881189
new_node = ast.Expr(

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.