diff --git a/brian2/tests/utils.py b/brian2/tests/utils.py index 67e52985e..7597df10a 100644 --- a/brian2/tests/utils.py +++ b/brian2/tests/utils.py @@ -5,7 +5,7 @@ from brian2.units.fundamentalunits import have_same_dimensions -def assert_allclose(actual, desired, rtol=4.5e8, atol=0, **kwds): +def assert_allclose(actual, desired, rtol=4.5e8, atol=1e-9, **kwds): """ Thin wrapper around numpy's `~numpy.testing.utils.assert_allclose` function. The tolerance depends on the floating point precision as defined by the `core.default_float_dtype` preference.