File: deb_skip_some_tests_on_arm

package info (click to toggle)
scikit-learn 0.18-5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 71,040 kB
  • ctags: 91,142
  • sloc: python: 97,257; ansic: 8,360; cpp: 5,649; makefile: 242; sh: 238
file content (26 lines) | stat: -rw-r--r-- 1,110 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- a/sklearn/feature_extraction/tests/test_text.py
+++ b/sklearn/feature_extraction/tests/test_text.py
@@ -352,6 +352,10 @@ def test_tfidf_no_smoothing():
         numpy_provides_div0_warning = len(w) == 1
 
     in_warning_message = 'divide by zero'
+    import platform
+    if platform.uname()[4].startswith('armv'):
+        raise SkipTest("no warning gets issued on armel")
+
     tfidf = assert_warns_message(RuntimeWarning, in_warning_message,
                                  tr.fit_transform, X).toarray()
     if not numpy_provides_div0_warning:
--- a/sklearn/metrics/tests/test_ranking.py
+++ b/sklearn/metrics/tests/test_ranking.py
@@ -538,6 +538,10 @@ def test_precision_recall_curve_toydata(
 
         y_true = [0, 0]
         y_score = [0.25, 0.75]
+        import platform
+        if platform.uname()[4].startswith('armv'):
+            import nose
+            raise nose.SkipTest("no precision-related exceptions get issued on armel")
         assert_raises(Exception, precision_recall_curve, y_true, y_score)
         assert_raises(Exception, average_precision_score, y_true, y_score)