Patchwork [4,of,9] test-filecache: alias ui as uimod

login
register
mail settings
Submitter Yuya Nishihara
Date April 5, 2016, 4:05 p.m.
Message ID <5d1939d4c7ddf07c0e21.1459872312@mimosa>
Download mbox | patch
Permalink /patch/14375/
State Accepted
Headers show

Comments

Yuya Nishihara - April 5, 2016, 4:05 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1459865776 -32400
#      Tue Apr 05 23:16:16 2016 +0900
# Node ID 5d1939d4c7ddf07c0e21b78217c0745dc4441366
# Parent  8d0917602b144a6426162dd1885a1743428b09d9
test-filecache: alias ui as uimod

Patch

diff --git a/tests/test-filecache.py b/tests/test-filecache.py
--- a/tests/test-filecache.py
+++ b/tests/test-filecache.py
@@ -11,7 +11,7 @@  from mercurial import (
     extensions,
     hg,
     scmutil,
-    ui,
+    ui as uimod,
     util,
 )
 
@@ -141,7 +141,7 @@  def fakeuncacheable():
 def test_filecache_synced():
     # test old behavior that caused filecached properties to go out of sync
     os.system('hg init && echo a >> a && hg ci -qAm.')
-    repo = hg.repository(ui.ui())
+    repo = hg.repository(uimod.ui())
     # first rollback clears the filecache, but changelog to stays in __dict__
     repo.rollback()
     repo.commit('.')