Skip to content

Commit

Permalink
Merge pull request #23870 from Zantares:tenglu/flush_output
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 679639244
  • Loading branch information
Google-ML-Automation committed Sep 27, 2024
2 parents a616758 + a31f79c commit df042fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/api_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -10906,6 +10906,8 @@ def test_call_wrapped_second_phase_cleanup(self):
class EnvironmentInfoTest(jtu.JaxTestCase):
@parameterized.parameters([True, False])
def test_print_environment_info(self, return_string):
# Flush stdout buffer before checking.
sys.stdout.flush()
with jtu.capture_stdout() as stdout:
result = jax.print_environment_info(return_string=return_string)
if return_string:
Expand Down

0 comments on commit df042fd

Please sign in to comment.