Skip to content

Commit a02223b

Browse files
committed
Fix flaky test
1 parent f76a9f9 commit a02223b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/test_sequencing.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,10 @@ def test_different_n_opers(self):
530530
n_coeffs[permutation],
531531
n_ids[permutation])),
532532
dt)
533-
more_n_idx = sample(range(10), rng.integers(2, 5))
533+
534+
# draw more noise indices, but make sure they're not exactly the same
535+
while sorted(more_n_idx := sample(range(10), rng.integers(2, 5))) == sorted(n_idx):
536+
continue
534537
more_n_opers = opers[more_n_idx]
535538
more_n_coeffs = np.ones((more_n_opers.shape[0], n_dt))
536539
more_n_coeffs *= np.abs(rng.standard_normal(

0 commit comments

Comments
 (0)