openatx / uiautomator2

Android Uiautomator2 Python Wrapper
MIT License
6.48k stars 1.38k forks source link

DeprecatedWarning: push is deprecated as of 2.6.0 and will be removed in 3.0.0. use sync.push instead #992

Closed hashqueue closed 2 months ago

hashqueue commented 3 months ago

pytest跑完case后提示如下warning

=========================================================================================== test session starts ===========================================================================================
platform win32 -- Python 3.10.11, pytest-8.2.2, pluggy-1.5.0 -- D:\PyCharmProjects\smautotest\.venv\Scripts\python.exe
cachedir: .pytest_cache
rootdir: D:\PyCharmProjects\smautotest
configfile: pytest.ini
plugins: allure-pytest-2.13.5
collected 1 item                                                                                                                                                                                           
.venv\lib\site-packages\uiautomator2\core.py:226
  D:\PyCharmProjects\smautotest\.venv\lib\site-packages\uiautomator2\core.py:226: DeprecatedWarning: push is deprecated as of 2.6.0 and will be removed in 3.0.0. use sync.push instead
    self._dev.push(apk_path, target_path)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
===================================================================================== 1 passed, 2 warnings in 15.12s ===========================================================================
codeskyblue commented 2 months ago

已处理