amazon-ion / ion-python

A Python implementation of Amazon Ion.
https://amazon-ion.github.io/ion-docs/
Apache License 2.0
261 stars 51 forks source link

ivmInAnnotationWrapper.10n failed CI/CD with pypy #230

Open cheqianh opened 1 year ago

cheqianh commented 1 year ago

Test file bad/ivmInAnnotationWrapper.10n failed with pypy but works on CPython.

---------- test_basic[BAD - bad/ivmInAnnotationWrapper_10n ]
p = <tests.test_vectors._Parameter object at 0x0000000008b25be8>

    @parametrize(*chain(
        _basic_params(_T.GOOD, _GOOD_SUBDIR),
        _basic_params(_T.GOOD, _GOOD_TIMESTAMP_SUBDIR),
        _basic_params(_T.BAD, _BAD_SUBDIR),
        _basic_params(_T.BAD, _BAD_TIMESTAMP_SUBDIR),
        _basic_params(_T.BAD, _BAD_UTF8_SUBDIR),
    ))
    def test_basic(p):
        """Tests basic (good/bad) reading without roundtrips. Because the data is lazily parsed, all tests are guaranteed
        to run, even if preceding tests fail, unless there are failures in parameter generation.
        """
>       p.test_thunk()

tests/test_vectors.py:390: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    def bad():
        with _open(file) as vector:
            with raises((IonException, ValueError, TypeError)):
>               load(vector, single_value=False)
E               Failed: DID NOT RAISE (<class 'amazon.ion.exceptions.IonException'>, <class 'ValueError'>, <class 'TypeError'>)

tests/test_vectors.py:250: Failed
cheqianh commented 1 year ago

Added this file into skip list for pypy, still needs to investigate why.