1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
From: Ole Streicher <olebole@debian.org>
Date: Mon, 27 Sep 2021 11:26:40 +0200
Subject: Loose warning in parallel execution test
Closes: #994786
---
spectral_cube/tests/test_spectral_cube.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/spectral_cube/tests/test_spectral_cube.py b/spectral_cube/tests/test_spectral_cube.py
index 7b67438..8543234 100644
--- a/spectral_cube/tests/test_spectral_cube.py
+++ b/spectral_cube/tests/test_spectral_cube.py
@@ -2612,7 +2612,7 @@ def test_parallel_bad_params(data_adv):
assert ("parallel=True was specified but num_cores=1. "
"Joblib will be used to run the task with a "
- "single thread.") in str(wrn[-1].message)
+ "single thread.") in '|'.join(str(w.message) for w in wrn)
def test_initialization_from_units(data_adv, use_dask):
|