diff --git a/rescript/tests/test_ncbi.py b/rescript/tests/test_ncbi.py index 00ebc0f..d0e2260 100644 --- a/rescript/tests/test_ncbi.py +++ b/rescript/tests/test_ncbi.py @@ -237,8 +237,8 @@ def test_ncbi_fails(self): 'k__Fungi; p__Basidiomycota; c__Agaricomycetes; ' 'o__Boletales; f__Boletaceae; g__Boletus; s__edulis' ) - raise ValueError(log.output) - self.assertTrue('Retrying' in '\n'.join(log.output[:3])) + exp_log_segment = 'Retrying' + self.assertTrue(exp_log_segment in line for line in log.output) def test_get_ncbi_dirty_tricks(self): with self.assertLogs(level='WARNING') as log: