2017-08-13 03:24:00 +02:00
|
|
|
diff --git a/numpy/testing/__init__.py b/numpy/testing/__init__.py
|
2019-03-30 21:58:45 +01:00
|
|
|
index a7c8593..007ce26 100644
|
2017-08-13 03:24:00 +02:00
|
|
|
--- a/numpy/testing/__init__.py
|
|
|
|
+++ b/numpy/testing/__init__.py
|
2019-03-30 21:58:45 +01:00
|
|
|
@@ -1,22 +1,8 @@
|
2017-08-13 03:24:00 +02:00
|
|
|
-"""Common test support for all numpy test scripts.
|
2019-03-30 21:58:45 +01:00
|
|
|
+# 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
|
|
|
|
-
|
2019-03-30 21:58:45 +01:00
|
|
|
-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
|