MCPcopy Create free account
hub / github.com/numpy/numpy / test_singleton

Method test_singleton

numpy/core/tests/test_getlimits.py:39–42  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

37
38class TestLongdouble:
39 def test_singleton(self):
40 ftype = finfo(longdouble)
41 ftype2 = finfo(longdouble)
42 assert_equal(id(ftype), id(ftype2))
43
44def assert_finfo_equal(f1, f2):
45 # assert two finfo instances have the same attributes

Callers

nothing calls this directly

Calls 2

finfoClass · 0.90
assert_equalFunction · 0.90

Tested by

no test coverage detected