From 467a8600ddfb3975bce7863751bcc9294d9d8a94 Mon Sep 17 00:00:00 2001 From: Evan Hathaway Date: Wed, 19 May 2021 18:07:02 -0700 Subject: [PATCH] Refactor assert statements --- mne/tests/test_evoked.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mne/tests/test_evoked.py b/mne/tests/test_evoked.py index 36d1345d2dd..119069f138d 100644 --- a/mne/tests/test_evoked.py +++ b/mne/tests/test_evoked.py @@ -277,10 +277,10 @@ def test_export_evokeds_to_mff(tmpdir, fmt): # Compare data assert_allclose(ave_exported.data, ave.data) # Compare properties - assert_equal(ave_exported.nave, ave.nave) - assert_equal(ave_exported.kind, ave.kind) - assert_equal(ave_exported.comment, ave.comment) - assert_equal(ave_exported.times, ave.times) + assert ave_exported.nave == ave.nave + assert ave_exported.kind == ave.kind + assert ave_exported.comment == ave.comment + assert_allclose(ave_exported.times, ave.times) def test_export_to_mff_no_device():