~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_versionedfile.py

  • Committer: John Arbash Meinel
  • Date: 2010-01-13 16:23:07 UTC
  • mto: (4634.119.7 2.0)
  • mto: This revision was merged to the branch mainline in revision 4959.
  • Revision ID: john@arbash-meinel.com-20100113162307-0bs82td16gzih827
Update the MANIFEST.in file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2006-2010 Canonical Ltd
 
1
# Copyright (C) 2005, 2009 Canonical Ltd
2
2
#
3
3
# Authors:
4
4
#   Johan Rydberg <jrydberg@gnu.org>
734
734
        # the ordering here is to make a tree so that dumb searches have
735
735
        # more changes to muck up.
736
736
 
737
 
        class InstrumentedProgress(progress.ProgressTask):
 
737
        class InstrumentedProgress(progress.DummyProgress):
738
738
 
739
739
            def __init__(self):
740
 
                progress.ProgressTask.__init__(self)
 
740
 
 
741
                progress.DummyProgress.__init__(self)
741
742
                self.updates = []
742
743
 
743
744
            def update(self, msg=None, current=None, total=None):
1469
1470
            transport.mkdir('.')
1470
1471
        files = self.factory(transport)
1471
1472
        if self.cleanup is not None:
1472
 
            self.addCleanup(self.cleanup, files)
 
1473
            self.addCleanup(lambda:self.cleanup(files))
1473
1474
        return files
1474
1475
 
1475
1476
    def get_simple_key(self, suffix):
1580
1581
        # All texts should be output.
1581
1582
        self.assertEqual(set(keys), seen)
1582
1583
 
1583
 
    def test_clear_cache(self):
1584
 
        files = self.get_versionedfiles()
1585
 
        files.clear_cache()
1586
 
 
1587
1584
    def test_construct(self):
1588
1585
        """Each parameterised test can be constructed on a transport."""
1589
1586
        files = self.get_versionedfiles()
2547
2544
        # the ordering here is to make a tree so that dumb searches have
2548
2545
        # more changes to muck up.
2549
2546
 
2550
 
        class InstrumentedProgress(progress.ProgressTask):
 
2547
        class InstrumentedProgress(progress.DummyProgress):
2551
2548
 
2552
2549
            def __init__(self):
2553
 
                progress.ProgressTask.__init__(self)
 
2550
 
 
2551
                progress.DummyProgress.__init__(self)
2554
2552
                self.updates = []
2555
2553
 
2556
2554
            def update(self, msg=None, current=None, total=None):