(self)
| 216 | raise AssertionError |
| 217 | |
| 218 | def test_py3_compat(self): |
| 219 | # gh-2561 |
| 220 | # Test if the oldstyle class test is bypassed in python3 |
| 221 | class C: |
| 222 | """Old-style class in python2, normal class in python3""" |
| 223 | pass |
| 224 | |
| 225 | out = open(os.devnull, 'w') |
| 226 | try: |
| 227 | np.info(C(), output=out) |
| 228 | except AttributeError: |
| 229 | raise AssertionError |
| 230 | finally: |
| 231 | out.close() |