Rev 12: Allow tests of other plugins with bzr.dev. in http://people.ubuntu.com/~robertc/baz2.0/plugins/repodetails/trunk

Robert Collins robertc at robertcollins.net
Tue Dec 2 20:06:50 GMT 2008


At http://people.ubuntu.com/~robertc/baz2.0/plugins/repodetails/trunk

------------------------------------------------------------
revno: 12
revision-id: robertc at robertcollins.net-20081202200648-zo613ijfs87pjje7
parent: john at arbash-meinel.com-20081202020220-xx65k70hbx2ai9ne
committer: Robert Collins <robertc at robertcollins.net>
branch nick: trunk
timestamp: Wed 2008-12-03 07:06:48 +1100
message:
  Allow tests of other plugins with bzr.dev.
modified:
  tests/test_repositorydetails.py test_repositorydetai-20081017014933-iriuw53viune2txe-6
=== modified file 'tests/test_repositorydetails.py'
--- a/tests/test_repositorydetails.py	2008-12-02 01:45:02 +0000
+++ b/tests/test_repositorydetails.py	2008-12-02 20:06:48 +0000
@@ -17,8 +17,10 @@
 
 """Tests for the bzr plugin epositorydetails."""
 
-
+from bzrlib.lazy_import import lazy_import
+lazy_import(globals(), '''
 from bzrlib.plugins.repodetails import gather_stats
+''')
 from bzrlib.tests import TestCaseWithTransport
 
 




More information about the bazaar-commits mailing list