1 parent c99c135 commit 48eb404Copy full SHA for 48eb404
1 file changed
py/test/unit/selenium/webdriver/common/cdp_module_fallback_tests.py
@@ -26,4 +26,4 @@ def test_missing_cdp_devtools_version_falls_back(caplog):
26
with caplog.at_level(logging.DEBUG, logger="selenium"):
27
assert isinstance(import_devtools("will_never_exist"), types.ModuleType)
28
# 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
+ assert re.match(r"Falling back to loading `devtools`: v\d+", caplog.records[-1].getMessage()) is not None
0 commit comments