Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ResourceWarning on tests #19

Closed
gsnedders opened this issue Apr 13, 2013 · 0 comments
Closed

ResourceWarning on tests #19

gsnedders opened this issue Apr 13, 2013 · 0 comments
Labels
Milestone

Comments

@gsnedders
Copy link
Member

Not seen this locally, oddly, but Travis CI always hits it:

Exception ResourceWarning: ResourceWarning("unclosed file <_io.BufferedReader name='/home/travis/build/html5lib/html5lib-python/html5lib/tests/testdata/encoding/chardet/test_big5.txt'>",) in <_io.FileIO name='/home/travis/build/html5lib/html5lib-python/html5lib/tests/testdata/encoding/chardet/test_big5.txt' mode='rb'> ignored
gsnedders added a commit to gsnedders/html5lib-python that referenced this issue Nov 24, 2014
These can only occur in the input stream from arbitrary unicode
strings being passed into the parser (e.g., from script); no decoder
will emit them nowadays. This fixes us to match the current spec.
gsnedders pushed a commit to gsnedders/html5lib-python that referenced this issue Nov 24, 2014
…eplacement

Fix html5lib#19: lone surrogates should not be replaced by U+FFFD; r=jgraham
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant