~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to tests/blackbox.py

  • Committer: Martin
  • Date: 2011-02-16 01:07:15 UTC
  • mto: This revision was merged to the branch mainline in revision 764.
  • Revision ID: gzlist@googlemail.com-20110216010715-u50j81ha3pc7m76c
Remove test as it can't fail reliably cross platform

Show diffs side-by-side

added added

removed removed

Lines of Context:
190
190
        self.assertEqual(source.last_revision(), target.last_revision())
191
191
        self.assertEqual(source.branch.base, target.get_public_branch())
192
192
 
193
 
    def test_shell_without_readline_module(self):
194
 
        """Ensure `bzr shell` works even when readline is unavailable"""
195
 
        # Simulate readline not existing by creating a module name 'readline'
196
 
        # in the cwd that will be tried before the standard library location
197
 
        f = file("readline.py", "w")
198
 
        try:
199
 
                f.write("raise ImportError")
200
 
        finally:
201
 
                f.close()
202
 
        # GZ 2011-02-15: If the bzrtools plugin is found via BZR_PLUGIN_PATH
203
 
        #                that is masked in this test, which may be an issue
204
 
        out, err = self.run_bzr_subprocess(["shell"],
205
 
            allow_plugins=True, universal_newlines=True)
206
 
        self.assertEndsWith(out, "/work> \n")
207
 
        self.assertNotContainsString("bzr: ERROR:", err)
208
 
 
209
193
 
210
194
def test_suite():
211
195
    return makeSuite(TestBzrTools)