diff tests/test_util.py @ 1001:26aa0172725b

test_util: specify a username in our test-run hgrc.
author Augie Fackler <raf@durin42.com>
date Fri, 12 Apr 2013 16:23:46 -0400
parents 9c3b4f59e7e6
children 6945d3359456
line wrap: on
line diff
--- a/tests/test_util.py
+++ b/tests/test_util.py
@@ -259,6 +259,7 @@ class TestBase(unittest.TestCase):
         self.hgrc = os.path.join(self.tmpdir, '.hgrc')
         os.environ['HGRCPATH'] = self.hgrc
         rc = open(self.hgrc, 'w')
+        rc.write('[ui]\nusername=test-user\n')
         for l in '[extensions]', 'hgsubversion=':
             print >> rc, l
 
@@ -543,4 +544,3 @@ files:     {files}
 
     def draw(self, repo):
         sys.stdout.write(self.getgraph(repo))
-