Mercurial > python-hglib
comparison tests/__init__.py @ 70:bdc1650f216c
tests: set HGRCPATH so local hgrc's aren't loaded
author | Idan Kamara <idankk86@gmail.com> |
---|---|
date | Fri, 09 Sep 2011 23:05:57 +0300 |
parents | 730c42743ba3 |
children | 20ffb6486412 |
comparison
equal
deleted
inserted
replaced
69:e89dd99638ce | 70:bdc1650f216c |
---|---|
14 os.environ["HGUSER"] = "test" | 14 os.environ["HGUSER"] = "test" |
15 os.environ["HGENCODING"] = "ascii" | 15 os.environ["HGENCODING"] = "ascii" |
16 os.environ["HGENCODINGMODE"] = "strict" | 16 os.environ["HGENCODINGMODE"] = "strict" |
17 tmpdir = tempfile.mkdtemp('', 'python-hglib.') | 17 tmpdir = tempfile.mkdtemp('', 'python-hglib.') |
18 os.environ["HGTMP"] = os.path.realpath(tmpdir) | 18 os.environ["HGTMP"] = os.path.realpath(tmpdir) |
19 os.environ["HGRCPATH"] = "" | |
19 | 20 |
20 def tearDown(self): | 21 def tearDown(self): |
21 os.chdir('..') | 22 os.chdir('..') |
22 shutil.rmtree(os.environ["HGTMP"]) | 23 shutil.rmtree(os.environ["HGTMP"]) |