test-revlog-mmapindex: make it compatible with chg
authorJun Wu <quark@fb.com>
Mon, 02 Oct 2017 19:31:33 -0700
changeset 34446 b0c97e44576f
parent 34445 5b19f0442043
child 34447 5385b76fd1fd
test-revlog-mmapindex: make it compatible with chg The test misses an explicit flush(). Differential Revision: https://phab.mercurial-scm.org/D918
tests/test-revlog-mmapindex.t
--- a/tests/test-revlog-mmapindex.t	Mon Oct 02 19:10:32 2017 -0700
+++ b/tests/test-revlog-mmapindex.t	Mon Oct 02 19:31:33 2017 -0700
@@ -9,11 +9,12 @@
   >     util,
   > )
   > 
-  > def mmapread(orig, fp):
-  >     print "mmapping %s" % fp.name
-  >     return orig(fp)
+  > def extsetup(ui):
+  >     def mmapread(orig, fp):
+  >         ui.write("mmapping %s\n" % fp.name)
+  >         ui.flush()
+  >         return orig(fp)
   > 
-  > def extsetup(ui):
   >     extensions.wrapfunction(util, 'mmapread', mmapread)
   > EOF