~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/benchmarks/bench_inventory.py

  • Committer: v.ladeuil+lp at free
  • Date: 2007-05-18 18:20:31 UTC
  • mto: (2485.8.44 bzr.connection.sharing)
  • mto: This revision was merged to the branch mainline in revision 2646.
  • Revision ID: v.ladeuil+lp@free.fr-20070518182031-gbg2cgidv5l20x9p
Takes Robert comments into account.

* bzrlib/transport/ftp.py:
(FtpTransport.__init__): Write a better explanation.

* bzrlib/tests/test_init.py:
(InstrumentedTransport): Just make hooks a class attribute.
(InstrumentedTransport._get_FTP): Run hook directly in the for
loop.
(TransportHooks.run_hook, TransportHooks.uninstall_hook): Not
needed. The hooks should be cleaned up by the test itself.
(TestInit.setUp.cleanup): Resset to default hooks.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
16
 
17
 
"""Tests for `bzrlib.inventory.Inventory` performance."""
18
 
 
19
 
 
20
 
import bzrlib.inventory
 
17
"""Tests for bzr add performance."""
 
18
 
 
19
 
 
20
import bzrlib
21
21
from bzrlib.benchmarks import Benchmark
22
22
 
23
23
 
24
24
class InvBenchmark(Benchmark):
25
 
    """Benchmarks for building large inventories."""
26
25
 
27
26
    def test_make_10824_inv_entries(self):
28
27
        """Making 10824 inv entries should be quick."""