Skip to content

Commit

Permalink
Added effects_barrier to fix test issue with JAX 0.4.33+
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-kidger committed Oct 21, 2024
1 parent d80ff7a commit cbf04ff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/test_progress_meter.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def solve(t0):
for num_lines, solve_fn in solve_fns:
capfd.readouterr()
solve_fn()
jax.effects_barrier()
captured = capfd.readouterr()
err = captured.err.strip()
assert re.match("0.00%|[ ]+|", err.split("\r", 1)[0])
Expand Down

0 comments on commit cbf04ff

Please sign in to comment.