From f1ecc5c5db86cc190ba9aa3bcfbba7662202f68c Mon Sep 17 00:00:00 2001 From: Lumir Balhar Date: Feb 16 2021 09:37:17 +0000 Subject: Fixed tests for Python 3.10 --- diff --git a/python-semver.spec b/python-semver.spec index ae96d2c..a22226a 100644 --- a/python-semver.spec +++ b/python-semver.spec @@ -2,7 +2,7 @@ Name: python-%{modname} Version: 2.13.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Python helper for Semantic Versioning License: BSD @@ -31,6 +31,9 @@ Python 3 version. %autosetup # Remove settings for coverage from setup.cfg sed -i '/-cov[=-]/d' setup.cfg +# Fix tests for Python 3.10 +# Proposed upstream: https://github.com/python-semver/python-semver/pull/336 +sed -i 's/TypeError: __init__() got an unexpected/TypeError: ...__init__() got an unexpected/' docs/usage.rst %build %py3_build @@ -50,6 +53,10 @@ py.test-%{python3_version} -v %{python3_sitelib}/__pycache__/%{modname}.* %changelog +* Tue Feb 16 2021 Lumír Balhar - 2.13.0-3 +- Fixed tests for Python 3.10 +Resolves: rhbz#1906368 + * Wed Jan 27 2021 Fedora Release Engineering - 2.13.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild