Skip to content

Commit bbf4978

Browse files
Minor: change one test regex match to accomodate numpy 2.0
1 parent bf619cd commit bbf4978

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/pytest_parallel_refs/terminal_fail_complex_assert_two_procs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ comm = <mpi4py.MPI.Intracomm object at [^\n]*>
3434
assert 1 == 0
3535
if comm.Get_rank\(\) == 1:
3636
> assert \(np.array\(\[0,1,2\]\) == np.array\(\[0,1,3\]\)\).all\(\)
37-
E assert False
38-
E \+ where False = <built-in method all of numpy\.ndarray object at [^\n]*>\(\)
37+
E assert (?:np.)?False_?
38+
E \+ where (?:np.)?False_? = <built-in method all of numpy\.ndarray object at [^\n]*>\(\)
3939
E \+ where <built-in method all of numpy\.ndarray object at [^\n]*> = array\(\[0, 1, 2\]\) == array\(\[0, 1, 3\]\)
4040
?(?:[^\n]*)?
4141
E Full diff:

0 commit comments

Comments
 (0)