chiark / gitweb /
doxygen: skip the example test on Doxygen < 1.8.14.
authorVladimír Vondruš <mosra@centrum.cz>
Thu, 18 Jan 2018 14:08:55 +0000 (15:08 +0100)
committerVladimír Vondruš <mosra@centrum.cz>
Thu, 18 Jan 2018 18:30:28 +0000 (19:30 +0100)
doxygen/test/test_example.py

index 3e8bfb073c7bef47af9c62d90309ea3e4200bcfe..adbc564b6b89594feaec0fc14fa1164ce7fdc0e4 100644 (file)
@@ -32,8 +32,11 @@ class Example(IntegrationTestCase):
     def __init__(self, *args, **kwargs):
         super().__init__(__file__, '', *args, **kwargs)
 
+    @unittest.skipUnless(LooseVersion(doxygen_version()) > LooseVersion("1.8.13"),
+                         "needs to have file extension exposed in the XML")
     def test(self):
         self.run_dox2html5(index_pages=[], wildcard='*.xml')
+
         self.assertEqual(*self.actual_expected_contents('path-prefix_2CMakeLists_8txt-example.html'))
         self.assertEqual(*self.actual_expected_contents('path-prefix_2configure_8h_8cmake-example.html'))
         self.assertEqual(*self.actual_expected_contents('path-prefix_2main_8cpp-example.html'))