lbry-android/p4a/pythonforandroid/recipes/numpy/patches/fix-numpy.patch

35 lines
1 KiB
Diff
Raw Normal View History

2017-08-13 03:24:00 +02:00
diff --git a/numpy/testing/__init__.py b/numpy/testing/__init__.py
index a7c8593..007ce26 100644
2017-08-13 03:24:00 +02:00
--- a/numpy/testing/__init__.py
+++ b/numpy/testing/__init__.py
@@ -1,22 +1,8 @@
2017-08-13 03:24:00 +02:00
-"""Common test support for all numpy test scripts.
+# fake tester, android don't have unittest
+class Tester(object):
+ def test(self, *args, **kwargs):
+ pass
+ def bench(self, *args, **kwargs):
+ pass
+test = Tester().test
2017-08-13 03:24:00 +02:00
-This single module should provide all the common functionality for numpy tests
-in a single location, so that test scripts can just import it and work right
-away.
-
-"""
-from __future__ import division, absolute_import, print_function
-
-from unittest import TestCase
-
-from ._private.utils import *
-from ._private import decorators as dec
-from ._private.nosetester import (
- run_module_suite, NoseTester as Tester
- )
-
-__all__ = _private.utils.__all__ + ['TestCase', 'run_module_suite']
-
-from ._private.pytesttester import PytestTester
-test = PytestTester(__name__)
-del PytestTester