Source

pypy / pypy / module / test_lib_pypy / numpypy / lib / test_function_base.py

1
2
3
4
5
6
7
from pypy.module.micronumpy.test.test_base import BaseNumpyAppTest

class AppTestFunctionBase(BaseNumpyAppTest):
    def test_average(self):
        from numpypy import array, average
        assert average(range(10)) == 4.5
        assert average(array(range(10))) == 4.5