# HG changeset patch # User Augie Fackler # Date 1238514621 18000 # Node ID b1543f243910cfb2af89996d67b02ad568b6f744 # Parent 4c3bad24f950fee21139cfdd3ca2fc3eca36de04 tests: Start providing our own custom hgrc for testing purposes. diff --git a/tests/test_util.py b/tests/test_util.py --- 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