SF patch 1167316:  doctest.py fails self-test if run directly.

Patch by Ilya Sandler.

Bugfix candidate.
1 file changed