(self)
| 158 | assert_(np.r_[x, x].dtype == dt) |
| 159 | |
| 160 | def test_who_with_0dim_array(self): |
| 161 | # ticket #1243 |
| 162 | import os |
| 163 | import sys |
| 164 | |
| 165 | oldstdout = sys.stdout |
| 166 | sys.stdout = open(os.devnull, 'w') |
| 167 | try: |
| 168 | try: |
| 169 | np.who({'foo': np.array(1)}) |
| 170 | except Exception: |
| 171 | raise AssertionError("ticket #1243") |
| 172 | finally: |
| 173 | sys.stdout.close() |
| 174 | sys.stdout = oldstdout |
| 175 | |
| 176 | def test_include_dirs(self): |
| 177 | # As a sanity check, just test that get_include |