On Wed, Jan 9, 2019 at 5:05 PM Sandro Tosi <[email protected]> wrote: > > > That's not the issue here. It's not that it's considered an error. Rather, > > the problem for sagemath in particular is that it has an extensive suite of > > doctests, and so unexpected deprecation warnings results in many failing > > doctests. > > doctest shouldnt fail when DeprecationWarnings are generated. are you > sure sagemath doesnt treat them as errors or trying to do something > fancy with them?
Yes, I'm sure. This is actually perfectly normal and expected behavior with Sage's doctest runner and has been forever (it also tests *expected* warnings, for example). You can see examples of this like: https://buildd.debian.org/status/fetch.php?pkg=sagemath&arch=amd64&ver=8.6~rc0-1&stamp=1546789550&raw=1 (grep for `np.asscalar` or something) This issue is responsible for the majority of noise in current builds :)

