[Pytest-commit] Issue #604: ValueError: unsupported format character in case of % sign in assert message (hpk42/pytest)
pytry
issues-reply at bitbucket.org
Wed Oct 1 09:09:14 CEST 2014
New issue 604: ValueError: unsupported format character in case of % sign in assert message
https://bitbucket.org/hpk42/pytest/issue/604/valueerror-unsupported-format-character-in
pytry:
Hello,
I have noticed strange error when running the tests which in assert message use the % sign.
Following code is reproducing this behaviour:
```
#!python
def test_message_fail():
assert False, "message with %"
```
And as result I've got:
```
#!
ValueError: unsupported format character '
E ValueError: unsupported format character '
' (0xa) at index 14
```
Versions I'm using:
* Python 2.7.6
* pytest-2.6.3
I've noticed that this behaviour is not visible when--assert=reinterp is used.
Is it intended behaviour?
Maybe I missed something but could not find any info in change log.
Thanks in advance for help.
More information about the pytest-commit
mailing list