diff options
author | Tres Seaver <tseaver@palladion.com> | 2015-04-02 15:10:07 -0400 |
---|---|---|
committer | Tres Seaver <tseaver@palladion.com> | 2015-04-02 15:10:07 -0400 |
commit | 9255168c0612d825a64d51fa62e7b2b509b92515 (patch) | |
tree | d460272e705c2e8c9288df2671c19b7e9fec8a7a /src | |
parent | 076392f9931bb37fff03f6a5aa5c6badc9743d68 (diff) | |
download | zope-tal-9255168c0612d825a64d51fa62e7b2b509b92515.tar.gz |
Update bad-entity handling FBO pypy3.
Diffstat (limited to 'src')
-rw-r--r-- | src/zope/tal/tests/test_talinterpreter.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/zope/tal/tests/test_talinterpreter.py b/src/zope/tal/tests/test_talinterpreter.py index 3e5bb08..d11d944 100644 --- a/src/zope/tal/tests/test_talinterpreter.py +++ b/src/zope/tal/tests/test_talinterpreter.py @@ -15,6 +15,7 @@ """Tests for TALInterpreter. """ import os +import platform import sys import unittest @@ -25,6 +26,8 @@ except ImportError: # Python 3.x from io import StringIO +IS_PYPY = platform.python_implementation() == 'PyPy' + from zope.tal.taldefs import METALError, I18NError, TAL_VERSION from zope.tal.taldefs import TALExpressionError from zope.tal.htmltalparser import HTMLTALParser @@ -708,7 +711,7 @@ class OutputPresentationTestCase(TestCaseBase): self.compare(INPUT, EXPECTED) def test_entities(self): - if sys.version_info < (3, 0): + if IS_PYPY or sys.version_info < (3, 0): # HTMLParser.HTMLParser in Python 2.x parses "-" as "-" INPUT = ('<img tal:define="foo nothing" ' 'alt="&a;  
 &a - &; <>" />') |