Fix regression in test_pages.py

I introduced this in d9783f1e, and @wilkie caught it in #724. (Did I
ignore Travis, or is it not working right?)