Adjust scripts for compatibility with Python 3.14 (#146774)
parent
cdb2b407be
commit
3d2dca5f0c
|
@ -46,10 +46,8 @@ def run(args: list[str]) -> int:
|
|||
|
||||
config_dir = extract_config_dir()
|
||||
|
||||
loop = asyncio.get_event_loop()
|
||||
|
||||
if not is_virtual_env():
|
||||
loop.run_until_complete(async_mount_local_lib_path(config_dir))
|
||||
asyncio.run(async_mount_local_lib_path(config_dir))
|
||||
|
||||
_pip_kwargs = pip_kwargs(config_dir)
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@ def mock_is_file():
|
|||
"""Mock is_file."""
|
||||
# All files exist except for the old entity registry file
|
||||
with patch(
|
||||
"os.path.isfile", lambda path: not path.endswith("entity_registry.yaml")
|
||||
"os.path.isfile", lambda path: not str(path).endswith("entity_registry.yaml")
|
||||
):
|
||||
yield
|
||||
|
||||
|
|
Loading…
Reference in New Issue