MCPcopy Index your code
hub / github.com/numpy/numpy / test_py3_compat

Method test_py3_compat

numpy/lib/tests/test_regression.py:218–231  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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()

Callers

nothing calls this directly

Calls 3

openFunction · 0.85
CClass · 0.70
closeMethod · 0.45

Tested by

no test coverage detected