~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_win32utils.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-11-17 03:20:35 UTC
  • mfrom: (4792.4.3 456036)
  • Revision ID: pqm@pqm.ubuntu.com-20091117032035-s3sgtlixj1lrminn
(Gordon Tyler) Fix IndexError during 'bzr ignore /' (#456036)

Show diffs side-by-side

added added

removed removed

Lines of Context:
373
373
        self.assertCommandLine([u"'a/*.c'"], "'a/*.c'")
374
374
 
375
375
    def test_slashes_changed(self):
376
 
        # Quoting doesn't change the supplied args
377
 
        self.assertCommandLine([u'a\\*.c'], '"a\\*.c"')
378
 
        # Expands the glob, but nothing matches, swaps slashes
 
376
        self.assertCommandLine([u'a/*.c'], '"a\\*.c"')
 
377
        # Expands the glob, but nothing matches
379
378
        self.assertCommandLine([u'a/*.c'], 'a\\*.c')
380
 
        self.assertCommandLine([u'a/?.c'], 'a\\?.c')
381
 
        # No glob, doesn't touch slashes
382
 
        self.assertCommandLine([u'a\\foo.c'], 'a\\foo.c')
 
379
        self.assertCommandLine([u'a/foo.c'], 'a\\foo.c')
383
380
 
384
381
    def test_no_single_quote_supported(self):
385
382
        self.assertCommandLine(["add", "let's-do-it.txt"],