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

Function test_broadcast_kwargs

numpy/lib/tests/test_stride_tricks.py:62–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60 assert_array_equal(y, by)
61
62def test_broadcast_kwargs():
63 # ensure that a TypeError is appropriately raised when
64 # np.broadcast_arrays() is called with any keyword
65 # argument other than 'subok'
66 x = np.arange(10)
67 y = np.arange(10)
68
69 with assert_raises_regex(TypeError, 'got an unexpected keyword'):
70 broadcast_arrays(x, y, dtype='float64')
71
72
73def test_one_off():

Callers

nothing calls this directly

Calls 2

assert_raises_regexFunction · 0.90
broadcast_arraysFunction · 0.90

Tested by

no test coverage detected