/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 tests.py

  • Committer: Gustaf Thorslund
  • Date: 2010-11-01 21:04:58 UTC
  • mto: (0.54.78 trunk)
  • mto: This revision was merged to the branch mainline in revision 6630.
  • Revision ID: gustaf@thorslund.org-20101101210458-qdhm5a39r2a9re12
Marked two tests as KnownFailure due to:
  "bisect does not drill down into merge commits"
  https://bugs.launchpad.net/bzr-bisect/+bug/539937

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
import bzrlib.tests
26
26
import bzrlib.revisionspec
27
27
import bzrlib.plugins.bisect as bisect
28
 
 
 
28
from bzrlib.tests import KnownFailure
29
29
 
30
30
class BisectTestCase(bzrlib.tests.TestCaseWithTransport):
31
31
    "Test harness specific to the bisect plugin."
377
377
        self.run_bzr(['bisect', 'yes'])
378
378
        self.run_bzr(['bisect', 'no', '-r', '1'])
379
379
        self.run_bzr(['bisect', 'run', './test_script'])
380
 
        self.assertRevno(2)
381
 
 
 
380
        try:
 
381
            self.assertRevno(2)
 
382
        except AssertionError:
 
383
            raise KnownFailure\
 
384
                ("bisect does not drill down into merge commits: "
 
385
                 "https://bugs.launchpad.net/bzr-bisect/+bug/539937")
 
386
        
382
387
    def testRunScriptSubtree(self):
383
388
        "Make a test script and run it."
384
389
        test_script = open("test_script", "w")
390
395
        self.run_bzr(['bisect', 'yes'])
391
396
        self.run_bzr(['bisect', 'no', '-r', '1'])
392
397
        self.run_bzr(['bisect', 'run', './test_script'])
393
 
        self.assertRevno(1.2)
394
 
 
 
398
        try:
 
399
            self.assertRevno(1.2)
 
400
        except AssertionError:
 
401
            raise KnownFailure\
 
402
                ("bisect does not drill down into merge commits: "
 
403
                 "https://bugs.launchpad.net/bzr-bisect/+bug/539937")