From a7d211b53afbdb3c3febf881127dfbea4da422ee Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Wed, 3 Jan 2018 20:29:48 -0500 Subject: Warnings should cause tests to fail. --- tests/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) 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()]) -- cgit v1.2.3