summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2013-07-03 13:47:44 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2013-07-03 13:48:05 -0400
commitbc705e28cfd8b2ad5e309a64b33e19f21dd5c0ed (patch)
tree2173de2af70da9ed8f4fdca18be314f02238b802
parent167adac5dc5ee9c353dbcad55ba7e36b08906f10 (diff)
downloadsqlalchemy-bc705e28cfd8b2ad5e309a64b33e19f21dd5c0ed.tar.gz
make this rule automatic based on coverage plugin
-rw-r--r--test/requirements.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/test/requirements.py b/test/requirements.py
index a9cb44b57..a56c037d1 100644
--- a/test/requirements.py
+++ b/test/requirements.py
@@ -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):