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

Method test_with_none

numpy/lib/tests/test_arraypad.py:70–79  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

68 )
69
70 def test_with_none(self):
71 expected = ((None, None), (None, None), (None, None))
72 assert_equal(
73 _as_pairs(None, 3, as_index=False),
74 expected
75 )
76 assert_equal(
77 _as_pairs(None, 3, as_index=True),
78 expected
79 )
80
81 def test_pass_through(self):
82 """Test if `x` already matching desired output are passed through."""

Callers

nothing calls this directly

Calls 2

assert_equalFunction · 0.90
_as_pairsFunction · 0.90

Tested by

no test coverage detected