From 585c01720efeca252c56d2ddc7dbb52786fdcc1b Mon Sep 17 00:00:00 2001 From: Benjamin A. Beasley Date: Jan 16 2022 14:37:34 +0000 Subject: Skip a failing test on s390x with GCC 12 https://github.com/MagicStack/asyncpg/issues/877 --- diff --git a/python-asyncpg.spec b/python-asyncpg.spec index b5a0ea4..b0be4be 100644 --- a/python-asyncpg.spec +++ b/python-asyncpg.spec @@ -121,6 +121,12 @@ ln -s %{buildroot}%{python3_sitearch}/asyncpg/ # flake8 and pycodestyle out of the test dependencies k="${k-}${k+ and }not TestFlake8" +%ifarch s390x +# This appears to be associated with GCC 12. +# https://github.com/MagicStack/asyncpg/issues/877 +k="${k-}${k+ and }not (TestPrepare and test_prepare_28_max_args)" +%endif + %pytest -k "${k}"