From: Vladimír Vondruš Date: Thu, 18 Jan 2018 14:08:55 +0000 (+0100) Subject: doxygen: skip the example test on Doxygen < 1.8.14. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=fb0132a002f69545837d2b82f1b7dc1490a00564;p=blog.git doxygen: skip the example test on Doxygen < 1.8.14. --- diff --git a/doxygen/test/test_example.py b/doxygen/test/test_example.py index 3e8bfb07..adbc564b 100644 --- a/doxygen/test/test_example.py +++ b/doxygen/test/test_example.py @@ -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'))