Doctest fix for sphinx 1.2
Merge pull request #215 from SnarkBoojum/master

Doctest fix for sphinx 1.2