chiark / gitweb /
m.dot, documentation/*: use graphviz 2.44 output for 2.42.2 also.
authorVladimír Vondruš <mosra@centrum.cz>
Sun, 2 Jan 2022 19:16:50 +0000 (20:16 +0100)
committerVladimír Vondruš <mosra@centrum.cz>
Sun, 2 Jan 2022 20:01:26 +0000 (21:01 +0100)
Hope this finally makes the CI pass.

documentation/test_doxygen/test_contents.py
documentation/test_python/test_page.py
plugins/m/test/test_dot.py

index df658017e984dee4c36addadac8a9867b0563e4e..2ead912b1bfb2bb7bcf13a6728229880afa0d53b 100644 (file)
@@ -255,7 +255,8 @@ class Custom(IntegrationTestCase):
     def test_dot(self):
         self.run_doxygen(wildcard='dot.xml')
 
-        if LooseVersion(dot_version()) >= LooseVersion("2.44.0"):
+        # Used to be >= 2.44.0, but 2.42.2 appears to have the same output
+        if LooseVersion(dot_version()) >= LooseVersion("2.42.2"):
             file = 'dot.html'
         elif LooseVersion(dot_version()) > LooseVersion("2.40.0"):
             file = 'dot-240.html'
@@ -338,7 +339,8 @@ class Dot(IntegrationTestCase):
     def test(self):
         self.run_doxygen(wildcard='indexpage.xml')
 
-        if LooseVersion(dot_version()) >= LooseVersion("2.44.0"):
+        # Used to be >= 2.44.0, but 2.42.2 appears to have the same output
+        if LooseVersion(dot_version()) >= LooseVersion("2.42.2"):
             file = 'index.html'
         elif LooseVersion(dot_version()) > LooseVersion("2.40.0"):
             file = 'index-240.html'
index 0d412dbb8209babb9cfef3cc837b1fa09886742e..42e432de1c981b1f931c02581511b91fca70e0d9 100644 (file)
@@ -82,8 +82,8 @@ class Plugins(BaseTestCase):
         })
         self.assertEqual(*self.actual_expected_contents('index.html'))
 
-        # The output is different for every other Graphviz
-        if LooseVersion(dot_version()) >= LooseVersion("2.44.0"):
+        # Used to be >= 2.44.0, but 2.42.2 appears to have the same output
+        if LooseVersion(dot_version()) >= LooseVersion("2.42.2"):
             file = 'dot.html'
         elif LooseVersion(dot_version()) > LooseVersion("2.40.0"):
             file = 'dot-240.html'
index fd3667061598725922b2011a77167923ea24715e..0d227c161023c7a031241d59cbeda2827b7bcbbb 100644 (file)
@@ -43,7 +43,8 @@ class Dot(PelicanPluginTestCase):
             'M_DOT_FONT': 'DejaVu Sans'
         })
 
-        if LooseVersion(dot_version()) >= LooseVersion("2.44.0"):
+        # Used to be >= 2.44.0, but 2.42.2 appears to have the same output
+        if LooseVersion(dot_version()) >= LooseVersion("2.42.2"):
             file = 'page.html'
         elif LooseVersion(dot_version()) > LooseVersion("2.40.0"):
             file = 'page-240.html'