chiark
/
gitweb
/
~cjwatson
/
blog.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2291165
)
documentation/python: wtf, why None and why not [].
author
Vladimír Vondruš
<mosra@centrum.cz>
Thu, 18 Jul 2019 08:48:18 +0000
(10:48 +0200)
committer
Vladimí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
patch
|
blob
|
history
diff --git
a/documentation/test_python/__init__.py
b/documentation/test_python/__init__.py
index 92eae4513977161d3491b9c3b7a5e9c1ea20bb67..541d8b040881560a8796c1a02c50bbcd7555e420 100644
(file)
--- 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')
})