mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-09 15:13:31 -04:00
dev-python/cloudflare: deselect failing test for python3.11
Looks like its a small memory leak Will put in an upstream bug soon for them to look at Passes on python3.12 (and upstream's ci using 3.9) Closes: https://bugs.gentoo.org/934952 Signed-off-by: Kyle Elbert <kcelbert@gmail.com>
This commit is contained in:
@@ -68,15 +68,24 @@ python_test() {
|
|||||||
local EPYTEST_DESELECT=(
|
local EPYTEST_DESELECT=(
|
||||||
tests/test_client.py::TestCloudflare::test_validate_headers
|
tests/test_client.py::TestCloudflare::test_validate_headers
|
||||||
tests/test_client.py::TestAsyncCloudflare::test_validate_headers )
|
tests/test_client.py::TestAsyncCloudflare::test_validate_headers )
|
||||||
|
if [ "${EPYTHON}" == "python3.11" ]; then
|
||||||
|
#fails due to slight memory leak
|
||||||
|
EPYTEST_DESELECT+=(
|
||||||
|
tests/test_client.py::TestCloudflare::test_copy_build_request )
|
||||||
|
fi
|
||||||
epytest
|
epytest
|
||||||
}
|
}
|
||||||
|
|
||||||
src_test() {
|
src_test() {
|
||||||
# Run prism mock api server, this is what needs nodejs
|
start_mock
|
||||||
|
distutils-r1_src_test
|
||||||
|
stop_mock
|
||||||
|
}
|
||||||
|
start_mock() {
|
||||||
|
# Run prism mock api server, this is what needs nodejs
|
||||||
node --no-warnings node_modules/@stoplight/prism-cli/dist/index.js mock \
|
node --no-warnings node_modules/@stoplight/prism-cli/dist/index.js mock \
|
||||||
"cloudflare-spec.yml" >prism.log || die "Failed starting prism" &
|
"cloudflare-spec.yml" >prism.log || die "Failed starting prism" &
|
||||||
local MOCK_PID=$!
|
echo $! >"${T}/mock.pid" || die
|
||||||
# Wait for server to come online
|
# Wait for server to come online
|
||||||
echo -n "Waiting for mockserver"
|
echo -n "Waiting for mockserver"
|
||||||
while ! grep -q "✖ fatal\|Prism is listening" "prism.log" ; do
|
while ! grep -q "✖ fatal\|Prism is listening" "prism.log" ; do
|
||||||
@@ -86,6 +95,7 @@ src_test() {
|
|||||||
if grep -q "✖ fatal" prism.log; then
|
if grep -q "✖ fatal" prism.log; then
|
||||||
die "Prism mock server failed"
|
die "Prism mock server failed"
|
||||||
fi
|
fi
|
||||||
distutils-r1_src_test
|
}
|
||||||
kill "${MOCK_PID}"
|
stop_mock() {
|
||||||
|
kill $(cat "${T}/mock.pid") || die
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user