2 new commits in pytest:
https://bitbucket.org/hpk42/pytest/commits/7d3f7feeaae9/
Changeset: 7d3f7feeaae9
Branch: assert_percent_test
User: tomviner
Date: 2014-10-13 08:26:18+00:00
Summary: test for issue615: compound assert with percent
Affected #: 1 file
diff -r 3a4ae8624da70e3811f9ea305eecfa924485562a -r
7d3f7feeaae9bc407cd00ac2188d66a0d38cdda1 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
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
[email protected]
https://mail.python.org/mailman/listinfo/pytest-commit