Skip to content

Commit

Permalink
tries fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfgangFahl committed Aug 20, 2024
1 parent feb9834 commit aeba301
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_sqlite3.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,9 @@ def testIssue127And55(self):
result, "Expected None for invalid timestamp input"
)
# Check if the expected log message is in log_stream
self.assertIn("Failed to convert", log_stream.getvalue())
log_content=log_stream.getvalue()

self.assertIn("Failed to convert", log_content)
# Clear log stream after checking
log_stream.truncate(0)
log_stream.seek(0)
Expand All @@ -504,6 +506,7 @@ def testIssue127And55(self):
# Remove the handler after the test to clean up
logger.removeHandler(handler)
log_stream.close()
DatetimeAdapter._instance=None

def testMultipleAdapters(self):
"""
Expand Down

0 comments on commit aeba301

Please sign in to comment.