test_doc: make doctesting more robust wrt hash-changes (#968)
commitfd510e84d8e80de901bf846b242273f02297d4fd
authorKirill Smelkov <kirr@landau.phys.spbu.ru>
Sat, 9 Aug 2008 12:40:52 +0000 (9 16:40 +0400)
committerKirill Smelkov <kirr@landau.phys.spbu.ru>
Sat, 9 Aug 2008 12:40:52 +0000 (9 16:40 +0400)
tree3ae26512821fa4cac338d0ca12bab3c01555f11e
parent53555bed5d3531c88fa7f97b7040d70e34a3b9cd
test_doc: make doctesting more robust wrt hash-changes  (#968)

This is achieved through hooking our sstrrepr function into sys.display hook.

reminder: sstrrepr uses StrPrinter, which prints containers with human-friendly
          hash-stable ordering -- that's why it works.

We'll adjust ordering in docstrings all-over the place in the next patch.

Signed-off-by: Kirill Smelkov <kirr@landau.phys.spbu.ru>
Signed-off-by: Ondrej Certik <ondrej@certik.cz>
setup.py