~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Alexander Belchenko
  • Date: 2007-02-17 07:11:47 UTC
  • mto: This revision was merged to the branch mainline in revision 2304.
  • Revision ID: bialix@ukr.net-20070217071147-pc4zm6d4rc8zqv77
Bugfix #85599: ``bzr init`` works with unicode argument LOCATION

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
    branch as _mod_branch,
25
25
    )
26
26
from bzrlib.bzrdir import BzrDirMetaFormat1
 
27
from bzrlib.tests import TestSkipped
27
28
from bzrlib.tests.blackbox import ExternalBase
28
29
from bzrlib.tests.test_sftp_transport import TestCaseWithSFTPServer
29
30
from bzrlib.workingtree import WorkingTree
109
110
        self.run_bzr('init')
110
111
        self.assertFalse(os.path.exists('.bzrignore'))
111
112
 
 
113
    def test_init_unicode(self):
 
114
        # Make sure getcwd can handle unicode filenames
 
115
        try:
 
116
            os.mkdir(u'mu-\xb5')
 
117
        except UnicodeError:
 
118
            raise TestSkipped("Unable to create Unicode filename")
 
119
        # try to init unicode dir
 
120
        self.run_bzr('init', u'mu-\xb5')
 
121
 
112
122
 
113
123
class TestSFTPInit(TestCaseWithSFTPServer):
114
124