diff options
author | Tres Seaver <tseaver@palladion.com> | 2013-03-11 13:11:01 -0400 |
---|---|---|
committer | Tres Seaver <tseaver@palladion.com> | 2013-03-11 13:11:01 -0400 |
commit | fcf50572192bcc003e0f42faeffed419f711372c (patch) | |
tree | 68fe637e7f86e1a65ffca8439c86f12cc325eb02 | |
parent | 928658355be5bec8fa7a722b132a672e9ac6afaa (diff) | |
download | zope-security-fcf50572192bcc003e0f42faeffed419f711372c.tar.gz |
Add test environments for the PURE_PYTHON environment variable.
Get the one test which failed under that environment to pass.
-rw-r--r-- | src/zope/security/tests/test_proxy.py | 6 | ||||
-rw-r--r-- | tox.ini | 14 |
2 files changed, 18 insertions, 2 deletions
diff --git a/src/zope/security/tests/test_proxy.py b/src/zope/security/tests/test_proxy.py index f73990d..d89e355 100644 --- a/src/zope/security/tests/test_proxy.py +++ b/src/zope/security/tests/test_proxy.py @@ -1536,7 +1536,11 @@ class ProxyTests(unittest.TestCase): self.c.ok = 1 def testDerivation(self): - from zope.proxy import ProxyBase + from zope.security._compat import PURE_PYTHON + if PURE_PYTHON: + from zope.proxy import PyProxyBase as ProxyBase + else: + from zope.proxy import ProxyBase self.assertTrue(isinstance(self.p, ProxyBase)) def testStr(self): @@ -3,7 +3,7 @@ envlist = # Jython support pending 2.7 support, due 2012-07-15 or so. See: # http://fwierzbicki.blogspot.com/2012/03/adconion-to-fund-jython-27.html # py26,py27,pypy,jython,py32,py33,coverage,docs - py26,py27,pypy,py32,py33,coverage,docs + py26,py27,py27-pure,pypy,py32,py33,py33-pure,coverage,docs [testenv] deps = @@ -17,6 +17,18 @@ deps = commands = python setup.py test -q +[testenv:py27-pure] +basepython = + python2.7 +setenv = + PURE_PYTHON = 1 + +[testenv:py33-pure] +basepython = + python3.3 +setenv = + PURE_PYTHON = 1 + [testenv:coverage] basepython = python2.6 |