Skip to content

BUG: several test errors on SPARC #12638

Open

Description

@DerDakon

Running the tests of 1.14.5 on my Sparc T5120 with Gentoo results in several test failures:

chroot ~ #  grep ^FAIL /root/tatt/logs/dev-python_numpy-1.14.5_use_lFT6d
FAIL
FAIL: numpy.core.tests.test_arrayprint.TestComplexArray.test_str
FAIL: numpy.core.tests.test_longdouble.test_repr_roundtrip
FAIL: Check formatting.
FAIL: Check formatting of nan & inf.
FAIL: Check formatting of complex types.
FAIL: Check inf/nan formatting of complex types.
FAIL: Check inf/nan formatting of complex types.
FAIL: Check inf/nan formatting of complex types.
FAIL: Check inf/nan formatting of complex types.
FAIL: Check inf/nan formatting of complex types.
FAIL: Check inf/nan formatting of complex types.
FAIL: Check inf/nan formatting of complex types.
FAIL: Check inf/nan formatting of complex types.
FAIL: Check inf/nan formatting of complex types.
FAIL: Check inf/nan formatting of complex types.
FAIL: Check inf/nan formatting of complex types.
FAIL: Check inf/nan formatting of complex types.
FAIL: Check formatting when using print
FAIL: Check formatting when using print
FAIL: numpy.core.tests.test_print.test_locale_longdouble
FAIL: numpy.core.tests.test_scalarprint.TestRealScalars.test_dragon4_interface
FAIL: numpy.core.tests.test_scalarprint.TestRealScalars.test_str
FAIL: numpy.f2py.tests.test_kind.TestKind.test_all
FAIL: numpy.ma.tests.test_core.TestMaskedArrayMethods.test_sort_flexible
FAILED (KNOWNFAIL=19, SKIP=15, failures=24)

This has been reported as Gentoo bug 672730 and seems to affect also ppc64.

EDIT:

Failing tests on 1.16.0rc2

  • TestKind.test_all
  • TestRecFunctions.test_structured_to_unstructured
  • TestArrayEqual.test_recarrays
  • TestEqual.test_recarrays

