~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_win32utils.py

  • Committer: Alexander Belchenko
  • Date: 2009-07-03 10:08:58 UTC
  • mto: (4506.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 4507.
  • Revision ID: bialix@ukr.net-20090703100858-wz8hbr3514gd085l
Set hidden attribute on .bzr directory below unicode path should never fail with error. The operation should succeed even if bzr unable to set the attribute.  (related to bug #335362).

Show diffs side-by-side

added added

removed removed

Lines of Context:
238
238
 
239
239
    def restoreCtypes(self):
240
240
        win32utils.has_ctypes = self.old_ctypes
 
241
 
 
242
 
 
243
class TestSetHidden(TestCaseInTempDir):
 
244
 
 
245
    def test_unicode(self):
 
246
        # we should not raise traceback if we try to set hidden attribute
 
247
        # on .bzr directory below unicode path
 
248
        os.mkdir(u'\u1234')
 
249
        win32utils.set_file_attr_hidden(u'\u1234')