~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_tree/test_get_file_mtime.py

  • Committer: John Arbash Meinel
  • Date: 2011-05-11 11:35:28 UTC
  • mto: This revision was merged to the branch mainline in revision 5851.
  • Revision ID: john@arbash-meinel.com-20110511113528-qepibuwxicjrbb2h
Break compatibility with python <2.6.

This includes auditing the code for places where we were doing
explicit 'sys.version' checks and removing them as appropriate.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
        # file, working trees return the on-disk time.
39
39
        mtime_file_id = tree.get_file_mtime(file_id='one-id')
40
40
        self.assertIsInstance(mtime_file_id, (float, int))
41
 
        self.failUnless(now - 5 < mtime_file_id < now + 5,
 
41
        self.assertTrue(now - 5 < mtime_file_id < now + 5,
42
42
                        'now: %f, mtime_file_id: %f' % (now, mtime_file_id ))
43
43
        mtime_path = tree.get_file_mtime(file_id='one-id', path='one')
44
44
        self.assertEqual(mtime_file_id, mtime_path)