comparison tests/__init__.py @ 71:20ffb6486412

tests: put some characters in HGRCPATH so Windows actually sees the variable
author Idan Kamara <idankk86@gmail.com>
date Mon, 26 Sep 2011 22:25:36 +0300
parents bdc1650f216c
children cc2b7540fa2b
comparison
equal deleted inserted replaced
70:bdc1650f216c 71:20ffb6486412
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 os.environ["HGRCPATH"] = os.pathsep
20 20
21 def tearDown(self): 21 def tearDown(self):
22 os.chdir('..') 22 os.chdir('..')
23 shutil.rmtree(os.environ["HGTMP"]) 23 shutil.rmtree(os.environ["HGTMP"])