Browse Source

Improve warning filters

David Cramer 10 years ago
parent
commit
1d7b78a7ba
2 changed files with 6 additions and 1 deletions
  1. 5 1
      conftest.py
  2. 1 0
      setup.py

+ 5 - 1
conftest.py

@@ -7,4 +7,8 @@ pytest_plugins = [
 
 def pytest_configure(config):
     import warnings
-    warnings.filterwarnings('error', '', Warning, r'(sentry|raven)')
+    # XXX(dcramer): Riak throws a UserWarning re:OpenSSL which isnt important
+    # to tests
+    # XXX(dramer): Kombu throws a warning due to transaction.commit_manually
+    # being used
+    warnings.filterwarnings('error', '', Warning, r'^(?!(|kombu|raven|riak|sentry))')

+ 1 - 0
setup.py

@@ -50,6 +50,7 @@ dev_requires = [
 ]
 
 tests_require = [
+    'blist',  # used by cassandra
     'casscache',
     'cqlsh',
     'elasticsearch',