Rev 4927: Switch CompiledKnitFeature in http://bazaar.launchpad.net/~jameinel/bzr/2.1.0rc1-module-available
John Arbash Meinel
john at arbash-meinel.com
Mon Dec 21 19:46:00 GMT 2009
At http://bazaar.launchpad.net/~jameinel/bzr/2.1.0rc1-module-available
------------------------------------------------------------
revno: 4927
revision-id: john at arbash-meinel.com-20091221194552-7a4j7nqnvaiyumvb
parent: john at arbash-meinel.com-20091221194451-vtqiuzjamlv4swet
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: 2.1.0rc1-module-available
timestamp: Mon 2009-12-21 13:45:52 -0600
message:
Switch CompiledKnitFeature
-------------- next part --------------
=== modified file 'bzrlib/tests/test_knit.py'
--- a/bzrlib/tests/test_knit.py 2009-08-28 04:13:16 +0000
+++ b/bzrlib/tests/test_knit.py 2009-12-21 19:45:52 +0000
@@ -69,19 +69,7 @@
)
-class _CompiledKnitFeature(Feature):
-
- def _probe(self):
- try:
- import bzrlib._knit_load_data_pyx
- except ImportError:
- return False
- return True
-
- def feature_name(self):
- return 'bzrlib._knit_load_data_pyx'
-
-CompiledKnitFeature = _CompiledKnitFeature()
+compiled_knit = tests.ModuleAvailableFeature('bzrlib._knit_load_data_pyx')
class KnitContentTestsMixin(object):
@@ -1308,7 +1296,7 @@
class LowLevelKnitIndexTests_c(LowLevelKnitIndexTests):
- _test_needs_features = [CompiledKnitFeature]
+ _test_needs_features = [compiled_knit]
def get_knit_index(self, transport, name, mode):
mapper = ConstantMapper(name)
More information about the bazaar-commits
mailing list