changeset 208:12e6aaef0f6e

tests: handle the removal of `obsolete._enabled` in Mercurial I'm not sure why we can't just set `experimental.evolution=all`, but it didn't work.
author Matt Harbison <matt_harbison@yahoo.com>
date Tue, 07 May 2019 22:16:59 -0400
parents 33b512aa8dba
children 522cefa8cb45
files tests/test-hidden.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-hidden.py	Mon Apr 30 10:38:03 2018 -0400
+++ b/tests/test-hidden.py	Tue May 07 22:16:59 2019 -0400
@@ -22,6 +22,9 @@
         super(test_obsolete_baselib, self).setUp()
         self.append('.hg/obs.py',
                     "import mercurial.obsolete\n"
+                    "# 3.2 and later\n"
+                    "mercurial.obsolete.isenabled = lambda r, opt: True\n"
+                    "# Dropped in 5.1\n"
                     "mercurial.obsolete._enabled = True")
         self.append('.hg/hgrc','\n[extensions]\nobs=.hg/obs.py')