/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to tests/test_commit.py

  • Committer: Jelmer Vernooij
  • Date: 2011-08-27 13:06:14 UTC
  • Revision ID: jelmer@samba.org-20110827130614-oawonzmojgzwbhxc
Support new location of UnicodeFilenameFeature in 2.5.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
    uncommit,
27
27
    )
28
28
try:
 
29
    from bzrlib.tests.features import UnicodeFilenameFeature
 
30
except ImportError: # bzr < 2.5
 
31
    from bzrlib.tests import UnicodeFilenameFeature
 
32
try:
29
33
    from bzrlib import bencode
30
34
except ImportError:
31
35
    from bzrlib.util import bencode
1031
1035
                         bencode.bdecode(file_info.encode('UTF-8')))
1032
1036
 
1033
1037
    def test_commit_unicode_messages(self):
1034
 
        self.requireFeature(tests.UnicodeFilenameFeature)
 
1038
        self.requireFeature(UnicodeFilenameFeature)
1035
1039
 
1036
1040
        tree = self.make_branch_and_tree('tree')
1037
1041
        tree.branch.get_config().set_user_option('per_file_commits', 'true')