(self)
| 232 | raise AssertionError() |
| 233 | |
| 234 | def test_py3_compat(self): |
| 235 | # gh-2561 |
| 236 | # Test if the oldstyle class test is bypassed in python3 |
| 237 | class C(): |
| 238 | """Old-style class in python2, normal class in python3""" |
| 239 | pass |
| 240 | |
| 241 | out = open(os.devnull, 'w') |
| 242 | try: |
| 243 | np.info(C(), output=out) |
| 244 | except AttributeError: |
| 245 | raise AssertionError() |
| 246 | finally: |
| 247 | out.close() |