tests: port test-doctest.py from core hg
We already have a doctest string for evolve.obshistory.cyclic(), but of course it didn't actually run. Something like test-doctest.py is first needed to run doctests via run-tests.py.
Edited by Anton Shestakov