~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-02-16 20:00:38 UTC
  • mfrom: (5664.2.1 zip-export-perm)
  • Revision ID: pqm@pqm.ubuntu.com-20110216200038-qnsaoot0pj4lr8o4
(jelmer) Set proper permissions on directories in zip files. (Jelmer
 Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
148
148
        self.assertEqual(['test/a', 'test/b/', 'test/b/c', 'test/d/'], names)
149
149
 
150
150
        file_attr = stat.S_IFREG | export.zip_exporter.FILE_PERMISSIONS
151
 
        dir_attr = stat.S_IFDIR | export.zip_exporter.ZIP_DIRECTORY_BIT
 
151
        dir_attr = (stat.S_IFDIR | export.zip_exporter.ZIP_DIRECTORY_BIT |
 
152
                    export.zip_exporter.DIR_PERMISSIONS)
152
153
 
153
154
        a_info = zfile.getinfo(names[0])
154
155
        self.assertEqual(file_attr, a_info.external_attr)