diff options
| author | Charles Harris <charlesr.harris@gmail.com> | 2018-11-14 18:08:30 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-11-14 18:08:30 -0600 |
| commit | d1e0a43ff910e15034997b9b646b38014382fe6e (patch) | |
| tree | 14970cfe5421541fdd3fe0f4e77a23101e39abb1 /numpy/core/tests | |
| parent | 13a69b5e0fc409928dc81cdce405043e7c71cd0a (diff) | |
| parent | a0833836e07aeabde98eb3cfa1a583b3dd4a9439 (diff) | |
| download | numpy-d1e0a43ff910e15034997b9b646b38014382fe6e.tar.gz | |
Merge pull request #12382 from shoyer/finish-set-module
ENH: set correct __module__ for objects in numpy's public API
Diffstat (limited to 'numpy/core/tests')
| -rw-r--r-- | numpy/core/tests/test_overrides.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/core/tests/test_overrides.py b/numpy/core/tests/test_overrides.py index a32049ea1..7db551801 100644 --- a/numpy/core/tests/test_overrides.py +++ b/numpy/core/tests/test_overrides.py @@ -312,6 +312,7 @@ class TestArrayFunctionImplementation(object): array = np.array(1) assert_(func(array) is array) + assert_equal(func.__module__, 'my') with assert_raises_regex( TypeError, "no implementation found for 'my.func'"): @@ -335,7 +336,7 @@ class TestNDArrayMethods(object): class TestNumPyFunctions(object): - def test_module(self): + def test_set_module(self): assert_equal(np.sum.__module__, 'numpy') assert_equal(np.char.equal.__module__, 'numpy.char') assert_equal(np.fft.fft.__module__, 'numpy.fft') |
