/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/tests/test_win32utils.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-22 00:56:52 UTC
  • mfrom: (6621.2.26 py3_pokes)
  • Revision ID: jelmer@jelmer.uk-20170522005652-yjahcr9hwmjkno7n
Merge Python3 porting work ('py3 pokes')

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
import os
20
20
 
21
 
from breezy import (
 
21
from .. import (
22
22
    osutils,
23
23
    symbol_versioning,
24
24
    tests,
25
25
    win32utils,
26
26
    )
27
 
from breezy.tests import (
 
27
from . import (
28
28
    TestCase,
29
29
    TestCaseInTempDir,
30
30
    TestSkipped,
31
31
    )
32
 
from breezy.tests.features import backslashdir_feature
33
 
from breezy.win32utils import glob_expand, get_app_path
34
 
from breezy.tests import (
 
32
from .features import backslashdir_feature
 
33
from ..win32utils import glob_expand, get_app_path
 
34
from . import (
35
35
    features,
36
36
    )
37
37
 
106
106
 
107
107
    def test_case_insensitive_globbing(self):
108
108
        if os.path.normcase("AbC") == "AbC":
109
 
            self.skip("Test requires case insensitive globbing function")
 
109
            self.skipTest("Test requires case insensitive globbing function")
110
110
        self.build_ascii_tree()
111
111
        self._run_testset([
112
112
            [[u'A'], [u'A']],
358
358
 
359
359
    def test_case_insensitive_globs(self):
360
360
        if os.path.normcase("AbC") == "AbC":
361
 
            self.skip("Test requires case insensitive globbing function")
 
361
            self.skipTest("Test requires case insensitive globbing function")
362
362
        self.build_tree(['a/', 'a/b.c', 'a/c.c', 'a/c.h'])
363
363
        self.assertCommandLine([u'A/b.c'], 'A/B*')
364
364
 
405
405
        try:
406
406
            bytes_val = unicode_val.encode(osutils.get_user_encoding())
407
407
        except UnicodeEncodeError:
408
 
            self.skip("Couldn't encode non-ascii string to place in environ")
 
408
            self.skipTest("Couldn't encode non-ascii string for environ")
409
409
        os.environ["TEST"] = bytes_val
410
410
        self.assertEqual(unicode_val, win32utils.get_environ_unicode("TEST"))
411
411