~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: Jonathan Riddell
  • Date: 2011-09-13 13:31:15 UTC
  • mto: This revision was merged to the branch mainline in revision 6139.
  • Revision ID: jriddell@canonical.com-20110913133115-evl5fp8h963p1x74
re-enable i18n for tests which need it

Show diffs side-by-side

added added

removed removed

Lines of Context:
1007
1007
        if 'config_stats' in selftest_debug_flags:
1008
1008
            self._install_config_stats_hooks()
1009
1009
        # Do not use i18n for tests (unless the test reverses this)
1010
 
        self.overrideAttr(i18n, 'installed', lambda: True)
 
1010
        self.i18nInstalled = self.overrideAttr(i18n, 'installed', lambda: True)
1011
1011
 
1012
1012
    def debug(self):
1013
1013
        # debug a frame up.
1940
1940
        if not feature.available():
1941
1941
            raise UnavailableFeature(feature)
1942
1942
 
 
1943
    def enableI18n(self):
 
1944
        """Call this in tests which require i18n."""
 
1945
        self.overrideAttr(i18n, 'installed', self.i18nInstalled)
 
1946
 
1943
1947
    def _run_bzr_autosplit(self, args, retcode, encoding, stdin,
1944
1948
            working_dir):
1945
1949
        """Run bazaar command line, splitting up a string command line."""