From: Vladimír Vondruš Date: Thu, 18 Jul 2019 08:48:18 +0000 (+0200) Subject: documentation/python: wtf, why None and why not []. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=252f47dee65145c470fe2b3bc301d1744f233f75;p=blog.git documentation/python: wtf, why None and why not []. This was *sometimes* failing during the test, with Jinja complaining that None is not iterable. But not all the time, for some reason. --- diff --git a/documentation/test_python/__init__.py b/documentation/test_python/__init__.py index 92eae451..541d8b04 100644 --- a/documentation/test_python/__init__.py +++ b/documentation/test_python/__init__.py @@ -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') })