diff --git a/asyncpg-0.22.0-python3.10-test_invalid_input.patch b/asyncpg-0.22.0-python3.10-test_invalid_input.patch index 10a97bc..a83481e 100644 --- a/asyncpg-0.22.0-python3.10-test_invalid_input.patch +++ b/asyncpg-0.22.0-python3.10-test_invalid_input.patch @@ -7,8 +7,8 @@ diff -Naur asyncpg-0.22.0-original/tests/test_codecs.py asyncpg-0.22.0/tests/tes async def test_invalid_input(self): + # The latter message appears beginning in Python 3.10. + integer_required = ( -+ "(an integer is required|" -+ "\('str' object cannot be interpreted as an integer\))") ++ r"(an integer is required|" ++ r"\('str' object cannot be interpreted as an integer\))") + cases = [ ('bytea', 'a bytes-like object is required', [ diff --git a/python-asyncpg.spec b/python-asyncpg.spec index c7d2623..c2aebb7 100644 --- a/python-asyncpg.spec +++ b/python-asyncpg.spec @@ -3,7 +3,7 @@ Name: python-%{srcname} Summary: A fast PostgreSQL Database Client Library for Python/asyncio Version: 0.22.0 -Release: 5%{?dist} +Release: 6%{?dist} License: ASL 2.0 URL: https://github.com/MagicStack/%{srcname} @@ -178,6 +178,9 @@ k='not TestFlake8' %changelog +* Tue Apr 27 2021 Benjamin A. Beasley - 0.22.0-6 +- Updated patch for Python 3.10 + * Mon Apr 26 2021 Benjamin A. Beasley - 0.22.0-5 - Patch for Python 3.10 compatibility (RHBZ#1953538, upstream issue #750)