summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Abramowitz <marc@marc-abramowitz.com>2016-03-07 14:33:22 -0800
committerMarc Abramowitz <marc@marc-abramowitz.com>2016-03-07 14:33:22 -0800
commit24e2aeee29ebcd41a5ae122e6f8cec76e86529c3 (patch)
tree84ff6296a87aac665efb2e72f769c633f90f2a89
parented8ebf6b24f2d322a2cf81054525c692f6ca4e32 (diff)
downloadpaste-24e2aeee29ebcd41a5ae122e6f8cec76e86529c3.tar.gz
Enable testing with pypytox_add_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.
-rw-r--r--tests/test_template.txt4
-rw-r--r--tox.ini2
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=