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')

@@ -390,172 +390,12 @@
 s',%0A
-%5D%0A%0A# Pyrap is required for AIPS++ image support, but%0A# not necessary for the rest of the library.%0Atry:%0A    import pyrap%0Aexcept:%0A    pass%0Aelse:%0A    testfiles.append(
+    
 'tkp
@@ -417,6 +417,7 @@
 age'
-)
+%0A%5D
 %0A

Remove special-casing of aipsppimage test