~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_commit.py

Move doctest import to increase speed

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
    def test_05_empty_commit(self):
34
34
        """Commit of tree with no versioned files should fail"""
35
35
        # If forced, it should succeed, but this is not tested here.
36
 
        self.run_bzr("init")
 
36
        self.runbzr("init")
37
37
        self.build_tree(['hello.txt'])
38
 
        result = self.run_bzr("commit", "-m", "empty", retcode=3)
39
 
        self.assertEqual(('', 'bzr: ERROR: no changes to commit.'
40
 
                              ' use --unchanged to commit anyhow\n'),
41
 
                         result)
 
38
        self.runbzr("commit -m empty", retcode=3)
42
39
 
43
40
    def test_commit_with_path(self):
44
41
        """Commit tree with path of root specified"""