@@ -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