tests/test-config-env.py
changeset 43878 527eba3013ea
parent 43076 2372284d9457
child 44033 1864efbe90d9
--- a/tests/test-config-env.py	Thu Dec 12 12:57:13 2019 -0800
+++ b/tests/test-config-env.py	Thu Dec 12 09:59:03 2019 -0800
@@ -6,6 +6,7 @@
 
 from mercurial import (
     encoding,
+    extensions,
     rcutil,
     ui as uimod,
     util,
@@ -35,9 +36,10 @@
     return [join(b'userrc')]
 
 
+extensions.wrapfunction(rcutil, 'defaultrcpath', lambda orig: [])
+
 rcutil.systemrcpath = systemrcpath
 rcutil.userrcpath = userrcpath
-os.path.isdir = lambda x: False  # hack: do not load default.d/*.rc
 
 # utility to print configs
 def printconfigs(env):