File: skip-mxml-tests.patch

package info (click to toggle)
python-nxs 4.4.1-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 888 kB
  • sloc: python: 2,752; makefile: 152; sh: 10
file content (27 lines) | stat: -rw-r--r-- 1,027 bytes parent folder | download | duplicates (3)
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")