=== modified file 'bzrlib/tests/test_lockdir.py'
--- old/bzrlib/tests/test_lockdir.py	2011-06-10 07:31:54 +0000
+++ new/bzrlib/tests/test_lockdir.py	2011-11-02 15:43:22 +0000
@@ -684,6 +684,8 @@
 
     def test_lock_holder_dead_process(self):
         """Detect that the holder (this process) is still running."""
+        self.overrideAttr(lockdir, 'get_host_name',
+            lambda: 'notlocalhost')
         info = LockHeldInfo.for_this_process(None)
         info.info_dict['pid'] = '123123123'
         if sys.platform == 'win32':
@@ -731,6 +733,8 @@
 
         This generates a warning but no other user interaction.
         """
+        self.overrideAttr(lockdir, 'get_host_name',
+            lambda: 'notlocalhost')
         # This is off by default at present; see the discussion in the bug.
         # If you change the default, don't forget to update the docs.
         config.GlobalConfig().set_user_option('locks.steal_dead', True)

