Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix PR 8138 CI failures
  • Loading branch information
youknowone committed Jun 25, 2026
commit 113992e7fbe7317a0f809f14c97b1bd88c58bad5
1 change: 0 additions & 1 deletion Lib/test/test_audit.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ def test_monkeypatch(self):
def test_open(self):
self.do_test("test_open", os_helper.TESTFN)

@unittest.expectedFailure # TODO: RUSTPYTHON
def test_cantrace(self):
self.do_test("test_cantrace")

Expand Down
1 change: 0 additions & 1 deletion Lib/test/test_sys_setprofile.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ def g(p):
(1, 'return', g_ident),
])

@unittest.expectedFailure # TODO: RUSTPYTHON
def test_exception_propagation(self):
def f(p):
1/0
Expand Down
7 changes: 4 additions & 3 deletions crates/codegen/src/compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14141,9 +14141,10 @@ mod tests {
ruff_python_ast::Mod::Module(stmts) => stmts,
_ => unreachable!(),
};
let symbol_table = SymbolTable::scan_program(&ast, source_file.clone())
.map_err(|e| e.into_codegen_error(source_file.name().to_owned()))
.unwrap();
let symbol_table = match SymbolTable::scan_program(&ast, source_file.clone()) {
Ok(symbol_table) => symbol_table,
Err(err) => return err.into_codegen_error(source_file.name().to_owned()),
};
let mut compiler =
Compiler::new_with_syntax_warning_handler(opts, source_file, "<module>", None);
compiler.compile_program(&ast, symbol_table).unwrap_err()
Expand Down