Re: RFC: adding pytest as a supported test framework

Поиск
Список
Период
Сортировка
От Jacob Champion
Тема Re: RFC: adding pytest as a supported test framework
Дата
Msg-id CAOYmi+kebAt6wSX7ee0c0kMzV7r0hp93bAt10V5a88yHHUKwog@mail.gmail.com
обсуждение исходный текст
Ответ на Re: RFC: adding pytest as a supported test framework  (Jacob Champion <jacob.champion@enterprisedb.com>)
Ответы Re: RFC: adding pytest as a supported test framework
Список pgsql-hackers
On Tue, Sep 9, 2025 at 2:50 PM Jacob Champion
<jacob.champion@enterprisedb.com> wrote:
> When enabling the feature, the check_pytest.py script checks that the
> configured `PYTHON` executable has all of pytest-requirements.txt
> installed. Peter pointed out that this is incorrect: what we actually
> want to check is that the interpreter used by pytest has all of the
> required packages, and the two could be different.

Turns out we've already solved this exact problem for Perl and Prove
[1], and I should probably choose a similar solution for Python and
pytest. In other words: make the requirements check into a test.

--Jacob

[1] http://postgr.es/c/c4fe3199a



В списке pgsql-hackers по дате отправления: