Skip to content

Commit

Permalink
Reconnect logger after disconnecting in test. (#1381)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntouran authored Aug 9, 2023
1 parent 4654b96 commit 06bf1f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion armi/tests/test_runLog.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,9 @@ def test_warningReport(self):
self.assertEqual(streamVal.count("test_warningReport"), 2, msg=streamVal)

# bonus check: edge case in duplicates filter
log.logger = None
backupLog, log.logger = log.logger, None
self.assertIsNone(log.getDuplicatesFilter())
log.logger = backupLog

def test_warningReportInvalid(self):
"""A test of warningReport in an invalid situation."""
Expand Down

0 comments on commit 06bf1f1

Please sign in to comment.