import unittest

testfiles = [
    'tkp.tests.accessors',
    'tkp.tests.classification',
    'tkp.tests.config',
    'tkp.tests.coordinates',
    'tkp.tests.database',
    'tkp.tests.dataset',
    'tkp.tests.FDR',
    'tkp.tests.feature_extraction',
    'tkp.tests.gaussian',
    'tkp.tests.L15_12h_const',
    'tkp.tests.sigmaclip',
    'tkp.tests.source_measurements',
    'tkp.tests.wcs',
]

# Pyrap is required for AIPS++ image support, but
# not necessary for the rest of the library.
try:
    import pyrap
except:
    pass
else:
    testfiles.append('tkp.tests.aipsppimage')

import unittest

testfiles = [
    'tkp.tests.accessors',
    'tkp.tests.classification',
    'tkp.tests.config',
    'tkp.tests.coordinates',
    'tkp.tests.database',
    'tkp.tests.dataset',
    'tkp.tests.FDR',
    'tkp.tests.feature_extraction',
    'tkp.tests.gaussian',
    'tkp.tests.L15_12h_const',
    'tkp.tests.sigmaclip',
    'tkp.tests.source_measurements',
    'tkp.tests.wcs',
    'tkp.tests.aipsppimage'
]

Remove special-casing of aipsppimage test