~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_export.py

  • Committer: Martin
  • Date: 2010-04-14 00:11:32 UTC
  • mto: This revision was merged to the branch mainline in revision 5164.
  • Revision ID: gzlist@googlemail.com-20100414001132-6m1ru11mbfu87x6m
Fix os.utime test failures, three on FAT filesystems and one with readonly files

Show diffs side-by-side

added added

removed removed

Lines of Context:
298
298
        tree = self.example_branch()
299
299
        self.build_tree_contents([('branch/har', 'foo')])
300
300
        tree.add('har')
301
 
        tree.commit('setup', timestamp=42)
 
301
        # Earliest allowable date on FAT32 filesystems is 1980-01-01
 
302
        tree.commit('setup', timestamp=315532800)
302
303
        self.run_bzr('export --per-file-timestamps t branch')
303
304
        har_st = os.stat('t/har')
304
 
        self.assertEquals(42, har_st.st_mtime)
 
305
        self.assertEquals(315532800, har_st.st_mtime)
305
306