MCPcopy
hub / github.com/pandas-dev/pandas / test_str_escape_error

Function test_str_escape_error

pandas/tests/io/formats/style/test_format.py:412–420  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

410
411
412def test_str_escape_error():
413 msg = "`escape` only permitted in {'html', 'latex', 'latex-math'}, got "
414 with pytest.raises(ValueError, match=msg):
415 _str_escape("text", "bad_escape")
416
417 with pytest.raises(ValueError, match=msg):
418 _str_escape("text", [])
419
420 _str_escape(2.00, "bad_escape") # OK since dtype is float
421
422
423def test_long_int_formatting():

Callers

nothing calls this directly

Calls 2

_str_escapeFunction · 0.90
raisesMethod · 0.45

Tested by

no test coverage detected