Skip to content

Tests fail with Python 3.8 #125

Closed
Closed

Description

@dbast

Failure is persistent with Python 3.8 on linux/osx/win (64bit):

=================================== FAILURES ===================================
____________________________ test_intenums_as_ints _____________________________

    @pytest.mark.unit
    def test_intenums_as_ints():
        class IE(enum.IntEnum):
            val = 123
            bigval = 123123123123123123123123
    
>       assert rj.dumps([IE.val, IE.bigval]) == "[123,123123123123123123123123]"
E       AssertionError: assert '[<IE.val: 12...23123123123>]' == '[123,12312312...123123123123]'
E         - [<IE.val: 123>,<IE.bigval: 123123123123123123123123>]
E         + [123,123123123123123123123123]

tests/test_enum.py:22: AssertionError
========= 1 failed, 679 passed, 16 skipped, 2 xfailed in 2.65 seconds ==========

See also conda-forge/python-rapidjson-feedstock#21

Activity

  1. lelit commented on Nov 2, 2019

    @lelit
    Contributor

    This seems to fix the issue, at least for 3.7 and 3.8... let's see.

  2. dbast commented on Nov 2, 2019

    @dbast
    Author

    Will there be a bugfix release soon or should we cherrypick the mentioned patch?

  3. lelit commented on Nov 2, 2019

    @lelit
    Contributor

    I could easily make a release if you are in a hurry: I was waiting for pypa/cibuildwheel#172...

  4. dbast commented on Nov 3, 2019

    @dbast
    Author

    All fine. Cherry-picked aa16ff9 ... it now build+tests fine with Python 3.6, 3.7, 3.8 (on linux64, osx64, win64) :)

  5. lelit commented on Nov 13, 2019

    @lelit
    Contributor

    I released version 0.9.0 that includes this fix.
    Thanks for the report!

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions