/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_msgeditor.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:
20
20
import os
21
21
import sys
22
22
 
23
 
from breezy import (
 
23
from .. import (
24
24
    commit,
25
25
    config,
26
26
    errors,
28
28
    osutils,
29
29
    trace,
30
30
    )
31
 
from breezy.msgeditor import (
 
31
from ..msgeditor import (
32
32
    make_commit_message_template_encoded,
33
33
    edit_commit_message_encoded
34
34
)
35
 
from breezy.tests import (
 
35
from . import (
36
36
    features,
37
37
    TestCaseInTempDir,
38
38
    TestCaseWithTransport,
42
42
    probe_bad_non_ascii,
43
43
    split_suite_by_re,
44
44
    )
45
 
from breezy.tests.EncodingAdapter import encoding_scenarios
46
 
from breezy.trace import mutter
 
45
from .EncodingAdapter import encoding_scenarios
 
46
from ..trace import mutter
47
47
 
48
48
 
49
49
def load_tests(standard_tests, module, loader):
151
151
            f = file(name, 'wb')
152
152
            f.write('#!/bin/sh\n')
153
153
            f.close()
154
 
            os.chmod(name, 0755)
 
154
            os.chmod(name, 0o755)
155
155
            return './' + name
156
156
 
157
157
    def test_run_editor(self):
201
201
            self.overrideEnv('BRZ_EDITOR', 'fed.bat')
202
202
        else:
203
203
            # [non-win32] make python script executable and set BRZ_EDITOR
204
 
            os.chmod('fed.py', 0755)
 
204
            os.chmod('fed.py', 0o755)
205
205
            self.overrideEnv('BRZ_EDITOR', './fed.py')
206
206
 
207
207
    def test_edit_commit_message(self):