Skip to content

Commit f7b2660

Browse files
authored
Fix test_asyncio for windows (#6959)
1 parent c649979 commit f7b2660

2 files changed

Lines changed: 16 additions & 3 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ env:
2929
# test_posixpath: OSError: (22, 'The filename, directory name, or volume label syntax is incorrect. (os error 123)')
3030
# test_venv: couple of failing tests
3131
WINDOWS_SKIPS: >-
32-
test_asyncio
3332
test_glob
3433
test_rlcompleter
3534
test_pathlib

crates/codegen/src/compile.rs

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2952,7 +2952,12 @@ impl Compiler {
29522952
target: cleanup_end
29532953
}
29542954
);
2955-
self.push_fblock(FBlockType::HandlerCleanup, cleanup_end, cleanup_end)?;
2955+
self.push_fblock_full(
2956+
FBlockType::HandlerCleanup,
2957+
cleanup_end,
2958+
cleanup_end,
2959+
FBlockDatum::ExceptionName(name.as_ref().unwrap().as_str().to_owned()),
2960+
)?;
29562961
Some(cleanup_end)
29572962
} else {
29582963
// no SETUP_CLEANUP for unnamed handler
@@ -3324,7 +3329,16 @@ impl Compiler {
33243329
target: handler_except_block
33253330
}
33263331
);
3327-
self.push_fblock(FBlockType::HandlerCleanup, next_block, end_block)?;
3332+
self.push_fblock_full(
3333+
FBlockType::HandlerCleanup,
3334+
next_block,
3335+
end_block,
3336+
if let Some(alias) = name {
3337+
FBlockDatum::ExceptionName(alias.as_str().to_owned())
3338+
} else {
3339+
FBlockDatum::None
3340+
},
3341+
)?;
33283342

33293343
// Execute handler body
33303344
self.compile_statements(body)?;

0 commit comments

Comments
 (0)