lbry-android-sdk/p4a_rename_test/pythonforandroid/recipes/numpy/patches/fix-numpy.patch
2022-11-29 15:11:29 -05:00

34 lines
1 KiB
Diff

diff --git a/numpy/testing/__init__.py b/numpy/testing/__init__.py
index a7c8593..007ce26 100644
--- a/numpy/testing/__init__.py
+++ b/numpy/testing/__init__.py
@@ -1,22 +1,8 @@
-"""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
-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