Skip to content

Commit a250fea

Browse files
committed
fix: reassign stdout
1 parent 315cb3b commit a250fea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/nagios.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ def test_threshold(self, message="Hello"):
133133

134134
time.sleep(threshold + 1)
135135
buff = StringIO()
136+
sys.stdout = buff
136137
raised_exception = None
137138
reporter_test = NagiosReporter('test_cache', filename, threshold, self.nagios_user)
138139
try:

0 commit comments

Comments
 (0)