1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
Description: Skip tests that use libmxml
The current version of nexus is not compatible with the libmxml 3 and so
mxml support is disabled in the library.
Author: Stuart Prescott <stuart@debian.org>
--- a/nxs/test/napi/test_file_creation.py
+++ b/nxs/test/napi/test_file_creation.py
@@ -19,14 +19,20 @@
class test_file_creation(unittest.TestCase):
+ @unittest.skipIf('SKIP_NXS_TESTS_HDF5' in os.environ,
+ "HDF5 tests disabled in environment")
def test_hdf5(self):
f = napi.open("test_hdf5.nxs","w5")
os.remove("test_hdf5.nxs")
+ @unittest.skipIf('SKIP_NXS_TESTS_HDF4' in os.environ,
+ "HDF4 tests disabled in environment")
def test_hdf4(self):
f = napi.open("test_hdf4.nxs","w4")
os.remove("test_hdf4.nxs")
+ @unittest.skipIf('SKIP_NXS_TESTS_MXML' in os.environ,
+ "MXML tests disabled in environment")
def test_mxml(self):
f = napi.open("test_mxml.nxs","wx")
|