From 492f4eb02e3e7a9f70a48e631fee5672b0c5c0de Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Fri, 26 Oct 2018 12:15:18 +0200 Subject: [PATCH] Run tests for Python 3 In tox.ini, mock uses "unit2 discover". To make the interpreter explicit, call it as `%{__python3} -m unittest2 discover` from the spec. --- python-mock.spec | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/python-mock.spec b/python-mock.spec index bac1c09..20ae4d2 100644 --- a/python-mock.spec +++ b/python-mock.spec @@ -11,7 +11,7 @@ Name: python-mock Version: 2.0.0 -Release: 11%{?dist} +Release: 12%{?dist} Summary: A Python Mocking and Patching Library for Testing License: BSD @@ -85,8 +85,7 @@ needed attributes in the normal way. %check %{__python2} setup.py test %if 0%{?with_python3} -# Few failing tests but keep output -%{__python3} setup.py test ||: +%{__python3} -m unittest2 discover %endif %install @@ -112,6 +111,9 @@ needed attributes in the normal way. %changelog +* Fri Oct 26 2018 Petr Viktorin - 2.0.0-12 +- Run tests for Python 3 + * Fri Aug 17 2018 Miro HronĨok - 2.0.0-11 - Don't require funcsigs on python3, it's part of the standard library