Skip to content

Commit 78ad091

Browse files
author
Elias Werner
committed
not sure if tests fixed
1 parent 87607e5 commit 78ad091

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

tests/kernel/multicell.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
- - "Multicell mode enabled. The following cells will be marked for instrumented execution."
44
-
55
- "c = np.sum(c_mtx)"
6-
- - "Cell marked for multicell mode. It will be executed at position 1"
6+
- - "Cell marked for multicell mode. It will be executed at position 0"
77
-
88
- "%%abort_multicellmode"
99
- - "Multicell mode aborted."
@@ -15,23 +15,23 @@
1515
with scorep.instrumenter.enable():
1616
c = np.sum(c_mtx)
1717
c_vec = np.arange(b, c)
18-
- - "Cell marked for multicell mode. It will be executed at position 1"
18+
- - "Cell marked for multicell mode. It will be executed at position 0"
1919
-
2020
- |-
2121
print('c =', c)
2222
print('Sum(c_vec) =', c_vec.sum())
23-
- - "Cell marked for multicell mode. It will be executed at position 2"
23+
- - "Cell marked for multicell mode. It will be executed at position 1"
2424
-
2525
- "%%finalize_multicellmode"
2626
- - "\0"
27-
- "Executing cell 1\n"
27+
- "Executing cell 0\n"
2828
- "with scorep.instrumenter.enable():\n"
2929
- " c = np.sum(c_mtx)\n"
3030
- "c_vec = np.arange(b, c)\n"
3131
- "----------------------------------\n"
3232
- "\n"
3333
- "\n"
34-
- "Executing cell 2\n"
34+
- "Executing cell 1\n"
3535
- "print('c =', c)\n"
3636
- "print('Sum(c_vec) =', c_vec.sum())\n"
3737
- "----------------------------------\n"

tests/test_kernel.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ def check_stream_output(self, code, expected_output, stream="stdout"):
3434
# some messages can be of type 'execute_result'
3535
# type instead of stdout
3636
# self.assertEqual(msg["content"]["name"], stream)
37+
3738
if msg["header"]["msg_type"] == "stream":
3839
self.assertEqual(msg["content"]["name"], stream)
3940
self.assertEqual(msg["content"]["text"], expected_msg)
@@ -42,6 +43,7 @@ def check_stream_output(self, code, expected_output, stream="stdout"):
4243
msg["content"]["data"]["text/plain"], expected_msg
4344
)
4445

46+
4547
def check_from_file(self, filename):
4648

4749
with open(filename, "r") as file:

0 commit comments

Comments
 (0)