2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2022 Marcel Telka
16 %patch% 01-test-plugins-fails.patch
17 %patch% 02-test-rmtree.patch
18 %patch% 03-consider_entry_points.patch
19 %patch% 04-test-pdb-randomly-fails.patch
22 # This component is required by following bootstrapped components so it must be
24 # - Userland testing framework (see setup.py.mk)
25 PYTHON_TEST_BOOTSTRAP = yes
27 # Workaround to run pytest indirectly (see tox.ini).
29 # This is needed because tox is unable to find pytest in proto area due to the
30 # following bug in tox-current-env:
31 # https://github.com/fedora-python/tox-current-env/issues/68
32 COMPONENT_TEST_ENV += _PYTEST_TOX_COVERAGE_RUN="python -m"
34 # This is needed to get consistent test results.
35 # See also https://github.com/pytest-dev/pytest/issues/11761
36 TEST_REQUIRED_PACKAGES.python += library/python/pytest-xdist