From 6205f6e62aaf073743f1f591aecac951e5a66f07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 22 Jan 2015 17:50:34 -0500 Subject: [PATCH] Adjust tests to actually do something python setup.py test is a noop. Upstream is using nosetests to run tests under travis. Do the same here. --- python-freezegun.spec | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/python-freezegun.spec b/python-freezegun.spec index 8cb920d..af06fea 100644 --- a/python-freezegun.spec +++ b/python-freezegun.spec @@ -12,7 +12,7 @@ Name: python-freezegun Version: 0.1.12 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Let your Python tests travel through time Group: Development/Libraries @@ -30,6 +30,9 @@ BuildRequires: python-setuptools BuildRequires: python-six BuildRequires: python-dateutil BuildRequires: python-sure +BuildRequires: python-nose +BuildRequires: python-coverage +BuildRequires: python-mock %if 0%{?with_python3} BuildRequires: python3-devel @@ -37,6 +40,9 @@ BuildRequires: python3-setuptools BuildRequires: python3-six BuildRequires: python3-dateutil BuildRequires: python3-sure +BuildRequires: python3-nose +BuildRequires: python3-coverage +BuildRequires: python3-mock %endif Requires: python-six @@ -87,13 +93,14 @@ popd %{__python2} setup.py install -O1 --skip-build --root=%{buildroot} %check -%{__python2} setup.py test -%if 0%{?with_python3} +%if %with python3 pushd %{py3dir} -%{__python3} setup.py test +nosetests-%{python3_version} tests/ popd %endif +nosetests-%{python2_version} tests/ + %files %doc README.rst LICENSE %{python2_sitelib}/%{modname}/ @@ -107,6 +114,9 @@ popd %endif %changelog +* Thu Jan 22 2015 Zbigniew Jędrzejewski-Szmek - 0.1.12-4 +- Adjust tests to actually do something + * Sat Jun 07 2014 Fedora Release Engineering - 0.1.12-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild