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

Function test_nul_character_error

numpy/lib/tests/test_loadtxt.py:729–735  ·  view source on GitHub ↗
(dtype)

Source from the content-addressed store, hash-verified

727@pytest.mark.parametrize("dtype",
728 np.typecodes["AllInteger"] + "efgdFDG" + "?")
729def test_nul_character_error(dtype):
730 # Test that a \0 character is correctly recognized as an error even if
731 # what comes before is valid (not everything gets parsed internally).
732 if dtype.lower() == "g":
733 pytest.xfail("longdouble/clongdouble assignment may misbehave.")
734 with pytest.raises(ValueError):
735 np.loadtxt(["1\000"], dtype=dtype, delimiter=",", quotechar='"')
736
737
738@pytest.mark.parametrize("dtype",

Callers

nothing calls this directly

Calls 1

lowerMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…