@@ -151,7 +151,7 @@ def test_cse_not_possible():
151151 assert reduced == [x + y ]
152152 # issue 6329
153153 eq = (
154- meijerg ((1 , 2 ), (y , 4 ), (5 ,), [], x ) # pylint: disable=possibly-used-before-assignment
154+ meijerg ((1 , 2 ), (y , 4 ), (5 ,), [], x )
155155 + meijerg ((1 , 3 ), (y , 4 ), (5 ,), [], x ))
156156 assert cse (eq ) == ([], [eq ])
157157
@@ -177,7 +177,7 @@ def test_subtraction_opt():
177177 # Make sure subtraction is optimized.
178178 e = (x - y )* (z - y ) + sym .exp ((x - y )* (z - y ))
179179 substs , reduced = cse (
180- [e ], optimizations = [(cse_opts .sub_pre , cse_opts .sub_post )]) # pylint: disable=possibly-used-before-assignment
180+ [e ], optimizations = [(cse_opts .sub_pre , cse_opts .sub_post )])
181181 assert substs == [(x0 , (x - y )* (y - z ))]
182182 assert reduced == [- x0 + sym .exp (- x0 )]
183183 e = - (x - y )* (z - y ) + sym .exp (- (x - y )* (z - y ))
@@ -341,7 +341,7 @@ def test_issue_6169():
341341 assert cse (r ) == ([], [r ])
342342 # and a check that the right thing is done with the new
343343 # mechanism
344- assert sub_post (sub_pre ((- x - y )* z - x - y )) == - z * (x + y ) - x - y # pylint: disable=possibly-used-before-assignment
344+ assert sub_post (sub_pre ((- x - y )* z - x - y )) == - z * (x + y ) - x - y
345345
346346# }}}
347347
0 commit comments