Skip to content

Commit 6aba936

Browse files
committed
doctest: fixes for numpy 1.24
1 parent 05329f6 commit 6aba936

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

src/sage/misc/persist.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def load(*filename, compress=True, verbose=True, **kwargs):
157157
....: _ = f.write(code)
158158
sage: load(t)
159159
sage: hello
160-
<fortran object>
160+
<fortran ...>
161161
"""
162162
import sage.repl.load
163163
if len(filename) != 1:

src/sage/plot/histogram.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,8 @@ def get_minmax_data(self):
8787
8888
TESTS::
8989
90-
sage: h = histogram([10,3,5], normed=True)[0]
91-
doctest:warning...:
92-
DeprecationWarning: the 'normed' option is deprecated. Use 'density' instead.
93-
See https://github.com/sagemath/sage/issues/25260 for details.
90+
sage: h = histogram([10,3,5], density=True)[0]
9491
sage: h.get_minmax_data()
95-
doctest:warning ...
96-
...VisibleDeprecationWarning: Passing `normed=True` on non-uniform bins has always been broken, and computes neither the probability density function nor the probability mass function. The result is only correct if the bins are uniform, when density=True will produce the same result anyway. The argument will be removed in a future version of numpy.
9792
{'xmax': 10.0, 'xmin': 3.0, 'ymax': 0.476190476190..., 'ymin': 0}
9893
"""
9994
import numpy

src/sage/repl/ipython_extension.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ def fortran(self, line, cell):
405405
....: C END FILE FIB1.F
406406
....: ''')
407407
sage: fib
408-
<fortran object>
408+
<fortran ...>
409409
sage: from numpy import array
410410
sage: a = array(range(10), dtype=float)
411411
sage: fib(a, 10)

0 commit comments

Comments
 (0)