Skip to content

Commit f8fe130

Browse files
committed
Update test baseline to account for FD context
1 parent fe49a2a commit f8fe130

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pyomo/common/tests/test_tee.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -523,19 +523,19 @@ def test_no_fileno_stdout(self):
523523
sys.stderr = os.fdopen(os.dup(2), closefd=True)
524524
with sys.stdout, sys.stderr:
525525
with T:
526-
self.assertEqual(len(T.context_stack), 7)
526+
self.assertEqual(len(T.context_stack), 8)
527527
# out & err point to fd 1 and 2
528528
sys.stdout = os.fdopen(1, closefd=False)
529529
sys.stderr = os.fdopen(2, closefd=False)
530530
with sys.stdout, sys.stderr:
531531
with T:
532-
self.assertEqual(len(T.context_stack), 5)
532+
self.assertEqual(len(T.context_stack), 6)
533533
# out & err have no fileno
534534
sys.stdout = StringIO()
535535
sys.stderr = StringIO()
536536
with sys.stdout, sys.stderr:
537537
with T:
538-
self.assertEqual(len(T.context_stack), 5)
538+
self.assertEqual(len(T.context_stack), 6)
539539

540540
def test_capture_output_stack_error(self):
541541
OUT1 = StringIO()

0 commit comments

Comments
 (0)