Rev 4646: Properly guard LSProf using tests. in http://people.canonical.com/~robertc/baz2.0/integration
Robert Collins
robertc at robertcollins.net
Tue Aug 25 04:48:20 BST 2009
At http://people.canonical.com/~robertc/baz2.0/integration
------------------------------------------------------------
revno: 4646
revision-id: robertc at robertcollins.net-20090825034815-8iezwaet1s53bbsl
parent: robertc at robertcollins.net-20090825023645-3wejrck3eyxashe3
committer: Robert Collins <robertc at robertcollins.net>
branch nick: integration
timestamp: Tue 2009-08-25 13:48:15 +1000
message:
Properly guard LSProf using tests.
=== modified file 'bzrlib/tests/test_selftest.py'
--- a/bzrlib/tests/test_selftest.py 2009-08-24 22:32:53 +0000
+++ b/bzrlib/tests/test_selftest.py 2009-08-25 03:48:15 +0000
@@ -690,6 +690,7 @@
class TestProfileResult(tests.TestCase):
def test_profiles_tests(self):
+ self.requireFeature(test_lsprof.LSProfFeature)
terminal = unittest.TestResult()
result = tests.ProfileResult(terminal)
class Sample(tests.TestCase):
@@ -1848,6 +1849,7 @@
self.assertLength(2, output.readlines())
def test_lsprof_tests(self):
+ self.requireFeature(test_lsprof.LSProfFeature)
calls = []
class Test(object):
def __call__(test, result):
More information about the bazaar-commits
mailing list