def test_py3_compat(self):
# gh-2561
# Test if the oldstyle class test is bypassed in python3
class C():
"""Old-style class in python2, normal class in python3"""
pass
out = open(os.devnull, 'w')
try:
np.info(C(), output=out)
except AttributeError:
raise AssertionError()
finally:
out.close()
评论列表
文章目录