Skip to content

Commit 8ea8342

Browse files
fix: More test fixes spotted on cluster
1 parent a86f91d commit 8ea8342

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/test_output.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -68,17 +68,16 @@ def test_new_output():
6868
path1 = _new_output()
6969
path1.mkdir()
7070
path2 = _new_output()
71-
72-
assert str(path1).split("-")[-2] == "000"
73-
assert str(path2).split("-")[-2] == "001"
71+
assert str(path1).split("/")[-1].split("-")[3] == "000"
72+
assert str(path2).split("/")[-1].split("-")[3] == "001"
7473

7574

7675
def test_output_mkdir():
7776
path1 = Output.mkdir()
7877
path2 = Output.mkdir()
7978

80-
assert str(path1).split("-")[-2] == "000"
81-
assert str(path2).split("-")[-2] == "001"
79+
assert str(path1).split("/")[-1].split("-")[3] == "000"
80+
assert str(path2).split("/")[-1].split("-")[3] == "001"
8281

8382
with pytest.raises(RuntimeError):
8483
Output.mkdir(path1)

tests/test_randomized_benchmarking.py

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import numpy as np
44
import pytest
55

6+
from qibocal.protocols.randomized_benchmarking import fitting
67
from qibocal.protocols.randomized_benchmarking.dict_utils import load_inverse_cliffords
78
from qibocal.protocols.randomized_benchmarking.utils import (
89
RB_Generator,

0 commit comments

Comments
 (0)