Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test failures with pytest 5+ #238

Open
FRidh opened this issue Aug 18, 2019 · 0 comments
Open

Test failures with pytest 5+ #238

FRidh opened this issue Aug 18, 2019 · 0 comments

Comments

@FRidh
Copy link

FRidh commented Aug 18, 2019

============================= test session starts ==============================
platform linux -- Python 3.7.4, pytest-5.1.0, py-1.8.0, pluggy-0.12.0
rootdir: /build/source
collected 332 items

datashape/tests/test_coretypes.py ...................................... [ 11%]
....................................xx.................................. [ 33%]
.xxxx...............................                                     [ 43%]
datashape/tests/test_creation.py ..x..............xx...                  [ 50%]
datashape/tests/test_discovery.py ...................................... [ 62%]
.......x..                                                               [ 65%]
datashape/tests/test_lexer.py .....                                      [ 66%]
datashape/tests/test_operations.py ...                                   [ 67%]
datashape/tests/test_parser.py ...............................           [ 76%]
datashape/tests/test_predicates.py ....                                  [ 78%]
datashape/tests/test_promote.py ........................                 [ 85%]
datashape/tests/test_typeset.py ......                                   [ 87%]
datashape/tests/test_util.py .............................               [ 95%]
datashape/tests/test_version.py .                                        [ 96%]
datashape/util/tests/test_testing.py ..FF.........                       [100%]

=================================== FAILURES ===================================
_________________________________ test_record __________________________________

    def test_record():
        assert_dshape_equal(
            R['a': int32, 'b': float32],
            R['a': int32, 'b': float32],
        )
    
        with pytest.raises(AssertionError) as e:
            assert_dshape_equal(
                R['a': int32, 'b': float32],
                R['a': int32, 'b': int32],
            )
>       assert "'float32' != 'int32'" in str(e)
E       assert "'float32' != 'int32'" in '<ExceptionInfo AssertionError tblen=5>'
E        +  where '<ExceptionInfo AssertionError tblen=5>' = str(<ExceptionInfo AssertionError tblen=5>)

datashape/util/tests/test_testing.py:80: AssertionError
__________________________________ test_tuple __________________________________

    def test_tuple():
        assert_dshape_equal(Tuple((int32, float32)), Tuple((int32, float32)))
    
        with pytest.raises(AssertionError) as e:
            assert_dshape_equal(Tuple((int32, float32)), Tuple((int32, int32)))
>       assert "'float32' != 'int32'" in str(e)
E       assert "'float32' != 'int32'" in '<ExceptionInfo AssertionError tblen=7>'
E        +  where '<ExceptionInfo AssertionError tblen=7>' = str(<ExceptionInfo AssertionError tblen=7>)

datashape/util/tests/test_testing.py:127: AssertionError
=============================== warnings summary ===============================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant