/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test__dirstate_helpers.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-04-29 11:54:29 UTC
  • mfrom: (5813.2.1 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20110429115429-bi5nv4kqmyrbtzx0
(jameinel) Skip a test that called os.utime(dir) if the filesystem doesn't
 support it. (John A Meinel)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1020
1020
                         state._dirblock_state)
1021
1021
        # Change the last-modified time for the directory
1022
1022
        t = time.time() - 100.0
1023
 
        os.utime('a', (t, t))
 
1023
        try:
 
1024
            os.utime('a', (t, t))
 
1025
        except OSError:
 
1026
            # It looks like Win32 + FAT doesn't allow to change times on a dir.
 
1027
            raise tests.TestSkipped("can't update mtime of a dir on FAT")
1024
1028
        saved_packed_stat = entry[1][0][-1]
1025
1029
        self.assertIs(None, self.do_update_entry(state, entry, 'a'))
1026
1030
        # We *do* go ahead and update the information in the dirblocks, but we