diff --git a/tests/snippets/builtin_pow.py b/tests/snippets/builtin_pow.py index c4971fe84..1df2e2882 100644 --- a/tests/snippets/builtin_pow.py +++ b/tests/snippets/builtin_pow.py @@ -60,6 +60,10 @@ def powtest(type): # FIXME: num-bigint bug for this case # https://github.com/rust-num/num-bigint/pull/113 continue + if i < 0 or k < 0: + # FIXME: num-bigint bug for negative base or mod + # https://github.com/rust-num/num-bigint/pull/114 + continue if k != 0: if type == float or j < 0: assert_raises(TypeError, pow, type(i), j, k) @@ -100,6 +104,10 @@ def test_other(): # FIXME: num-bigint bug for this case # https://github.com/rust-num/num-bigint/pull/113 continue + if i < 0: + # FIXME: num-bigint bug for negative base + # https://github.com/rust-num/num-bigint/pull/114 + continue for k in range(-7, 11): if j >= 0 and k != 0: assert_equal( diff --git a/tests/snippets/testutils.py b/tests/snippets/testutils.py index 19d58ea4a..8a9fdddb2 100644 --- a/tests/snippets/testutils.py +++ b/tests/snippets/testutils.py @@ -41,7 +41,7 @@ class TestFailingIter: def _assert_print(f, args): raised = True try: - f() + assert f() raised = False finally: if raised: