]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- remove print statement
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 28 Jul 2014 01:40:16 +0000 (21:40 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 28 Jul 2014 01:40:16 +0000 (21:40 -0400)
- ensure non-tests wont run

lib/sqlalchemy/testing/plugin/plugin_base.py

index 32b3563ff944ded707f60627a3a4fc6cd9fe9c06..ed4f4d3b96196165fb5b7bc8ee04c5531ae26edb 100644 (file)
@@ -146,7 +146,6 @@ def restore_important_follower_config(dict_):
     db_opts.update(dict_['memoized_config']['db_opts'])
     include_tags.update(dict_['memoized_config']['include_tags'])
     exclude_tags.update(dict_['memoized_config']['exclude_tags'])
-    print "EXCLUDE TAGS!!!!!", exclude_tags
 
 
 def read_config():
@@ -407,7 +406,9 @@ def want_class(cls):
 
 
 def want_method(cls, fn):
-    if fn.__module__ is None:
+    if not fn.__name__.startswith("test_"):
+        return False
+    elif fn.__module__ is None:
         return False
     elif fn.__module__.startswith('sqlalchemy.testing'):
         return False
@@ -427,7 +428,7 @@ def want_method(cls, fn):
     elif exclude_tags and hasattr(fn, '_sa_exclusion_extend'):
         return fn._sa_exclusion_extend.include_test(include_tags, exclude_tags)
     else:
-        return fn.__name__.startswith("test_")
+        return True
 
 
 def generate_sub_tests(cls, module):