MCPcopy Create free account
hub / github.com/ipython/ipython / set_fp

Function set_fp

IPython/core/tests/test_formatters.py:96–97  ·  view source on GitHub ↗
(p)

Source from the content-addressed store, hash-verified

94 """test various invalid values for float_precision."""
95 f = PlainTextFormatter()
96 def set_fp(p):
97 f.float_precision=p
98 nt.assert_raises(ValueError, set_fp, '%')
99 nt.assert_raises(ValueError, set_fp, '%.3f%i')
100 nt.assert_raises(ValueError, set_fp, 'foo')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected