1 new commit in pytest:

https://bitbucket.org/hpk42/pytest/commits/4696fc59a5a1/
Changeset:   4696fc59a5a1
User:        flub
Date:        2014-10-15 19:44:24+00:00
Summary:     Merged in tomviner/pytest/assert_percent_test (pull request #223)

Test for issue615: compound assert with percent
Affected #:  1 file

diff -r 1d2fa202e54cb8e61d5b8eaceffb93da5fe7ed9b -r 
4696fc59a5a15f9c79902d34489865bf7f840b6c testing/test_assertrewrite.py
--- a/testing/test_assertrewrite.py
+++ b/testing/test_assertrewrite.py
@@ -270,6 +270,16 @@
             assert not 5 % 4
         assert getmsg(f) == "assert not (5 % 4)"
 
+    @pytest.mark.xfail(reason='unfixed')
+    def test_and_or_percent(self):
+        # issue 615 - ValueError on compound assert with percent
+        def f():
+            assert 3 % 2 or False
+        assert getmsg(f) == "assert (3 % 2) or False"
+        def f():
+            assert True and 7 % 3
+        assert getmsg(f) == "assert True and (7 % 3)"
+
     def test_call(self):
         def g(a=42, *args, **kwargs):
             return False

Repository URL: https://bitbucket.org/hpk42/pytest/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
_______________________________________________
pytest-commit mailing list
pytest-commit@python.org
https://mail.python.org/mailman/listinfo/pytest-commit

Reply via email to