chiark / gitweb /
documentation/python: wtf, why None and why not [].
authorVladimír Vondruš <mosra@centrum.cz>
Thu, 18 Jul 2019 08:48:18 +0000 (10:48 +0200)
committerVladimír Vondruš <mosra@centrum.cz>
Thu, 18 Jul 2019 15:41:11 +0000 (17:41 +0200)
This was *sometimes* failing during the test, with Jinja complaining
that None is not iterable. But not all the time, for some reason.

documentation/test_python/__init__.py

index 92eae4513977161d3491b9c3b7a5e9c1ea20bb67..541d8b040881560a8796c1a02c50bbcd7555e420 100644 (file)
@@ -76,8 +76,8 @@ class BaseTestCase(unittest.TestCase):
             'FINE_PRINT': None,
             'THEME_COLOR': None,
             'FAVICON': None,
-            'LINKS_NAVBAR1': None,
-            'LINKS_NAVBAR2': None,
+            'LINKS_NAVBAR1': [],
+            'LINKS_NAVBAR2': [],
             'SEARCH_DISABLED': True,
             'OUTPUT': os.path.join(self.path, 'output')
         })