Skip to content

Commit 0daeea6

Browse files
committed
BUG: Fix tolerances
1 parent 8aba865 commit 0daeea6

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

mne/io/tests/test_raw.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,10 @@ def test_describe_print():
596596
raw.describe()
597597
s = f.getvalue().strip().split("\n")
598598
assert len(s) == 378
599-
assert s[0] == "<Raw | test_raw.fif, 376 x 14400 (24.0 s), ~3.3 MB, data not loaded>" # noqa
599+
# Can be 3.1, 3.3, etc.
600+
assert re.match(
601+
r'<Raw | test_raw.fif, 376 x 14400 (24\.0 s), '
602+
r'~3\.. MB, data not loaded>', s[0]) is not None, s[0]
600603
assert s[1] == " ch name type unit min Q1 median Q3 max" # noqa
601604
assert s[2] == " 0 MEG 0113 GRAD fT/cm -221.80 -38.57 -9.64 19.29 414.67" # noqa
602605
assert s[-1] == "375 EOG 061 EOG µV -231.41 271.28 277.16 285.66 334.69" # noqa

mne/utils/tests/test_numerics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ def test_object_size():
297297
(0, 150, np.ones(0)),
298298
(0, 150, np.int32(1)),
299299
(150, 500, np.ones(20)),
300-
(50, 400, dict()),
300+
(30, 400, dict()),
301301
(400, 1000, dict(a=np.ones(50))),
302302
(200, 900, sparse.eye(20, format='csc')),
303303
(200, 900, sparse.eye(20, format='csr'))):

0 commit comments

Comments
 (0)