--- a/tests/test-config-env.py Thu Jul 18 12:03:29 2024 +0200
+++ b/tests/test-config-env.py Thu Jul 18 12:36:12 2024 +0200
@@ -15,6 +15,7 @@
testtmp = encoding.environ[b'TESTTMP']
+
# prepare hgrc files
def join(name):
return os.path.join(testtmp, name)
@@ -26,6 +27,7 @@
with open(join(b'userrc'), 'wb') as f:
f.write(b'[ui]\neditor=e1')
+
# replace rcpath functions so they point to the files above
def systemrcpath():
return [join(b'sysrc')]
@@ -40,6 +42,7 @@
rcutil.systemrcpath = systemrcpath
rcutil.userrcpath = userrcpath
+
# utility to print configs
def printconfigs(env):
encoding.environ = env