Skip to content

Commit 48eb404

Browse files
titusfortneraguspe
authored andcommitted
[py] fix text using caplog
need to format the message instead of using the message string with placeholder
1 parent c99c135 commit 48eb404

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

py/test/unit/selenium/webdriver/common/cdp_module_fallback_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ def test_missing_cdp_devtools_version_falls_back(caplog):
2626
with caplog.at_level(logging.DEBUG, logger="selenium"):
2727
assert isinstance(import_devtools("will_never_exist"), types.ModuleType)
2828
# assert the fallback occurred successfully offered up a v{n} option.
29-
assert re.match(r"Falling back to loading `devtools`: v\d+", caplog.records[-1].msg) is not None
29+
assert re.match(r"Falling back to loading `devtools`: v\d+", caplog.records[-1].getMessage()) is not None

0 commit comments

Comments
 (0)