Skip to content

Commit be3d9ea

Browse files
committed
numpy: fix bench too.
1 parent 80160d3 commit be3d9ea

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

recipes/numpy/patches/fix-numpy.patch

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ diff -x build -x '*.pyc' -x '*.swp' -Naur numpy-1.7.1.orig/numpy/core/src/privat
3939
#endif
4040
diff -x build -x '*.pyc' -x '*.swp' -Naur numpy-1.7.1.orig/numpy/testing/__init__.py numpy-1.7.1/numpy/testing/__init__.py
4141
--- numpy-1.7.1.orig/numpy/testing/__init__.py 2013-04-07 07:04:05.000000000 +0200
42-
+++ numpy-1.7.1/numpy/testing/__init__.py 2013-05-03 11:05:57.620492127 +0200
43-
@@ -1,15 +1,5 @@
42+
+++ numpy-1.7.1/numpy/testing/__init__.py 2013-05-03 11:09:29.316488099 +0200
43+
@@ -1,15 +1,7 @@
4444
-"""Common test support for all numpy test scripts.
4545
-
4646
-This single module should provide all the common functionality for numpy tests
@@ -57,6 +57,8 @@ diff -x build -x '*.pyc' -x '*.swp' -Naur numpy-1.7.1.orig/numpy/testing/__init_
5757
-from nosetester import run_module_suite
5858
+# fake tester, android don't have unittest
5959
+class Tester(object):
60-
+ def test(self):
60+
+ def test(self, *args, **kwargs):
61+
+ pass
62+
+ def bench(self, *args, **kwargs):
6163
+ pass
6264
test = Tester().test

0 commit comments

Comments
 (0)