Mercurial > python-hglib
view tests/test-hglib.py @ 67:730c42743ba3
tests: cleanup on test finish so Windows doesn't complain about used files
- chdir out of the test dir before rmtree
- cache instances of hgclient and close them explicitly on tearDown before
rmtree
author | Idan Kamara <idankk86@gmail.com> |
---|---|
date | Mon, 05 Sep 2011 20:51:29 +0300 |
parents | d1f57f162274 |
children | 1b47146a4a2c |
line wrap: on
line source
import common, hglib class test_hglib(common.basetest): def setUp(self): pass def test_close_fds(self): """ A weird Python bug that has something to do to inherited file descriptors, see http://bugs.python.org/issue12786 """ common.basetest.setUp(self) client2 = hglib.open() self.client.close()