Revert "Merge pull request #2106 from RustPython/coolreader18/unittest-tests"

This reverts commit 96926daf6ffa2a8dbb374b3c6169b378bd0d67ef, reversing
changes made to 230f91582f98ff74abeb8759718e49c386e2b398.
This commit is contained in:
Jeong YunWon 2020-08-20 04:01:25 +09:00
parent 7f0798b235
commit f9fe1c0423

View file

@ -479,9 +479,7 @@ impl<O: OutputStream> Compiler<O> {
self.compile_statements(body)?;
// sort of "stack up" the layers of with blocks:
// with a, b: body -> start_with(a) start_with(b) body() end_with(b) end_with(a)
for end_label in end_labels.into_iter().rev() {
for end_label in end_labels {
self.emit(Instruction::PopBlock);
self.emit(Instruction::EnterFinally);
self.set_label(end_label);