Make tests use \[ to escape brackets instead of [[ (#7521)
The main motivation here (though I also just like it more) is that
editor indentation modes won't get confused by unnested brackets when
editing test files in python-mode, which I do all the time.