Mercurial > hgsubversion
diff tests/test_util.py @ 231:b1543f243910
tests: Start providing our own custom hgrc for testing purposes.
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Tue, 31 Mar 2009 10:50:21 -0500 |
parents | 13ae1bded5e7 |
children | 4950b18cf949 |
line wrap: on
line diff
--- a/tests/test_util.py +++ b/tests/test_util.py @@ -97,6 +97,10 @@ class TestBase(unittest.TestCase): self.oldwd = os.getcwd() self.tmpdir = tempfile.mkdtemp( 'svnwrap_test', dir=os.environ.get('HGSUBVERSION_TEST_TEMP', None)) + self.hgrc = os.path.join(self.tmpdir, '.hgrc') + os.environ['HGRCPATH'] = self.hgrc + rc = open(self.hgrc, 'w') + rc.write('[extensions]\nhgsubversion=') self.repo_path = '%s/testrepo' % self.tmpdir self.wc_path = '%s/testrepo_wc' % self.tmpdir