Commits

Anonymous committed 3e447a4

Hide deprecation warnings about 'highlighter' arg in tests.

  • Participants
  • Parent commits e2ca41f

Comments (0)

Files changed (1)

tests/test_tools.py

 import re
 import unittest
 from string24 import Template
+import warnings
 
+# Ignore deprecation warnings about legacy 'highlighter' argument
+warnings.filterwarnings("ignore", 
+    category=DeprecationWarning, module=R"webhelpers\.html\.tools")
+    # Can't find a 'message' argument that matches the warning.
 
 from nose.tools import eq_
 from routes import url_for