Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Замена py.test на pytest в run_tests, так как pytest 7.2.0 больше не зависит от py #51

Merged

Conversation

IlyaMuravjov
Copy link
Contributor

Из списка изменений в pytest 7.2.0 (2022-10-23):

#10396: pytest no longer depends on the py library. pytest provides a vendored copy of py.error and py.path modules but will use the py library if it is installed. If you need other py.* modules, continue to install the deprecated py library separately, otherwise it can usually be removed as a dependency.

В связи с этим в run_tests.py py.test был заменён на pytest. Если этого не сделать, то тесты без явной установки устаревшей библиотеки py (в том в числе если настроить их запуск через GitHub Actions) будут падать с ошибкой:

/opt/hostedtoolcache/Python/3.8.14/x64/bin/python: Error while finding module specification for 'py.test' (ModuleNotFoundError: __path__ attribute not found on 'py' while trying to find 'py.test')

@gsvgit gsvgit merged commit ab23682 into FormalLanguageConstrainedPathQuerying:main Nov 10, 2022
lana-svt pushed a commit to lana-svt/formal-lang-course that referenced this pull request Mar 6, 2024
…Muravjov/run-tests-fix

Замена py.test на pytest в run_tests, так как pytest 7.2.0 больше не зависит от py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants