Skip to content

Commit 54d9788

Browse files
committed
fixup! Change mpoly context constructors
1 parent c073d92 commit 54d9788

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/flint/test/test_all.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2859,11 +2859,11 @@ def test_mpolys():
28592859
# division is exact or not.
28602860
composite_characteristic = characteristic != 0 and not characteristic.is_prime()
28612861

2862-
ctx = get_context((("x", 2),))
2862+
ctx = get_context(("x", 2))
28632863

28642864
assert raises(lambda : ctx.__class__("x", flint.Ordering.lex), RuntimeError)
2865-
assert raises(lambda: get_context((("x", 2),), ordering="bad"), ValueError)
2866-
assert raises(lambda: get_context((("x", -1),)), ValueError)
2865+
assert raises(lambda: get_context(("x", 2), ordering="bad"), ValueError)
2866+
assert raises(lambda: get_context(("x", -1)), ValueError)
28672867
assert raises(lambda: ctx.constant("bad"), TypeError)
28682868
assert raises(lambda: ctx.from_dict("bad"), ValueError)
28692869
assert raises(lambda: ctx.from_dict({(0, 0): "bad"}), TypeError)
@@ -2891,10 +2891,10 @@ def quick_poly():
28912891
assert ctx.nvars() == 2
28922892
assert ctx.ordering() == flint.Ordering.lex
28932893

2894-
ctx1 = get_context((("x", 4),))
2894+
ctx1 = get_context(("x", 4))
28952895
assert [ctx1.name(i) for i in range(4)] == ['x0', 'x1', 'x2', 'x3']
28962896
for order in list(flint.Ordering):
2897-
ctx1 = get_context((("x", 4),), ordering=order)
2897+
ctx1 = get_context(("x", 4), ordering=order)
28982898
assert ctx1.ordering() == order
28992899

29002900
assert ctx.constant(1) == mpoly({(0, 0): 1}) == P(1, ctx=ctx)

0 commit comments

Comments
 (0)