Rev 5097: (vila) Get better feedback about why in file:///home/pqm/archives/thelove/bzr/%2Btrunk/

Canonical.com Patch Queue Manager pqm at pqm.ubuntu.com
Thu Mar 18 09:13:29 GMT 2010


At file:///home/pqm/archives/thelove/bzr/%2Btrunk/

------------------------------------------------------------
revno: 5097 [merge]
revision-id: pqm at pqm.ubuntu.com-20100318091328-8fo347hq4at1usky
parent: pqm at pqm.ubuntu.com-20100318072627-y6reuz3rao6l0jqp
parent: v.ladeuil+lp at free.fr-20100318084215-jtvgbdffy6bcifnc
committer: Canonical.com Patch Queue Manager <pqm at pqm.ubuntu.com>
branch nick: +trunk
timestamp: Thu 2010-03-18 09:13:28 +0000
message:
  (vila) Get better feedback about why
  	TestGetFileMTime.test_get_file_mtime is failing
modified:
  bzrlib/tests/per_tree/test_get_file_mtime.py test_get_file_mtime.-20070301003805-kjkpwfp4whbm39o1-1
=== modified file 'bzrlib/tests/per_tree/test_get_file_mtime.py'
--- a/bzrlib/tests/per_tree/test_get_file_mtime.py	2009-07-10 07:14:02 +0000
+++ b/bzrlib/tests/per_tree/test_get_file_mtime.py	2010-03-17 13:03:38 +0000
@@ -1,4 +1,4 @@
-# Copyright (C) 2007 Canonical Ltd
+# Copyright (C) 2007, 2009, 2010 Canonical Ltd
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -38,6 +38,7 @@
         # file, working trees return the on-disk time.
         mtime_file_id = tree.get_file_mtime(file_id='one-id')
         self.assertIsInstance(mtime_file_id, (float, int))
-        self.failUnless(now - 5 < mtime_file_id < now + 5)
+        self.failUnless(now - 5 < mtime_file_id < now + 5,
+                        'now: %f, mtime_file_id: %f' % (now, mtime_file_id ))
         mtime_path = tree.get_file_mtime(file_id='one-id', path='one')
         self.assertEqual(mtime_file_id, mtime_path)




More information about the bazaar-commits mailing list