From ac293e180576a76b1e06cde61b6a418a04340b0c Mon Sep 17 00:00:00 2001 From: Tiago Freitas Pereira <tiagofrepereira@gmail.com> Date: Thu, 5 Jul 2018 13:36:06 +0200 Subject: [PATCH] [sphinx] Fixed doc test --- doc/guide.rst | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/doc/guide.rst b/doc/guide.rst index 08c3d62..0c20a86 100644 --- a/doc/guide.rst +++ b/doc/guide.rst @@ -336,10 +336,8 @@ this with the :py:meth:`bob.io.base.File.read` method: .. doctest:: >>> array = a.read() - >>> array - array([[ 0., 1., 2., 3., 4., 5., 6., 7., 8., 9.], - [ 0., 2., 4., 6., 8., 10., 12., 14., 16., 18.], - [ 0., 3., 6., 9., 12., 15., 18., 21., 24., 27.]]) + >>> numpy.allclose(array, [[ 0., 1., 2., 3., 4., 5., 6., 7., 8., 9.],[ 0., 2., 4., 6., 8., 10., 12., 14., 16., 18.],[ 0., 3., 6., 9., 12., 15., 18., 21., 24., 27.]]) + True Every time you say :py:meth:`bob.io.base.File.read`, the file contents will be read from the file and into a new array. -- GitLab