[sphinx] Fixed doc test

parent 705ea4f9
Pipeline #21629 passed with stages
in 12 minutes and 3 seconds
......@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment