tests/test_app.py:5: in <module>
from webtest.compat import to_bytes
webtest/__init__.py:9: in <module>
from webtest.app import TestApp
webtest/app.py:89: in <module>
class TestApp(object):
webtest/app.py:466: in TestApp
post_json = utils.json_method('POST')
webtest/utils.py:39: in json_method
wrapper.__doc__ = json_method.__doc__ % subst
E TypeError: unsupported operand type(s) for %: 'NoneType' and 'dict'
This code is trying to update the docstring, which doesn't exist under PYTHONOPTIMIZE=2
It seems that webtest currently doesn't support enabling full python optimization with PYTHONOPTIMIZE=2, is this a known issue?
To Reproduce
eg:
This code is trying to update the docstring, which doesn't exist under
PYTHONOPTIMIZE=2
Expected behavior Tests to pass.