aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/__init__.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/__init__.py b/tests/__init__.py
index f759ceb..6826ff3 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -2,6 +2,7 @@ import os
import markdown
import codecs
import difflib
+import warnings
try:
import nose
except ImportError as e:
@@ -179,4 +180,10 @@ def generate_all():
def run():
+ # Warnings should cause tests to fail...
+ warnings.simplefilter('error')
+ # Except for the warnings that shouldn't
+ warnings.filterwarnings('default', category=PendingDeprecationWarning)
+ warnings.filterwarnings('default', category=DeprecationWarning, module='markdown')
+
nose.main(addplugins=[HtmlOutput(), Markdown()])