1. Vince Spicer
  2. WebHelpers


slug...@gmail.com  committed 3e447a4

Hide deprecation warnings about 'highlighter' arg in tests.

  • Participants
  • Parent commits e2ca41f
  • Branches trunk

Comments (0)

Files changed (1)

File tests/test_tools.py

View file
 import re
 import unittest
 from string24 import Template
+import warnings
+# Ignore deprecation warnings about legacy 'highlighter' argument
+    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