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.



_______________________________________________
pytest-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pytest-commit

Reply via email to