]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
make this rule automatic based on coverage plugin
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 3 Jul 2013 17:47:44 +0000 (13:47 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 3 Jul 2013 17:48:05 +0000 (13:48 -0400)
test/requirements.py

index a9cb44b5757551f74ac5d159d0fd56edb97f7216..a56c037d1984449b1a904d7e45ea3707a89947e6 100644 (file)
@@ -651,14 +651,17 @@ class DefaultRequirements(SuiteRequirements):
                 "Not supported on MySQL + Windows"
             )
 
-    def threading_with_mock(self, fn):
-        """Mark tests that use threading and mock at the same time, so they
-        can be excluded using "-a '!threading_with_mock'" - stability
+    @property
+    def threading_with_mock(self):
+        """Mark tests that use threading and mock at the same time - stability
         issues have been observed with coverage + python 3.3
 
         """
-        fn.threading_with_mock = True
-        return fn
+        return skip_if(
+                lambda: util.py3k and
+                    self.config.options.enable_plugin_coverage,
+                "Stability issues with coverage + py3k"
+            )
 
     @property
     def selectone(self):