Mark problematic tests as xfail via patch

This commit is contained in:
Sergio Pascual 2014-12-08 23:54:04 +01:00
parent ebcfe6fb32
commit 7705da2e92
3 changed files with 38 additions and 2 deletions

View File

@ -5,7 +5,7 @@ diff -ur astropy-0.4.2/astropy/modeling/tests/test_models.py astropy-0.4.2.2516/
y = test_parameters['y_values']
utils.assert_allclose(model(x), y, atol=self.eval_error)
+ @pytest.skip("Skip in Fedora. (github isssue #2516)")
+ @pytest.mark.xfail(reason="Skip in Fedora. (github isssue #2516)")
@pytest.mark.skipif('not HAS_SCIPY')
def test_fitter1D(self, model_class, test_parameters):
"""

View File

@ -0,0 +1,27 @@
diff -ur astropy-0.4.2/astropy/table/tests/test_groups.py astropy-0.4.2.xxxx/astropy/table/tests/test_groups.py
--- astropy-0.4.2/astropy/table/tests/test_groups.py 2014-12-08 23:29:00.055308187 +0100
+++ astropy-0.4.2.xxxx/astropy/table/tests/test_groups.py 2014-12-08 23:28:05.222892528 +0100
@@ -245,6 +245,7 @@
assert np.all(t2.groups.keys['a'] == np.array([0, 2]))
+@pytest.mark.xfail(reason="Skip in Fedora. (github isssue #3180)")
def test_grouped_item_access():
"""
Test that column slicing preserves grouping
@@ -398,6 +399,7 @@
assert 'grouped_by_table_cols' not in tg['c'].groups.keys.meta
+@pytest.mark.xfail(reason="Skip in Fedora. (github isssue #3180)")
def test_table_aggregate():
"""
Aggregate a table
@@ -518,6 +520,7 @@
' 2']
+@pytest.mark.xfail(reason="Skip in Fedora. (github isssue #3180)")
def test_column_aggregate():
"""
Aggregate a single table column

View File

@ -3,7 +3,7 @@
Name: python-astropy
Version: 0.4.2
Release: 2%{?dist}
Release: 3%{?dist}
Summary: A Community Python Library for Astronomy
License: BSD
@ -16,7 +16,11 @@ Patch1: python-astropy-system-pytest.patch
Patch2: python-astropy-system-six.patch
Patch3: python-astropy-configobj5.patch
# Disable problematic test (upstream 2516)
# https://github.com/astropy/astropy/issues/2516
Patch4: python-astropy-skiptest2516.patch
# Disable problematic test (upstream 3180)
# https://github.com/astropy/astropy/issues/3180
Patch5: python-astropy-skiptest3180.patch
BuildRequires: python2-devel python-setuptools numpy
BuildRequires: scipy h5py
@ -138,6 +142,8 @@ cp %{SOURCE2} astropy/extern/ply.py
# Disable problematic test (upstream #2516)
%patch4 -p1
# Mark problematic test as xfail (upstream #3180)
%patch5 -p1
echo "[build]" >> setup.cfg
echo "use_system_libraries=1" >> setup.cfg
@ -222,6 +228,9 @@ popd
%endif # with_python3
%changelog
* Mon Dec 08 2014 Sergio Pascual <sergiopr@fedoraproject.org> - 0.4.2-3
- Mark problematic tests as xfail via patch
* Fri Dec 05 2014 Sergio Pascual <sergiopr@fedoraproject.org> - 0.4.2-2
- Fix to use configobj 5
- Patches reorganized