Activity

  1. changed the title [-]several test errors (numpy.core.tests.test_print.test_locale_longdouble, numpy.core.tests.test_scalarprint.TestRealScalars.test_dragon4_interface, numpy.core.tests.test_scalarprint.TestRealScalars.test_str, numpy.f2py.tests.test_kind.TestKind.test_all, numpy.ma.tests.test_core.TestMaskedArrayMethods.test_sort_flexible, numpy.core.tests.test_arrayprint.TestComplexArray.test_str, numpy.core.tests.test_longdouble.test_repr_roundtrip)[/-] [+]BUG: several test errors on SPARC[/+] on Jan 1, 2019
  2. mattip commented on Jan 1, 2019

    @mattip
    Member

    Can you test against 1.16.rc1?

  3. DerDakon commented on Jan 1, 2019

    @DerDakon
    Author

    It died earlier with this:

    ::TestAlignment::test_various_alignments <- ../work/numpy-1.16.0_rc1-python2_7/test/lib/numpy/core/tests/test_multiarray.py /var/tmp/portage/dev-python/numpy-1.16.0_rc1/temp/environment: line 3960: 37258 Bus error ${EPYTHON} -c "

  4. charris commented on Jan 1, 2019

    @charris
    Member

    @DerDakon Hmm, that is not unexpected.

  5. charris commented on Jan 1, 2019

    @charris
    Member

    Reference #12626.

  6. charris commented on Jan 3, 2019

    @charris
    Member

    @DerDakon I think the bus errors may be fixed. I'll put out an rc2 soon that you can check.

  7. charris commented on Jan 5, 2019

    @charris
    Member

    OK, NumPy 1.16.0rc2 is out. It would be much appreciated if you could test it.

  8. DerDakon commented on Jan 5, 2019

    @DerDakon
    Author

    Failing test:

    -TestKind.test_all
    -TestRecFunctions.test_structured_to_unstructured
    -TestArrayEqual.test_recarrays
    -TestEqual.test_recarrays

  9. charris commented on Jan 5, 2019

    @charris
    Member

    So no bus errors and four failing tests. I assume the TestKind failure is for Fortran. Could you post more information on the failures?

  10. DerDakon commented on Jan 5, 2019

    @DerDakon
    Author
    __________________________________________________________________________________________________________________________ TestKind.test_all ___________________________________________________________________________________________________________________________
    
    self = <numpy.f2py.tests.test_kind.TestKind object at 0xf1373210>
    
        @pytest.mark.slow
        def test_all(self):
            selectedrealkind = self.module.selectedrealkind
            selectedintkind = self.module.selectedintkind
    
            for i in range(40):
                assert_(selectedintkind(i) in [selected_int_kind(i), -1],
                        'selectedintkind(%s): expected %r but got %r' %
                        (i, selected_int_kind(i), selectedintkind(i)))
    
            for i in range(20):
                assert_(selectedrealkind(i) in [selected_real_kind(i), -1],
                        'selectedrealkind(%s): expected %r but got %r' %
    >                   (i, selected_real_kind(i), selectedrealkind(i)))
    E           AssertionError: selectedrealkind(16): expected 10 but got 16
    
    i          = 16
    selectedintkind = <fortran object>
    selectedrealkind = <fortran object>
    self       = <numpy.f2py.tests.test_kind.TestKind object at 0xf1373210>
    
    ../work/numpy-1.16.0rc2-python2_7/test/lib/numpy/f2py/tests/test_kind.py:34: AssertionError
    ___________________________________________________________________________________________________________ TestRecFunctions.test_structured_to_unstructured ___________________________________________________________________________________________________________
    
    self = <numpy.lib.tests.test_recfunctions.TestRecFunctions object at 0xf0847f10>
    
        def test_structured_to_unstructured(self):
            a = np.zeros(4, dtype=[('a', 'i4'), ('b', 'f4,u2'), ('c', 'f4', 2)])
            out = structured_to_unstructured(a)
            assert_equal(out, np.zeros((4,5), dtype='f8'))
    
            b = np.array([(1, 2, 5), (4, 5, 7), (7, 8 ,11), (10, 11, 12)],
                         dtype=[('x', 'i4'), ('y', 'f4'), ('z', 'f8')])
            out = np.mean(structured_to_unstructured(b[['x', 'z']]), axis=-1)
            assert_equal(out, np.array([ 3. ,  5.5,  9. , 11. ]))
    
            c = np.arange(20).reshape((4,5))
            out = unstructured_to_structured(c, a.dtype)
            want = np.array([( 0, ( 1.,  2), [ 3.,  4.]),
                             ( 5, ( 6.,  7), [ 8.,  9.]),
                             (10, (11., 12), [13., 14.]),
                             (15, (16., 17), [18., 19.])],
                         dtype=[('a', '<i4'),
                                ('b', [('f0', '<f4'), ('f1', '<u2')]),
                                ('c', '<f4', (2,))])
    >       assert_equal(out, want)
    
    a          = array([(0, (0., 0), [0., 0.]), (0, (0., 0), [0., 0.]),
           (0, (0., 0), [0....type=[('a', '>i4'), ('b', [('f0', '>f4'), ('f1', '>u2')]), ('c', '>f4', (2,))])
    b          = array([( 1,  2.,  5.), ( 4,  5.,  7.), ( 7,  8., 11.), (10, 11., 12.)],
          dtype=[('x', '>i4'), ('y', '>f4'), ('z', '>f8')])
    c          = array([[ 0,  1,  2,  3,  4],
           [ 5,  6,  7,  8,  9],
           [10, 11, 12, 13, 14],
           [15, 16, 17, 18, 19]])
    out        = array([( 0, ( 1.,  2), [ 3.,  4.]), ( 5, ( 6.,  7), [ 8.,  9.]),
           (10, (...type=[('a', '>i4'), ('b', [('f0', '>f4'), ('f1', '>u2')]), ('c', '>f4', (2,))])
    self       = <numpy.lib.tests.test_recfunctions.TestRecFunctions object at 0xf0847f10>
    want       = array([( 0, ( 1.,  2), [ 3.,  4.]), ( 5, ( 6.,  7), [ 8.,  9.]),
           (10, (...type=[('a', '<i4'), ('b', [('f0', '<f4'), ('f1', '<u2')]), ('c', '<f4', (2,))])
    
    ../work/numpy-1.16.0rc2-python2_7/test/lib/numpy/lib/tests/test_recfunctions.py:227:
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
    ../work/numpy-1.16.0rc2-python2_7/test/lib/numpy/ma/testutils.py:146: in assert_equal
        return assert_array_equal(actual, desired, err_msg)
    ../work/numpy-1.16.0rc2-python2_7/test/lib/numpy/ma/testutils.py:229: in assert_array_equal
        header='Arrays are not equal')
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
    
    comparison = <built-in function __eq__>, x = masked_array(data=[( 0, ( 1.,  2), [ 3.,  4.]),
                       ( 5, ( 6., ...type=[('a', '>i4'), ('b', [('f0', '>f4'), ('f1', '>u2')]), ('c', '>f4', (2,))])
    y = masked_array(data=[( 0, ( 1.,  2), [ 3.,  4.]),
                       ( 5, ( 6., ...type=[('a', '<i4'), ('b', [('f0', '<f4'), ('f1', '<u2')]), ('c', '<f4', (2,))]), err_msg = '', verbose = True, header = 'Arrays are not equal', fill_value = True
    
        def assert_array_compare(comparison, x, y, err_msg='', verbose=True, header='',
                                 fill_value=True):
            """
            Asserts that comparison between two masked arrays is satisfied.
    
            The comparison is elementwise.
    
            """
            # Allocate a common mask and refill
            m = mask_or(getmask(x), getmask(y))
            x = masked_array(x, copy=False, mask=m, keep_mask=False, subok=False)
            y = masked_array(y, copy=False, mask=m, keep_mask=False, subok=False)
            if ((x is masked) and not (y is masked)) or \
                    ((y is masked) and not (x is masked)):
                msg = build_err_msg([x, y], err_msg=err_msg, verbose=verbose,
                                    header=header, names=('x', 'y'))
                raise ValueError(msg)
            # OK, now run the basic tests on filled versions
            return np.testing.assert_array_compare(comparison,
                                                   x.filled(fill_value),
                                                   y.filled(fill_value),
                                                   err_msg=err_msg,
    >                                              verbose=verbose, header=header)
    E       AssertionError:
    E       Arrays are not equal
    E
    E       (mismatch 25.0%)
    E        x: array([( 0, ( 1.,  2), [ 3.,  4.]), ( 5, ( 6.,  7), [ 8.,  9.]),
    E              (10, (11., 12), [13., 14.]), (15, (16., 17), [18., 19.])],
    E             dtype=[('a', '>i4'), ('b', [('f0', '>f4'), ('f1', '>u2')]), ('c', '>f4', (2,))])
    E        y: array([( 0, ( 1.,  2), [ 3.,  4.]), ( 5, ( 6.,  7), [ 8.,  9.]),
    E              (10, (11., 12), [13., 14.]), (15, (16., 17), [18., 19.])],
    E             dtype=[('a', '<i4'), ('b', [('f0', '<f4'), ('f1', '<u2')]), ('c', '<f4', (2,))])
    
    comparison = <built-in function __eq__>
    err_msg    = ''
    fill_value = True
    header     = 'Arrays are not equal'
    m          = False
    verbose    = True
    x          = masked_array(data=[( 0, ( 1.,  2), [ 3.,  4.]),
                       ( 5, ( 6., ...type=[('a', '>i4'), ('b', [('f0', '>f4'), ('f1', '>u2')]), ('c', '>f4', (2,))])
    y          = masked_array(data=[( 0, ( 1.,  2), [ 3.,  4.]),
                       ( 5, ( 6., ...type=[('a', '<i4'), ('b', [('f0', '<f4'), ('f1', '<u2')]), ('c', '<f4', (2,))])
    
    ../work/numpy-1.16.0rc2-python2_7/test/lib/numpy/ma/testutils.py:219: AssertionError
    ____________________________________________________________________________________________________________________ TestArrayEqual.test_recarrays _____________________________________________________________________________________________________________________
    
    self = <numpy.testing.tests.test_utils.TestArrayEqual object at 0xef91bed0>
    
        def test_recarrays(self):
            """Test record arrays."""
            a = np.empty(2, [('floupi', float), ('floupa', float)])
            a['floupi'] = [1, 2]
            a['floupa'] = [1, 2]
            b = a.copy()
    
            self._test_equal(a, b)
    
            c = np.empty(2, [('floupipi', float), ('floupa', float)])
            c['floupipi'] = a['floupi'].copy()
            c['floupa'] = a['floupa'].copy()
    
            with suppress_warnings() as sup:
                l = sup.record(FutureWarning, message="elementwise == ")
                self._test_not_equal(c, b)
    >           assert_equal(len(l), 1)
    E           AssertionError:
    E           Items are not equal:
    E            ACTUAL: 0
    E            DESIRED: 1
    
    a          = array([(1., 1.), (2., 2.)], dtype=[('floupi', '>f8'), ('floupa', '>f8')])
    b          = array([(1., 1.), (2., 2.)], dtype=[('floupi', '>f8'), ('floupa', '>f8')])
    c          = array([(1., 1.), (2., 2.)], dtype=[('floupipi', '>f8'), ('floupa', '>f8')])
    l          = []
    self       = <numpy.testing.tests.test_utils.TestArrayEqual object at 0xef91bed0>
    sup        = <numpy.testing._private.utils.suppress_warnings object at 0xef91beb0>
    
    ../work/numpy-1.16.0rc2-python2_7/test/lib/numpy/testing/tests/test_utils.py:148: AssertionError
    
    self = <numpy.testing.tests.test_utils.TestEqual object at 0xef92c170>
    
        def test_recarrays(self):
            """Test record arrays."""
            a = np.empty(2, [('floupi', float), ('floupa', float)])
            a['floupi'] = [1, 2]
            a['floupa'] = [1, 2]
            b = a.copy()
    
            self._test_equal(a, b)
    
            c = np.empty(2, [('floupipi', float), ('floupa', float)])
            c['floupipi'] = a['floupi'].copy()
            c['floupa'] = a['floupa'].copy()
    
            with suppress_warnings() as sup:
                l = sup.record(FutureWarning, message="elementwise == ")
                self._test_not_equal(c, b)
    >           assert_equal(len(l), 1)
    E           AssertionError:
    E           Items are not equal:
    E            ACTUAL: 0
    E            DESIRED: 1
    
    a          = array([(1., 1.), (2., 2.)], dtype=[('floupi', '>f8'), ('floupa', '>f8')])
    b          = array([(1., 1.), (2., 2.)], dtype=[('floupi', '>f8'), ('floupa', '>f8')])
    c          = array([(1., 1.), (2., 2.)], dtype=[('floupipi', '>f8'), ('floupa', '>f8')])
    l          = []
    self       = <numpy.testing.tests.test_utils.TestEqual object at 0xef92c170>
    sup        = <numpy.testing._private.utils.suppress_warnings object at 0xef92c2d0>
    
    ../work/numpy-1.16.0rc2-python2_7/test/lib/numpy/testing/tests/test_utils.py:148: AssertionError
    =========================================================================================================================== warnings summary ===========================================================================================================================
    /var/tmp/portage/dev-python/numpy-1.16.0_rc2/work/numpy-1.16.0rc2-python2_7/test/lib/numpy/testing/_private/utils.py:776: FutureWarning: elementwise == comparison failed and returning scalar instead; this will raise an error or perform elementwise comparison in the future.  
      val = comparison(x, y)
    
  11. seberg commented on Jan 5, 2019

    @seberg
    Member

    Sounds a bit like the bug might be the equality function for structured types with none native byteorder fields and not the specific tests. The arrays all print identical.

  12. charris commented on Jan 5, 2019

    @charris
    Member

    Hmm, couple of endianess problems. I'm guessing your SPARC is big endian? Not sure about the other record failures. @ahaldane Thoughts? The Fortran kind problem is a perpetual hassle. SPARC has quad precision long doubles (16) and it looks like we are returning extended precision (10).

  13. DerDakon commented on Jan 5, 2019

    @DerDakon
    Author

    Yes, sparc is big endian, as well as ppc which had similar problems as in the initial report.

  14. 9 remaining items

  15. DerDakon commented on Jan 5, 2019

    @DerDakon
    Author

    If I apply the patches from #12671 and #12672 I see no failing tests anymore. The only bad thing I see is this (with Python 2.7):

    Traceback (most recent call last):
      File "<string>", line 4, in <module>
    AttributeError: 'bool' object has no attribute 'wasSuccessful'
    
  16. charris commented on Jan 5, 2019

    @charris
    Member

    AttributeError: 'bool' object has no attribute 'wasSuccessful'

    That was for nose, you should be using pytest. Maybe need to clean up the environment?

    EDIT: Before building.

  17. DerDakon commented on Jan 5, 2019

    @DerDakon
    Author

    I fixed my ebuild, test is restarted.

  18. DerDakon commented on Jan 6, 2019

    @DerDakon
    Author

    I have no nose installed anymore, but the message stays the same.

  19. charris commented on Jan 6, 2019

    @charris
    Member

    but the message stays the same.

    Hmm, Lets try to track that down then. Are you testing with runtests.py? I'm going to guess that these lines in runtests.py are responsible.

        if isinstance(result, bool):
            sys.exit(0 if result else 1)
        elif result.wasSuccessful():
            sys.exit(0)
        else:
            sys.exit(1)
    

    I've never seen that problem here, so what versions of Python 2.7 an pytest are you using? Did the error message say more? It looks like the isinstance bit may be failing even though the error message says the result is bool.

  20. charris commented on Jan 6, 2019

    @charris
    Member

    It also occurs to me that that code snippet should just be

    sys.exit(0 if result else 1)
    
  21. DerDakon commented on Jan 6, 2019

    @DerDakon
    Author

    I honestly have no clue, I just run the Gentoo ebuild.

  22. charris commented on Jan 6, 2019

    @charris
    Member

    Ah, makes me suspect Gentoo. So you don't actually run the tests yourself?

  23. DerDakon commented on Jan 6, 2019

    @DerDakon
    Author

    It's just me being stupid, the ebuild contains:

    sys.exit(0 if r.wasSuccessful() else 1)" || die "Tests fail with ${EPYTHON}"
  24. charris commented on Jan 6, 2019

    @charris
    Member

    Thanks for tracking that down.

  25. DerDakon commented on Jan 7, 2019

    @DerDakon
    Author

    New error log from 3.6:

    _____________________________________________________________________________________________________________________ TestF77ReturnCharacter.test_all[t0] _____________________________________________________________________________________________________________________
    
    self = <numpy.f2py.tests.test_return_character.TestF77ReturnCharacter object at 0xf1da7eb0>, name = 't0'
    
        @pytest.mark.slow
        @pytest.mark.parametrize('name', 't0,t1,t5,s0,s1,s5,ss'.split(','))
        def test_all(self, name):
    >       self.check_function(getattr(self.module, name))
    
    name       = 't0'
    self       = <numpy.f2py.tests.test_return_character.TestF77ReturnCharacter object at 0xf1da7eb0>
    
    ../work/numpy-1.16.0rc2-python3_6/test/lib/numpy/f2py/tests/test_return_character.py:87:
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
    
    self = <numpy.f2py.tests.test_return_character.TestF77ReturnCharacter object at 0xf1da7eb0>, t = <fortran t0>
    
        def check_function(self, t):
            tname = t.__doc__.split()[0]
            if tname in ['t0', 't1', 's0', 's1']:
                assert_(t(23) == b'2')
                r = t('ab')
                assert_(r == b'a', repr(r))
                r = t(array('ab'))
    >           assert_(r == b'a', repr(r))
    E           AssertionError: b' '
    
    r          = b' '
    self       = <numpy.f2py.tests.test_return_character.TestF77ReturnCharacter object at 0xf1da7eb0>
    t          = <fortran t0>
    tname      = 't0'
    
    ../work/numpy-1.16.0rc2-python3_6/test/lib/numpy/f2py/tests/test_return_character.py:19: AssertionError
    _____________________________________________________________________________________________________________________ TestF77ReturnCharacter.test_all[t1] _____________________________________________________________________________________________________________________
    
    self = <numpy.f2py.tests.test_return_character.TestF77ReturnCharacter object at 0xf1db5e50>, name = 't1'
    
        @pytest.mark.slow
        @pytest.mark.parametrize('name', 't0,t1,t5,s0,s1,s5,ss'.split(','))
        def test_all(self, name):
    >       self.check_function(getattr(self.module, name))
    
    name       = 't1'
    self       = <numpy.f2py.tests.test_return_character.TestF77ReturnCharacter object at 0xf1db5e50>
    
    ../work/numpy-1.16.0rc2-python3_6/test/lib/numpy/f2py/tests/test_return_character.py:87:
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
    
    self = <numpy.f2py.tests.test_return_character.TestF77ReturnCharacter object at 0xf1db5e50>, t = <fortran t1>
    
        def check_function(self, t):
            tname = t.__doc__.split()[0]
            if tname in ['t0', 't1', 's0', 's1']:
                assert_(t(23) == b'2')
                r = t('ab')
                assert_(r == b'a', repr(r))
                r = t(array('ab'))
    >           assert_(r == b'a', repr(r))
    E           AssertionError: b' '
    
    r          = b' '
    self       = <numpy.f2py.tests.test_return_character.TestF77ReturnCharacter object at 0xf1db5e50>
    t          = <fortran t1>
    tname      = 't1'
    
    ../work/numpy-1.16.0rc2-python3_6/test/lib/numpy/f2py/tests/test_return_character.py:19: AssertionError
    _____________________________________________________________________________________________________________________ TestF77ReturnCharacter.test_all[s0] _____________________________________________________________________________________________________________________
    
    self = <numpy.f2py.tests.test_return_character.TestF77ReturnCharacter object at 0xf4cf20b0>, name = 's0'
    
        @pytest.mark.slow
        @pytest.mark.parametrize('name', 't0,t1,t5,s0,s1,s5,ss'.split(','))
        def test_all(self, name):
    >       self.check_function(getattr(self.module, name))
    
    name       = 's0'
    self       = <numpy.f2py.tests.test_return_character.TestF77ReturnCharacter object at 0xf4cf20b0>
    
    ../work/numpy-1.16.0rc2-python3_6/test/lib/numpy/f2py/tests/test_return_character.py:87:
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
    
    self = <numpy.f2py.tests.test_return_character.TestF77ReturnCharacter object at 0xf4cf20b0>, t = <fortran object>
    
        def check_function(self, t):
            tname = t.__doc__.split()[0]
            if tname in ['t0', 't1', 's0', 's1']:
                assert_(t(23) == b'2')
                r = t('ab')
                assert_(r == b'a', repr(r))
                r = t(array('ab'))
    >           assert_(r == b'a', repr(r))
    E           AssertionError: b' '
    
    r          = b' '
    self       = <numpy.f2py.tests.test_return_character.TestF77ReturnCharacter object at 0xf4cf20b0>
    t          = <fortran object>
    tname      = 't0'
    
    ../work/numpy-1.16.0rc2-python3_6/test/lib/numpy/f2py/tests/test_return_character.py:19: AssertionError
    _____________________________________________________________________________________________________________________ TestF77ReturnCharacter.test_all[s1] _____________________________________________________________________________________________________________________
    
    self = <numpy.f2py.tests.test_return_character.TestF77ReturnCharacter object at 0xf1da7df0>, name = 's1'
    
        @pytest.mark.slow
        @pytest.mark.parametrize('name', 't0,t1,t5,s0,s1,s5,ss'.split(','))
        def test_all(self, name):
    >       self.check_function(getattr(self.module, name))
    
    name       = 's1'
    self       = <numpy.f2py.tests.test_return_character.TestF77ReturnCharacter object at 0xf1da7df0>
    
    ../work/numpy-1.16.0rc2-python3_6/test/lib/numpy/f2py/tests/test_return_character.py:87:
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
    
    self = <numpy.f2py.tests.test_return_character.TestF77ReturnCharacter object at 0xf1da7df0>, t = <fortran object>
    
        def check_function(self, t):
            tname = t.__doc__.split()[0]
            if tname in ['t0', 't1', 's0', 's1']:
                assert_(t(23) == b'2')
                r = t('ab')
                assert_(r == b'a', repr(r))
                r = t(array('ab'))
    >           assert_(r == b'a', repr(r))
    E           AssertionError: b' '
    
    r          = b' '
    self       = <numpy.f2py.tests.test_return_character.TestF77ReturnCharacter object at 0xf1da7df0>
    t          = <fortran object>
    tname      = 't1'
    
    ../work/numpy-1.16.0rc2-python3_6/test/lib/numpy/f2py/tests/test_return_character.py:19: AssertionError
    _____________________________________________________________________________________________________________________ TestF90ReturnCharacter.test_all[t0] _____________________________________________________________________________________________________________________
    
    self = <numpy.f2py.tests.test_return_character.TestF90ReturnCharacter object at 0xf2cab9d0>, name = 't0'
    
        @pytest.mark.slow
        @pytest.mark.parametrize('name', 't0,t1,t5,ts,s0,s1,s5,ss'.split(','))
        def test_all(self, name):
    >       self.check_function(getattr(self.module.f90_return_char, name))
    
    name       = 't0'
    self       = <numpy.f2py.tests.test_return_character.TestF90ReturnCharacter object at 0xf2cab9d0>
    
    ../work/numpy-1.16.0rc2-python3_6/test/lib/numpy/f2py/tests/test_return_character.py:146:
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
    
    self = <numpy.f2py.tests.test_return_character.TestF90ReturnCharacter object at 0xf2cab9d0>, t = <fortran object>
    
        def check_function(self, t):
            tname = t.__doc__.split()[0]
            if tname in ['t0', 't1', 's0', 's1']:
                assert_(t(23) == b'2')
                r = t('ab')
                assert_(r == b'a', repr(r))
                r = t(array('ab'))
    >           assert_(r == b'a', repr(r))
    E           AssertionError: b' '
    
    r          = b' '
    self       = <numpy.f2py.tests.test_return_character.TestF90ReturnCharacter object at 0xf2cab9d0>
    t          = <fortran object>
    tname      = 't0'
    
    ../work/numpy-1.16.0rc2-python3_6/test/lib/numpy/f2py/tests/test_return_character.py:19: AssertionError
    _____________________________________________________________________________________________________________________ TestF90ReturnCharacter.test_all[t1] _____________________________________________________________________________________________________________________
    
    self = <numpy.f2py.tests.test_return_character.TestF90ReturnCharacter object at 0xf2cab2d0>, name = 't1'
    
        @pytest.mark.slow
        @pytest.mark.parametrize('name', 't0,t1,t5,ts,s0,s1,s5,ss'.split(','))
        def test_all(self, name):
    >       self.check_function(getattr(self.module.f90_return_char, name))
    
    name       = 't1'
    self       = <numpy.f2py.tests.test_return_character.TestF90ReturnCharacter object at 0xf2cab2d0>
    
    ../work/numpy-1.16.0rc2-python3_6/test/lib/numpy/f2py/tests/test_return_character.py:146:
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
    
    self = <numpy.f2py.tests.test_return_character.TestF90ReturnCharacter object at 0xf2cab2d0>, t = <fortran object>
    
        def check_function(self, t):
            tname = t.__doc__.split()[0]
            if tname in ['t0', 't1', 's0', 's1']:
                assert_(t(23) == b'2')
                r = t('ab')
                assert_(r == b'a', repr(r))
                r = t(array('ab'))
    >           assert_(r == b'a', repr(r))
    E           AssertionError: b' '
    
    r          = b' '
    self       = <numpy.f2py.tests.test_return_character.TestF90ReturnCharacter object at 0xf2cab2d0>
    t          = <fortran object>
    tname      = 't1'
    
    ../work/numpy-1.16.0rc2-python3_6/test/lib/numpy/f2py/tests/test_return_character.py:19: AssertionError
    _____________________________________________________________________________________________________________________ TestF90ReturnCharacter.test_all[s0] _____________________________________________________________________________________________________________________ TestF90ReturnCharacter.test_all[s0] _____________________________________________________________________________________________________________________
    
    self = <numpy.f2py.tests.test_return_character.TestF90ReturnCharacter object at 0xf2cac1d0>, name = 's0'
    
        @pytest.mark.slow
        @pytest.mark.parametrize('name', 't0,t1,t5,ts,s0,s1,s5,ss'.split(','))
        def test_all(self, name):
    >       self.check_function(getattr(self.module.f90_return_char, name))
    
    name       = 's0'
    self       = <numpy.f2py.tests.test_return_character.TestF90ReturnCharacter object at 0xf2cac1d0>
    
    ../work/numpy-1.16.0rc2-python3_6/test/lib/numpy/f2py/tests/test_return_character.py:146:
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
    
    self = <numpy.f2py.tests.test_return_character.TestF90ReturnCharacter object at 0xf2cac1d0>, t = <fortran object>
    
        def check_function(self, t):
            tname = t.__doc__.split()[0]
            if tname in ['t0', 't1', 's0', 's1']:
                assert_(t(23) == b'2')
                r = t('ab')
                assert_(r == b'a', repr(r))
                r = t(array('ab'))
    >           assert_(r == b'a', repr(r))
    E           AssertionError: b' '
    
    r          = b' '
    self       = <numpy.f2py.tests.test_return_character.TestF90ReturnCharacter object at 0xf2cac1d0>
    t          = <fortran object>
    tname      = 't0'
    
    ../work/numpy-1.16.0rc2-python3_6/test/lib/numpy/f2py/tests/test_return_character.py:19: AssertionError
    _____________________________________________________________________________________________________________________ TestF90ReturnCharacter.test_all[s1] _____________________________________________________________________________________________________________________
    
    self = <numpy.f2py.tests.test_return_character.TestF90ReturnCharacter object at 0xf1da7270>, name = 's1'
    
        @pytest.mark.slow
        @pytest.mark.parametrize('name', 't0,t1,t5,ts,s0,s1,s5,ss'.split(','))
        def test_all(self, name):
    >       self.check_function(getattr(self.module.f90_return_char, name))
    
    name       = 's1'
    self       = <numpy.f2py.tests.test_return_character.TestF90ReturnCharacter object at 0xf1da7270>
    
    ../work/numpy-1.16.0rc2-python3_6/test/lib/numpy/f2py/tests/test_return_character.py:146:
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
    
    self = <numpy.f2py.tests.test_return_character.TestF90ReturnCharacter object at 0xf1da7270>, t = <fortran object>
    
        def check_function(self, t):
            tname = t.__doc__.split()[0]
            if tname in ['t0', 't1', 's0', 's1']:
                assert_(t(23) == b'2')
                r = t('ab')
                assert_(r == b'a', repr(r))
                r = t(array('ab'))
    >           assert_(r == b'a', repr(r))
    E           AssertionError: b' '
    
    r          = b' '
    self       = <numpy.f2py.tests.test_return_character.TestF90ReturnCharacter object at 0xf1da7270>
    t          = <fortran object>
    tname      = 't1'
    
    ../work/numpy-1.16.0rc2-python3_6/test/lib/numpy/f2py/tests/test_return_character.py:19: AssertionError
    ======================================================================================================= 8 failed, 7280 passed, 38 skipped, 9 xfailed in 3977.23 seconds =======================================================================================================
    
  26. DerDakon commented on Jul 4, 2019

    @DerDakon
    Author

    Here is the updated report for 1.16.1. All tests with python2 pass.

    _______________________________________________________________________________________________________________ TestF77ReturnCharacter.test_all[t0] ________________________________________________________________________________________________________________
    
    self = <numpy.f2py.tests.test_return_character.TestF77ReturnCharacter object at 0xf0738250>, name = 't0'
    
        @pytest.mark.slow
        @pytest.mark.parametrize('name', 't0,t1,t5,s0,s1,s5,ss'.split(','))
        def test_all(self, name):
    >       self.check_function(getattr(self.module, name))
    
    name       = 't0'
    self       = <numpy.f2py.tests.test_return_character.TestF77ReturnCharacter object at 0xf0738250>
    
    ../work/numpy-1.16.1-python3_6/test/lib/numpy/f2py/tests/test_return_character.py:87: 
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    
    self = <numpy.f2py.tests.test_return_character.TestF77ReturnCharacter object at 0xf0738250>, t = <fortran t0>
    
        def check_function(self, t):
            tname = t.__doc__.split()[0]
            if tname in ['t0', 't1', 's0', 's1']:
                assert_(t(23) == b'2')
                r = t('ab')
                assert_(r == b'a', repr(r))
                r = t(array('ab'))
    >           assert_(r == b'a', repr(r))
    E           AssertionError: b' '
    
    r          = b' '
    self       = <numpy.f2py.tests.test_return_character.TestF77ReturnCharacter object at 0xf0738250>
    t          = <fortran t0>
    tname      = 't0'
    
    ../work/numpy-1.16.1-python3_6/test/lib/numpy/f2py/tests/test_return_character.py:19: AssertionError
    _______________________________________________________________________________________________________________ TestF77ReturnCharacter.test_all[t1] ________________________________________________________________________________________________________________
    
    self = <numpy.f2py.tests.test_return_character.TestF77ReturnCharacter object at 0xf07559f0>, name = 't1'
    
        @pytest.mark.slow
        @pytest.mark.parametrize('name', 't0,t1,t5,s0,s1,s5,ss'.split(','))
        def test_all(self, name):
    >       self.check_function(getattr(self.module, name))
    
    name       = 't1'
    self       = <numpy.f2py.tests.test_return_character.TestF77ReturnCharacter object at 0xf07559f0>
    
    ../work/numpy-1.16.1-python3_6/test/lib/numpy/f2py/tests/test_return_character.py:87: 
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    
    self = <numpy.f2py.tests.test_return_character.TestF77ReturnCharacter object at 0xf07559f0>, t = <fortran t1>
    
        def check_function(self, t):
            tname = t.__doc__.split()[0]
            if tname in ['t0', 't1', 's0', 's1']:
                assert_(t(23) == b'2')
                r = t('ab')
                assert_(r == b'a', repr(r))
                r = t(array('ab'))
    >           assert_(r == b'a', repr(r))
    E           AssertionError: b' '
    
    r          = b' '
    self       = <numpy.f2py.tests.test_return_character.TestF77ReturnCharacter object at 0xf07559f0>
    t          = <fortran t1>
    tname      = 't1'
    
    ../work/numpy-1.16.1-python3_6/test/lib/numpy/f2py/tests/test_return_character.py:19: AssertionError
    _______________________________________________________________________________________________________________ TestF77ReturnCharacter.test_all[s0] ________________________________________________________________________________________________________________
    
    self = <numpy.f2py.tests.test_return_character.TestF77ReturnCharacter object at 0xf06e6f30>, name = 's0'
    
        @pytest.mark.slow
        @pytest.mark.parametrize('name', 't0,t1,t5,s0,s1,s5,ss'.split(','))
        def test_all(self, name):
    >       self.check_function(getattr(self.module, name))
    
    name       = 's0'
    self       = <numpy.f2py.tests.test_return_character.TestF77ReturnCharacter object at 0xf06e6f30>
    
    ../work/numpy-1.16.1-python3_6/test/lib/numpy/f2py/tests/test_return_character.py:87: 
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    
    self = <numpy.f2py.tests.test_return_character.TestF77ReturnCharacter object at 0xf06e6f30>, t = <fortran object>
    
        def check_function(self, t):
            tname = t.__doc__.split()[0]
            if tname in ['t0', 't1', 's0', 's1']:
                assert_(t(23) == b'2')
                r = t('ab')
                assert_(r == b'a', repr(r))
                r = t(array('ab'))
    >           assert_(r == b'a', repr(r))
    E           AssertionError: b' '
    
    r          = b' '
    self       = <numpy.f2py.tests.test_return_character.TestF77ReturnCharacter object at 0xf06e6f30>
    t          = <fortran object>
    tname      = 't0'
    
    ../work/numpy-1.16.1-python3_6/test/lib/numpy/f2py/tests/test_return_character.py:19: AssertionError
    _______________________________________________________________________________________________________________ TestF77ReturnCharacter.test_all[s1] ________________________________________________________________________________________________________________
    
    self = <numpy.f2py.tests.test_return_character.TestF77ReturnCharacter object at 0xf06de4b0>, name = 's1'
    
        @pytest.mark.slow
        @pytest.mark.parametrize('name', 't0,t1,t5,s0,s1,s5,ss'.split(','))
        def test_all(self, name):
    >       self.check_function(getattr(self.module, name))
    
    name       = 's1'
    self       = <numpy.f2py.tests.test_return_character.TestF77ReturnCharacter object at 0xf06de4b0>
    
    ../work/numpy-1.16.1-python3_6/test/lib/numpy/f2py/tests/test_return_character.py:87: 
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    
    self = <numpy.f2py.tests.test_return_character.TestF77ReturnCharacter object at 0xf06de4b0>, t = <fortran object>
    
        def check_function(self, t):
            tname = t.__doc__.split()[0]
            if tname in ['t0', 't1', 's0', 's1']:
                assert_(t(23) == b'2')
                r = t('ab')
                assert_(r == b'a', repr(r))
                r = t(array('ab'))
    >           assert_(r == b'a', repr(r))
    E           AssertionError: b' '
    
    r          = b' '
    self       = <numpy.f2py.tests.test_return_character.TestF77ReturnCharacter object at 0xf06de4b0>
    t          = <fortran object>
    tname      = 't1'
    
    ../work/numpy-1.16.1-python3_6/test/lib/numpy/f2py/tests/test_return_character.py:19: AssertionError
    _______________________________________________________________________________________________________________ TestF90ReturnCharacter.test_all[t0] ________________________________________________________________________________________________________________
    
    self = <numpy.f2py.tests.test_return_character.TestF90ReturnCharacter object at 0xf06e6d90>, name = 't0'
    
        @pytest.mark.slow
        @pytest.mark.parametrize('name', 't0,t1,t5,ts,s0,s1,s5,ss'.split(','))
        def test_all(self, name):
    >       self.check_function(getattr(self.module.f90_return_char, name))
    
    name       = 't0'
    self       = <numpy.f2py.tests.test_return_character.TestF90ReturnCharacter object at 0xf06e6d90>
    
    ../work/numpy-1.16.1-python3_6/test/lib/numpy/f2py/tests/test_return_character.py:146: 
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    
    self = <numpy.f2py.tests.test_return_character.TestF90ReturnCharacter object at 0xf06e6d90>, t = <fortran object>
    
        def check_function(self, t):
            tname = t.__doc__.split()[0]
            if tname in ['t0', 't1', 's0', 's1']:
                assert_(t(23) == b'2')
                r = t('ab')
                assert_(r == b'a', repr(r))
                r = t(array('ab'))
    >           assert_(r == b'a', repr(r))
    E           AssertionError: b' '
    
    r          = b' '
    self       = <numpy.f2py.tests.test_return_character.TestF90ReturnCharacter object at 0xf06e6d90>
    t          = <fortran object>
    tname      = 't0'
    
    ../work/numpy-1.16.1-python3_6/test/lib/numpy/f2py/tests/test_return_character.py:19: AssertionError
    _______________________________________________________________________________________________________________ TestF90ReturnCharacter.test_all[t1] ________________________________________________________________________________________________________________
    
    self = <numpy.f2py.tests.test_return_character.TestF90ReturnCharacter object at 0xf06debb0>, name = 't1'
    
        @pytest.mark.slow
        @pytest.mark.parametrize('name', 't0,t1,t5,ts,s0,s1,s5,ss'.split(','))
        def test_all(self, name):
    >       self.check_function(getattr(self.module.f90_return_char, name))
    
    name       = 't1'
    self       = <numpy.f2py.tests.test_return_character.TestF90ReturnCharacter object at 0xf06debb0>
    
    ../work/numpy-1.16.1-python3_6/test/lib/numpy/f2py/tests/test_return_character.py:146: 
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    
    self = <numpy.f2py.tests.test_return_character.TestF90ReturnCharacter object at 0xf06debb0>, t = <fortran object>
    
        def check_function(self, t):
            tname = t.__doc__.split()[0]
            if tname in ['t0', 't1', 's0', 's1']:
                assert_(t(23) == b'2')
                r = t('ab')
                assert_(r == b'a', repr(r))
                r = t(array('ab'))
    >           assert_(r == b'a', repr(r))
    E           AssertionError: b' '
    
    r          = b' '
    self       = <numpy.f2py.tests.test_return_character.TestF90ReturnCharacter object at 0xf06debb0>
    t          = <fortran object>
    tname      = 't1'
    
    ../work/numpy-1.16.1-python3_6/test/lib/numpy/f2py/tests/test_return_character.py:19: AssertionError
    _______________________________________________________________________________________________________________ TestF90ReturnCharacter.test_all[s0] ________________________________________________________________________________________________________________
    
    self = <numpy.f2py.tests.test_return_character.TestF90ReturnCharacter object at 0xf06e6370>, name = 's0'
    
        @pytest.mark.slow
        @pytest.mark.parametrize('name', 't0,t1,t5,ts,s0,s1,s5,ss'.split(','))
        def test_all(self, name):
    >       self.check_function(getattr(self.module.f90_return_char, name))
    
    name       = 's0'
    self       = <numpy.f2py.tests.test_return_character.TestF90ReturnCharacter object at 0xf06e6370>
    
    ../work/numpy-1.16.1-python3_6/test/lib/numpy/f2py/tests/test_return_character.py:146: 
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    
    self = <numpy.f2py.tests.test_return_character.TestF90ReturnCharacter object at 0xf06e6370>, t = <fortran object>
    
        def check_function(self, t):
            tname = t.__doc__.split()[0]
            if tname in ['t0', 't1', 's0', 's1']:
                assert_(t(23) == b'2')
                r = t('ab')
                assert_(r == b'a', repr(r))
                r = t(array('ab'))
    >           assert_(r == b'a', repr(r))
    E           AssertionError: b' '
    
    r          = b' '
    self       = <numpy.f2py.tests.test_return_character.TestF90ReturnCharacter object at 0xf06e6370>
    t          = <fortran object>
    tname      = 't0'
    
    ../work/numpy-1.16.1-python3_6/test/lib/numpy/f2py/tests/test_return_character.py:19: AssertionError
    _______________________________________________________________________________________________________________ TestF90ReturnCharacter.test_all[s1] ________________________________________________________________________________________________________________
    
    self = <numpy.f2py.tests.test_return_character.TestF90ReturnCharacter object at 0xf0701870>, name = 's1'
    
        @pytest.mark.slow
        @pytest.mark.parametrize('name', 't0,t1,t5,ts,s0,s1,s5,ss'.split(','))
        def test_all(self, name):
    >       self.check_function(getattr(self.module.f90_return_char, name))
    
    name       = 's1'
    self       = <numpy.f2py.tests.test_return_character.TestF90ReturnCharacter object at 0xf0701870>
    
    ../work/numpy-1.16.1-python3_6/test/lib/numpy/f2py/tests/test_return_character.py:146: 
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    
    self = <numpy.f2py.tests.test_return_character.TestF90ReturnCharacter object at 0xf0701870>, t = <fortran object>
    
        def check_function(self, t):
            tname = t.__doc__.split()[0]
            if tname in ['t0', 't1', 's0', 's1']:
                assert_(t(23) == b'2')
                r = t('ab')
                assert_(r == b'a', repr(r))
                r = t(array('ab'))
    >           assert_(r == b'a', repr(r))
    E           AssertionError: b' '
    
    r          = b' '
    self       = <numpy.f2py.tests.test_return_character.TestF90ReturnCharacter object at 0xf0701870>
    t          = <fortran object>
    tname      = 't1'
    
    ../work/numpy-1.16.1-python3_6/test/lib/numpy/f2py/tests/test_return_character.py:19: AssertionError
    ================================================================================================= 8 failed, 7390 passed, 44 skipped, 13 xfailed in 4112.76 seconds =================================================================================================
    

    Edit: (by mattip) to put the log into triple-backquotes for formatting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions