~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to tests/blackbox.py

  • Committer: Aaron Bentley
  • Date: 2010-02-25 04:15:18 UTC
  • mto: This revision was merged to the branch mainline in revision 740.
  • Revision ID: aaron@aaronbentley.com-20100225041518-u4t0vgd76ar3nq46
Disable version check for commands run in the test suite.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
from bzrlib.config import LocationConfig
7
7
from bzrlib.transport import get_transport
8
8
from bzrlib.tests import TestCaseWithTransport, HardlinkFeature
 
9
from bzrlib.plugins.bzrtools import command
9
10
 
10
11
 
11
12
class TestBzrTools(TestCaseWithTransport):
 
13
 
 
14
    def setUp(self):
 
15
        TestCaseWithTransport.setUp(self)
 
16
        command._testing = True
 
17
        self.addCleanup(command._stop_testing)
 
18
 
12
19
    @staticmethod
13
20
    def touch(filename):
14
21
        file(filename, 'wb').write('')