Skip to content

Commit 2c71e60

Browse files
committed
make io test working
1 parent f1b1828 commit 2c71e60

3 files changed

Lines changed: 254 additions & 117 deletions

File tree

test/cases/io.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import os
2+
import scorep.instrumenter
3+
4+
with scorep.instrumenter.enable("expect io"):
5+
with open("test.txt", "w") as f:
6+
f.write("test")
7+
8+
with open("test.txt", "r") as f:
9+
data = f.read()
10+
print(data)
11+
12+
os.remove("test.txt")
13+

test/cases/read.py

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)