import platform

# import astropy._compiler
import astropy.cosmology.flrw.scalar_inv_efuncs
import astropy.io.ascii.cparser
import astropy.io.votable.tablewriter
import astropy.modeling.projections
import astropy.timeseries.periodograms.lombscargle.implementations.cython_impl
import astropy.table._column_mixins
import astropy.table._np_utils
import astropy.utils.xml.iterparser
import astropy.wcs._wcs

# We run a subset of the tests which are the most likely to have
# issues because they rely on C extensions and bundled libraries

from astropy import test

# Do not include the io.ascii tests unless/until this issue is fixed:
# https://github.com/astropy/astropy/issues/9864
#
# They take more than two hours to run on some platforms!
# test(package='io.ascii')

if ((platform.machine() == 'aarch64') and
    (platform.python_implementation().lower() != 'cpython')):
    print('WARNING: Skipping tests on aarch64/PyPy because they take too long')

else:
    test(package='time')
    test(package='wcs')
    test(package='convolution')