Mercurial > python-hglib
view tests/test-clone.py @ 118:e738d6fe5f3f 1.1
tests: make the tests work under Pypy (issue3965)
..which needs explicit close() due to lack of reference counting.
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sun, 23 Jun 2013 17:52:16 -0500 |
parents | a4fcece7dd8e |
children | 4359cabcb0cc |
line wrap: on
line source
import os import common import hglib class test_clone(common.basetest): def test_basic(self): self.append('a', 'a') self.client.commit('first', addremove=True) cloned = hglib.clone('.', 'cloned') self.assertRaises(ValueError, cloned.log) cloned.open() self.assertEquals(self.client.log(), cloned.log())