tests: set a default encoding for running tests (ASCII)
authorMatt Mackall <mpm@selenic.com>
Sun, 03 Dec 2006 16:16:33 -0600
changeset 3776 037824e6d362
parent 3775 6859d049ed9c
child 3777 5da370c2f72d
tests: set a default encoding for running tests (ASCII)
tests/run-tests.py
--- a/tests/run-tests.py	Sun Dec 03 16:16:33 2006 -0600
+++ b/tests/run-tests.py	Sun Dec 03 16:16:33 2006 -0600
@@ -332,6 +332,8 @@
 os.environ["HGEDITOR"] = sys.executable + ' -c "import sys; sys.exit(0)"'
 os.environ["HGMERGE"]  = sys.executable + ' -c "import sys; sys.exit(0)"'
 os.environ["HGUSER"]   = "test"
+os.environ["HGENCODING"] = "ascii"
+os.environ["HGENCODINGMODE"] = "strict"
 
 TESTDIR = os.environ["TESTDIR"] = os.getcwd()
 HGTMP   = os.environ["HGTMP"]   = tempfile.mkdtemp("", "hgtests.")