Rev 4812: Without ino and dev, we can't assume that the stat result won't accidentally be the same. in http://bazaar.launchpad.net/~jameinel/bzr/2.1.0b4-win32-accepted

John Arbash Meinel john at arbash-meinel.com
Wed Nov 18 16:10:25 GMT 2009


At http://bazaar.launchpad.net/~jameinel/bzr/2.1.0b4-win32-accepted

------------------------------------------------------------
revno: 4812 [merge]
revision-id: john at arbash-meinel.com-20091118161018-6bq0t503phont56u
parent: john at arbash-meinel.com-20091118160827-39riegxus1zihosi
parent: john at arbash-meinel.com-20091111075050-hkda4ea6wd1ywh76
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: 2.1.0b4-win32-accepted
timestamp: Wed 2009-11-18 10:10:18 -0600
message:
  Without ino and dev, we can't assume that the stat result won't accidentally be the same.
  
  So instead, we force the content to be different.
modified:
  bzrlib/tests/test_selftest.py  test_selftest.py-20051202044319-c110a115d8c0456a
-------------- next part --------------
=== modified file 'bzrlib/tests/test_selftest.py'
--- a/bzrlib/tests/test_selftest.py	2009-11-01 05:41:57 +0000
+++ b/bzrlib/tests/test_selftest.py	2009-11-08 04:44:23 +0000
@@ -490,9 +490,9 @@
         self.assertEqualStat(real, fake)
 
     def test_assertEqualStat_notequal(self):
-        self.build_tree(["foo", "bar"])
+        self.build_tree(["foo", "longname"])
         self.assertRaises(AssertionError, self.assertEqualStat,
-            os.lstat("foo"), os.lstat("bar"))
+            os.lstat("foo"), os.lstat("longname"))
 
 
 class TestTestCaseWithMemoryTransport(tests.TestCaseWithMemoryTransport):



More information about the bazaar-commits mailing list