mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-29 11:14:38 +08:00
Fix unittest
This commit is contained in:
1 parent
8b3a95c562
commit
fd805cb2ce
1 file changed
+1
-1
+1
-1
@@ -841,7 +841,7 @@ mod tests {
|
||||
use super::Compiler;
|
||||
fn compile_exec(source: &str) -> CodeObject {
|
||||
let mut compiler = Compiler::new();
|
||||
compiler.push_new_code_object(Option::None);
|
||||
compiler.push_new_code_object(Option::None, "<module>".to_string());
|
||||
let ast = parser::parse_program(&source.to_string()).unwrap();
|
||||
compiler.compile_program(&ast);
|
||||
compiler.pop_code_object()
|
||||
|
||||
Reference in new issue
Block a user