• Carlos Ramos Carreño's avatar
    bigarray: tests: Do not use `numpy.object`. · 84d3d775
    Carlos Ramos Carreño authored and Kirill Smelkov's avatar Kirill Smelkov committed
    `numpy.object` was an alias for the builtin `object`, so we can use
    `object` instead:
    
    ```python
    _________________________ test_bigarray_noobject[tRAM] _________________________
    
    testbig = <bigarray.tests.test_basic.tRAM object at 0x7f6d114ead60>
    
        def test_bigarray_noobject(testbig):
            Zh = testbig.fopen()
    
            # NOTE str & unicode are fixed-size types - if size is not explicitly given
            # it will become S0 or U0
    >       obj_dtypev = [numpy.object, 'O', 'i4, O', [('x', 'i4'), ('y', 'i4, O')]]
    
    bigarray/tests/test_basic.py:110:
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
    
    attr = 'object'
    
        def __getattr__(attr):
            # Warn for expired attributes, and return a dummy function
            # that always raises an exception.
            import warnings
            import math
            try:
                msg = __expired_functions__[attr]
            except KeyError:
                pass
            else:
                warnings.warn(msg...
    84d3d775