ion-python
ion-python copied to clipboard
ivmInAnnotationWrapper.10n failed CI/CD with pypy
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
Added this file into skip list for pypy
, still needs to investigate why.