mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-10 06:35:17 +00:00
Add source_path to ParseError
This commit is contained in:
parent
cf10e800a6
commit
03ccd4b9d8
7 changed files with 55 additions and 49 deletions
|
@ -2707,7 +2707,7 @@ mod tests {
|
|||
"source_path".to_owned(),
|
||||
"<module>".to_owned(),
|
||||
);
|
||||
let ast = parser::parse_program(source).unwrap();
|
||||
let ast = parser::parse_program(source, "<test>").unwrap();
|
||||
let symbol_scope = SymbolTable::scan_program(&ast).unwrap();
|
||||
compiler.compile_program(&ast, symbol_scope).unwrap();
|
||||
compiler.pop_code_object()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue