Skip to content

Commit 4046eb4

Browse files
committed
tst: lib/test initialization log message check: py 3.10
support the initialization logging message on python 3.10 Python 3.10 returns such a version info: python 3.10.2 (main, Jan 16 2022, 11:55:27) [GCC 9.3.0] the gcc version is now extend the regex to catch this and make it more generic, less complex
1 parent b4e44cc commit 4046eb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

intelmq/lib/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ def run_bot(self, iterations: int = 1, error_on_pipeline: bool = False,
350350

351351
""" Test if bot log messages are correctly formatted. """
352352
self.assertLoglineMatches(0, "{} initialized with id {} and intelmq [0-9a-z.]* and python"
353-
r" [0-9a-z.]{{5,8}}\+? \([a-zA-Z0-9,:. ]+\)( \[GCC\])?"
353+
r" [0-9a-z.]{{5,8}}\+? \(.+?\)( \[GCC.*?\])?"
354354
r" as process [0-9]+\."
355355
"".format(self.bot_name,
356356
self.bot_id), "INFO")

0 commit comments

Comments
 (0)