ion-python icon indicating copy to clipboard operation
ion-python copied to clipboard

ivmInAnnotationWrapper.10n failed CI/CD with pypy

Open cheqianh opened this issue 2 years ago • 1 comments

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 avatar Dec 23 '22 21:12 cheqianh

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

cheqianh avatar Jan 10 '23 20:01 cheqianh