Basically, the test code uses its own copy of the template file "base.html" to test doc generation. But there's a dependency between the Python doc generation code and the template - for example, the code expects specific elements to exist in the template, so it knows where to shove things like lists of high-level module links. Meaning that every now and then I need to update the cope of base.html used by the test code. This is a hack which I did only because I was too lazy to update the test code to copy the real base.html and use that. But I've now updated the test code to do that.