~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_osutils.py

  • Committer: John Arbash Meinel
  • Date: 2006-07-03 15:51:44 UTC
  • mto: This revision was merged to the branch mainline in revision 1851.
  • Revision ID: john@arbash-meinel.com-20060703155144-f7a5a4b7695cc159
Use a directory name that doesn't get messed up on Mac for getcwd() test.

Show diffs side-by-side

added added

removed removed

Lines of Context:
198
198
    def test_getcwd(self):
199
199
        # Make sure getcwd can handle unicode filenames
200
200
        try:
201
 
            os.mkdir(u'B\xe5gfors')
 
201
            os.mkdir(u'mu-\xb5')
202
202
        except UnicodeError:
203
203
            raise TestSkipped("Unable to create Unicode filename")
204
204
 
205
 
        os.chdir(u'B\xe5gfors')
 
205
        os.chdir(u'mu-\xb5')
206
206
        # TODO: jam 20060427 This will probably fail on Mac OSX because
207
207
        #       it will change the normalization of B\xe5gfors
208
208
        #       Consider using a different unicode character, or make
209
209
        #       osutils.getcwd() renormalize the path.
210
 
        self.assertTrue(osutils._win32_getcwd().endswith(u'/B\xe5gfors'))
 
210
        self.assertEndsWith(osutils._win32_getcwd(), u'mu-\xb5')
211
211
 
212
212
    def test_mkdtemp(self):
213
213
        tmpdir = osutils._win32_mkdtemp(dir='.')