FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix pytest warnings by hugovk · Pull Request #544 · html5lib/html5lib-python · GitHub

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .ini  (1) .py  (1) All 2 file types selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
7 changes: 6 additions & 1 deletion html5lib/tests/test_sanitizer.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
from __future__ import absolute_import, division, unicode_literals

import warnings

import pytest

from html5lib import constants, parseFragment, serialize
from html5lib.filters import sanitizer

with warnings.catch_warnings():
warnings.simplefilter("ignore", DeprecationWarning)
from html5lib.filters import sanitizer


def sanitize_html(stream):
Expand Down
2 changes: 1 addition & 1 deletion pytest.ini
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[pytest]
# Output fails, errors, xpass, and warnings; ignore doctest; make warnings errors
addopts = -rfEXw -p no:doctest --strict
addopts = -rfEXw -p no:doctest --strict-markers

# Make xpass results be considered fail
xfail_strict = true
Expand Down

Back | FazBrowse Home | New Git URL