Skip to content
This repository has been archived by the owner on Sep 18, 2019. It is now read-only.

Commit

Permalink
Non-BPM Unicode litteral bug workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSapin committed Mar 27, 2012
1 parent 23e608b commit d24a18f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tinycss/tests/test_decoding.py
Expand Up @@ -62,6 +62,8 @@ def params(css, encoding, use_bom=False, expect_error=False, **kwargs):
linking_encoding='ISO-8859-1', document_encoding='ISO-8859-8'),
])
def test_decode(css, encoding, use_bom, expect_error, kwargs):
# Workaround PyPy and CPython 3.0 bug: https://bugs.pypy.org/issue1094
css = css.encode('utf16').decode('utf16')
if use_bom:
source = '\ufeff' + css
else:
Expand Down

0 comments on commit d24a18f

Please sign in to comment.