Made a doctest compatible with Python 2

That test might not always execute, but can be executed when the
parent test label is explicitely given.