Rev 4923: Switch CompiledSimpleSet in http://bazaar.launchpad.net/~jameinel/bzr/2.1.0rc1-module-available

John Arbash Meinel john at arbash-meinel.com
Mon Dec 21 19:21:18 GMT 2009


At http://bazaar.launchpad.net/~jameinel/bzr/2.1.0rc1-module-available

------------------------------------------------------------
revno: 4923
revision-id: john at arbash-meinel.com-20091221192110-lciyclb7obvnflpf
parent: john at arbash-meinel.com-20091221192003-a38rg872bgvlmj3c
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: 2.1.0rc1-module-available
timestamp: Mon 2009-12-21 13:21:10 -0600
message:
  Switch CompiledSimpleSet
-------------- next part --------------
=== modified file 'bzrlib/tests/test__simple_set.py'
--- a/bzrlib/tests/test__simple_set.py	2009-10-14 15:53:34 +0000
+++ b/bzrlib/tests/test__simple_set.py	2009-12-21 19:21:10 +0000
@@ -77,23 +77,12 @@
 
 # Even though this is an extension, we don't permute the tests for a python
 # version. As the plain python version is just a dict or set
-
-class _CompiledSimpleSet(tests.Feature):
-
-    def _probe(self):
-        if _simple_set_pyx is None:
-            return False
-        return True
-
-    def feature_name(self):
-        return 'bzrlib._simple_set_pyx'
-
-CompiledSimpleSet = _CompiledSimpleSet()
+compiled_simpleset = tests.ModuleAvailableFeature('bzrlib._simple_set_pyx')
 
 
 class TestSimpleSet(tests.TestCase):
 
-    _test_needs_features = [CompiledSimpleSet]
+    _test_needs_features = [compiled_simpleset]
     module = _simple_set_pyx
 
     def assertIn(self, obj, container):



More information about the bazaar-commits mailing list