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

Method test_with_none

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

Source from the content-addressed store, hash-verified

69 )
70
71 def test_with_none(self):
72 expected = ((None, None), (None, None), (None, None))
73 assert_equal(
74 _as_pairs(None, 3, as_index=False),
75 expected
76 )
77 assert_equal(
78 _as_pairs(None, 3, as_index=True),
79 expected
80 )
81
82 def test_pass_through(self):
83 """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