Skip to content

Commit 25082e5

Browse files
committed
deb_skip_some_tests_on_arm fixed it up (missing nose imports). Thanks Logan Rosen! (Closes: #773862)
1 parent a4b52f2 commit 25082e5

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

debian/changelog

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,15 @@ scikit-learn (0.16.1-2) unstable; urgency=medium
66
- properly dropped python-support, debian/rules was already
77
using dh_ helpers (Closes: #786185)
88
* debian/patches
9-
Picked up from usptream 2 fixes:
10-
- changeset_190fe7347cfd6fab67f37c7535c4fa9b8f0870de.diff
11-
FIX Include PyFuncDistance attributes while pickling.
12-
- changeset_5e502596460014ed3adebe61e8189a60e72d3623.diff
13-
Fix signature not compatible with previous declaration
14-
(Closes: #791615)
9+
- Picked up from usptream 2 fixes:
10+
- changeset_190fe7347cfd6fab67f37c7535c4fa9b8f0870de.diff
11+
FIX Include PyFuncDistance attributes while pickling.
12+
- changeset_5e502596460014ed3adebe61e8189a60e72d3623.diff
13+
Fix signature not compatible with previous declaration
14+
(Closes: #791615)
15+
- deb_skip_some_tests_on_arm
16+
fixed it up (missing nose imports). Thanks Logan Rosen!
17+
(Closes: #773862)
1518

1619
-- Yaroslav Halchenko <[email protected]> Fri, 10 Jul 2015 23:26:48 -0400
1720

debian/patches/deb_skip_some_tests_on_arm

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,20 @@
66
in_warning_message = 'divide by zero'
77
+ import platform
88
+ if platform.uname()[4].startswith('armv'):
9-
+ raise nose.SkipTest("no warning gets issued on armel")
9+
+ raise SkipTest("no warning gets issued on armel")
1010
+
1111
tfidf = assert_warns_message(RuntimeWarning, in_warning_message,
1212
tr.fit_transform, X).toarray()
1313
if not numpy_provides_div0_warning:
14-
diff --git a/sklearn/metrics/tests/test_ranking.py b/sklearn/metrics/tests/test_ranking.py
15-
index 40ce6f6..8328716 100644
1614
--- a/sklearn/metrics/tests/test_ranking.py
1715
+++ b/sklearn/metrics/tests/test_ranking.py
18-
@@ -543,6 +543,9 @@ def test_precision_recall_curve_toydata():
16+
@@ -540,6 +540,10 @@ def test_precision_recall_curve_toydata(
1917

2018
y_true = [0, 0]
2119
y_score = [0.25, 0.75]
2220
+ import platform
2321
+ if platform.uname()[4].startswith('armv'):
22+
+ import nose
2423
+ raise nose.SkipTest("no precision-related exceptions get issued on armel")
2524
assert_raises(Exception, precision_recall_curve, y_true, y_score)
2625
assert_raises(Exception, average_precision_score, y_true, y_score)

0 commit comments

Comments
 (0)