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

Method test_keywords_no_func_code

numpy/lib/tests/test_function_base.py:1476–1484  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1474 assert_equal(r2, _foo2(1, 2, 3))
1475
1476 def test_keywords_no_func_code(self):
1477 # This needs to test a function that has keywords but
1478 # no func_code attribute, since otherwise vectorize will
1479 # inspect the func_code.
1480 import random
1481 try:
1482 vectorize(random.randrange) # Should succeed
1483 except Exception:
1484 raise AssertionError()
1485
1486 def test_keywords2_ticket_2100(self):
1487 # Test kwarg support: enhancement ticket 2100

Callers

nothing calls this directly

Calls 1

vectorizeClass · 0.90

Tested by

no test coverage detected