Skip to content

Commit 7574f5b

Browse files
steve-sAriouz
authored andcommitted
Fix remaining tests in test_timeit
1 parent ff7aa55 commit 7574f5b

File tree

2 files changed

+4
-0
lines changed
  • graalpython

2 files changed

+4
-0
lines changed

graalpython/com.oracle.graal.python.test/src/tests/unittest_tags_bytecode_dsl/test_timeit.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,5 @@ test.test_timeit.TestTimeit.test_timeit_function_zero_iters @ linux-x86_64
3737
test.test_timeit.TestTimeit.test_timeit_globals_args @ linux-x86_64
3838
test.test_timeit.TestTimeit.test_timeit_zero_iters @ linux-x86_64
3939
test.test_timeit.TestTimeit.test_timer_empty_stmt @ linux-x86_64
40+
test.test_timeit.TestTimeit.test_timer_invalid_setup @ linux-x86_64
41+
test.test_timeit.TestTimeit.test_timer_invalid_stmt @ linux-x86_64

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/compiler/bytecode_dsl/RootNodeCompiler.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,9 @@ private void visitModuleBody(StmtTy[] body, Builder b) {
790790
if (bodyNode instanceof StmtTy.Expr expr) {
791791
// Return the value of the last statement for interop eval.
792792
beginReturn(b);
793+
boolean closeTag = beginSourceSection(expr, b);
793794
expr.value.accept(statementCompiler);
795+
endSourceSection(b, closeTag);
794796
endReturn(b);
795797
} else {
796798
bodyNode.accept(statementCompiler);

0 commit comments

Comments
 (0)