mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-29 11:14:38 +08:00
Fix testutils.assert_* and pow
This commit is contained in:
1 parent
336364c80d
commit
239495f259
2 files changed
+9
-1
No files matched your search
@@ -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(
|
||||
|
||||
@@ -41,7 +41,7 @@ class TestFailingIter:
|
||||
def _assert_print(f, args):
|
||||
raised = True
|
||||
try:
|
||||
f()
|
||||
assert f()
|
||||
raised = False
|
||||
finally:
|
||||
if raised:
|
||||
|
||||
Reference in new issue
Block a user