Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d502a07

Browse files
committed
test_ast: pass the filename to ast.parse()
1 parent 6d3d0fe commit d502a07

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_ast.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,7 @@ def test_stdlib_validates(self):
947947
fn = os.path.join(stdlib, module)
948948
with open(fn, "r", encoding="utf-8") as fp:
949949
source = fp.read()
950-
mod = ast.parse(source)
950+
mod = ast.parse(source, fn)
951951
compile(mod, fn, "exec")
952952

953953

0 commit comments

Comments
 (0)