Skip to content

Commit

Permalink
lengthen long message to trigger flush on osx
Browse files Browse the repository at this point in the history
  • Loading branch information
jsiirola committed Jan 10, 2025
1 parent be90f1a commit 3c627f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyomo/common/tests/test_tee.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ def _buffering_stdout(self, fd):
ts = timestamper()
ts.write(f"{time.time()}")
with tee.TeeStream(ts, ts) as t, tee.capture_output(t.STDOUT, capture_fd=fd):
sys.stdout.write(f"{time.time()}" + ' ' * 4096 + "\n")
sys.stdout.write(f"{time.time()}" + ' ' * 4096 + "\n")
time.sleep(0.1)
ts.write(f"{time.time()}")
ts.check(self, [(0, 0), (0, 0), (0, 0), (1, 1)])
Expand Down Expand Up @@ -321,7 +321,7 @@ def _buffering_stdout(self, fd):
ts = timestamper()
ts.write(f"{time.time()}")
with tee.capture_output(tee.TeeStream(ts, ts), capture_fd=fd):
sys.stdout.write(f"{time.time()}" + ' ' * 4096 + "\n")
sys.stdout.write(f"{time.time()}" + ' ' * 4096 + "\n")
time.sleep(0.1)
ts.write(f"{time.time()}")
ts.check(self, [(0, 0), (0, 0), (0, 0), (1, 1)])
Expand Down

0 comments on commit 3c627f3

Please sign in to comment.