From de5f0667c4472a04298ba1890dbfa4739f5e4079 Mon Sep 17 00:00:00 2001 From: Marc Abramowitz Date: Mon, 7 Mar 2016 14:33:22 -0800 Subject: Enable testing with pypy This involved: - Adding "pypy" to the `tox.ini` envlist. - Adding `# doctest: +IGNORE_EXCEPTION_DETAIL` to 2 doctests, because the traceback message text is slightly different on PyPy. --- tests/test_template.txt | 4 ++-- tox.ini | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_template.txt b/tests/test_template.txt index f3466f2..1313d34 100644 --- a/tests/test_template.txt +++ b/tests/test_template.txt @@ -6,7 +6,7 @@ example:: 'Hi Ian' >>> Template('Hi {{repr(name)}}').substitute(name='Ian') "Hi 'Ian'" - >>> Template('Hi {{name+1}}').substitute(name='Ian') + >>> Template('Hi {{name+1}}').substitute(name='Ian') # doctest: +IGNORE_EXCEPTION_DETAIL Traceback (most recent call last): ... TypeError: cannot concatenate 'str' and 'int' objects at line 1 column 6 @@ -125,7 +125,7 @@ for a variable, if no value is given:: >>> sub('{{default x=1}}{{x}}') '1' >>> # The normal case: - >>> sub('{{x}}') + >>> sub('{{x}}') # doctest: +IGNORE_EXCEPTION_DETAIL Traceback (most recent call last): ... NameError: name 'x' is not defined at line 1 column 3 diff --git a/tox.ini b/tox.ini index d50d433..b54d5ec 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py26, py27, py34, py35 +envlist = py26, py27, py34, py35, pypy [testenv] deps= -- cgit v1.2.1