You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
===================================FAILURES===================================____________________________test_override_builtins____________________________
[gw0] linux--Python3.6.1/home/travis/build/matplotlib/matplotlib/venv/bin/pythondeftest_override_builtins():
importpylabok_to_override= {
'__name__',
'__doc__',
'__package__',
'__loader__',
'__spec__',
'any',
'all',
'sum'
}
# We could use six.moves.builtins here, but that seems# to do a little more than just this.ifsix.PY3:
builtins=sys.modules['builtins']
else:
builtins=sys.modules['__builtin__']
overridden=Falseforkeyindir(pylab):
ifkeyindir(builtins):
if (getattr(pylab, key) !=getattr(builtins, key) andkeynotinok_to_override):
print("'%s' was overridden in globals()."%key)
overridden=True>assertnotoverriddenEassertnotTruelib/matplotlib/tests/test_basic.py:41: AssertionError-----------------------------Capturedstdoutcall-----------------------------'divmod'wasoverriddeninglobals().
The text was updated successfully, but these errors were encountered:
In [1]: import numpy as np
In [2]: np.version.full_version
Out[2]: '1.13.0'
In [3]: np.divmod
Out[3]: <ufunc 'divmod'>
to
In [1]: import numpy as np
In [2]: np.version.full_version
Out[2]: '1.12.1'
In [3]: np.divmod
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-3-895646f35e69> in <module>()
----> 1 np.divmod
AttributeError: module 'numpy' has no attribute 'divmod'
So perhaps divmod should simply be added to ok_to_override?
The master travis python 3 builds are currently failing on
test_override_builtins
(https://travis-ci.org/matplotlib/matplotlib/jobs/240522447):The text was updated successfully, but these errors were encountered: