From: Mike Bayer Date: Wed, 3 Jul 2013 17:47:44 +0000 (-0400) Subject: make this rule automatic based on coverage plugin X-Git-Tag: rel_0_8_2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52293e3d4cb985078ddd90959094730361504bd7;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git make this rule automatic based on coverage plugin --- diff --git a/test/requirements.py b/test/requirements.py index 449f690e6b..5ebb5de610 100644 --- a/test/requirements.py +++ b/test/requirements.py @@ -638,14 +638,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 english_locale_on_postgresql(self):