From 8dea12ffd38b8de598d2493f962ba96c03dbdccc Mon Sep 17 00:00:00 2001 From: Scott Lowe Date: Tue, 13 Jul 2021 01:42:57 +0100 Subject: [PATCH] TST: Change expected behaviour with mixed init --- fissa/tests/test_core.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/fissa/tests/test_core.py b/fissa/tests/test_core.py index ad208883..4e2cc1f3 100644 --- a/fissa/tests/test_core.py +++ b/fissa/tests/test_core.py @@ -1022,10 +1022,9 @@ def test_load_wrong_alpha_mixed_prep_sep(self): fname = os.path.join(self.output_dir, "dummy.npz") os.makedirs(self.output_dir) np.savez_compressed(fname, **merge_dicts(kwargs, fields)) - # Load the file and check the data appears correctly - exp.load(fname) - self.assert_equal(exp.raw, fields["raw"]) - self.assertIs(exp.result, None) + # Load the file and check the data is not loaded + with self.assertRaises(ValueError): + exp.load(fname) @unittest.expectedFailure def test_badprepcache_init1(self):