forked from Rust-related/RustPython
Fix clippy and unittest error
This commit is contained in:
@@ -1625,7 +1625,7 @@ mod tests {
|
||||
is_fstring: false,
|
||||
},
|
||||
Tok::String {
|
||||
value: String::from("raw\'"),
|
||||
value: String::from("raw\\'"),
|
||||
is_fstring: false,
|
||||
},
|
||||
Tok::String {
|
||||
|
||||
@@ -19,7 +19,7 @@ enum ShellExecResult {
|
||||
|
||||
fn shell_exec(vm: &VirtualMachine, source: &str, scope: Scope) -> ShellExecResult {
|
||||
match vm.compile(source, compile::Mode::Single, "<stdin>".to_owned()) {
|
||||
Ok(code) => match vm.run_code_obj(code, scope.clone()) {
|
||||
Ok(code) => match vm.run_code_obj(code, scope) {
|
||||
Ok(_val) => ShellExecResult::Ok,
|
||||
Err(err) => ShellExecResult::PyErr(err),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user