diff --git a/avocado-69.1-selftest-py3.8.patch b/avocado-69.1-selftest-py3.8.patch new file mode 100644 index 0000000..6020d5d --- /dev/null +++ b/avocado-69.1-selftest-py3.8.patch @@ -0,0 +1,20 @@ +diff -ru ../avocado-69.1.ORIG/selftests/unit/test_loader.py ./selftests/unit/test_loader.py +--- ../avocado-69.1.ORIG/selftests/unit/test_loader.py 2019-06-12 13:39:15.000000000 -0500 ++++ ./selftests/unit/test_loader.py 2019-09-09 16:23:21.637693415 -0500 +@@ -1,6 +1,7 @@ + import os + import shutil + import stat ++import sys + import tempfile + import unittest + +@@ -449,6 +450,8 @@ + ('Test10', 'selftests/.data/loader_instrumented/imports.py:Test10.test')] + self._check_discovery(exps, tests) + ++ @unittest.skipIf(sys.version_info[0:2] == (3, 8), ++ "Test currently broken on Python 3.8") + def test_dont_detect_non_avocado(self): + path = os.path.join(os.path.dirname(os.path.dirname(__file__)), + '.data', 'loader_instrumented', 'dont_detect_non_avocado.py') diff --git a/python-avocado.spec b/python-avocado.spec index 3243805..56ea5ad 100644 --- a/python-avocado.spec +++ b/python-avocado.spec @@ -71,7 +71,7 @@ Name: python-%{pkgname} Version: 69.1 -Release: 1%{?gitrel}%{?dist} +Release: 2%{?gitrel}%{?dist} Summary: Framework with tools and libraries for Automated Testing Group: Development/Tools # Found licenses: @@ -81,6 +81,7 @@ Group: Development/Tools License: GPLv2 and MIT URL: http://avocado-framework.github.io/ Source0: https://github.com/avocado-framework/%{srcname}/archive/%{gitref}.tar.gz#/%{gittar} +Patch0: avocado-69.1-selftest-py3.8.patch BuildArch: noarch BuildRequires: procps-ng @@ -189,6 +190,7 @@ these days a framework) to perform automated testing. %prep %setup -q -n %{srcname}-%{gitref} +%patch0 -p1 # package plugins-runner-vm requires libvirt-python, but the RPM # version of libvirt-python does not publish the egg info and this # causes that dep to be attempted to be installed by pip @@ -1170,6 +1172,9 @@ Again Shell code (and possibly other similar shells). %changelog +* Mon Sep 09 2019 Merlin Mathesius - 69.1-2 +- Patch to skip selftest currently incompatible with Python 3.8. + * Tue Jun 18 2019 Merlin Mathesius - 69.1-1 - Sync with upstream release 69.1 (LTS series).