tests/test-doctest.py
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
Sat, 14 Oct 2006 18:47:48 -0300
changeset 3390 a74addddd092
parent 3224 394ac87f3b74
child 4122 306055f5b65c
permissions -rw-r--r--
make revlog.addgroup pass its file handles to addrevision This should fix issue255. It looks like the problem there happens when addgroup calls addrevision to add a full revision, and addrevision decides to split the index file into a .i/.d pair. Since addgroup has an open file handle for the index file, the renaming of the new .i file to its final name fails on windows.

#!/usr/bin/env python
#

import doctest

import mercurial.changelog
# test doctest from changelog

doctest.testmod(mercurial.changelog)