Skip to content

Commit

Permalink
Adds two tests to the skip list for pypy compatible. (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
cheqianh committed Jan 4, 2023
1 parent ef99d1e commit dbd59b1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ion-c
Submodule ion-c updated from 2671a0 to 093cc1
7 changes: 7 additions & 0 deletions tests/test_vectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# License.
import io
import struct
import sys
from collections import defaultdict
from decimal import getcontext
from enum import IntEnum
Expand All @@ -30,6 +31,7 @@
from tests import parametrize
from amazon.ion.simpleion import c_ext

PYPY = hasattr(sys, 'pypy_translation_info')

# This file lives in the tests/ directory. Up one level is tests/ and up another level is the package root, which
# contains the vectors/ directory.
Expand Down Expand Up @@ -118,6 +120,11 @@ def _open(file):
_good_file(u'subfieldVarInt.ion'), # c_ext supports 300 decimal digits while here is a 8000+ decimal digits test..
)

if PYPY:
_SKIP_LIST += (
_good_file(u'subfieldVarInt.ion'), # amzn/ion-python#229
_bad_file(u'ivmInAnnotationWrapper.10n'), # TODO ion-python#230
)

if _PLATFORM_ARCHITECTURE == 32:
_SKIP_LIST += (
Expand Down
2 changes: 1 addition & 1 deletion vectors

0 comments on commit dbd59b1

Please sign in to comment.