()
| 311 | |
| 312 | |
| 313 | def test_nowarn_notimplemented(): |
| 314 | f = HTMLFormatter() |
| 315 | |
| 316 | class HTMLNotImplemented(object): |
| 317 | def _repr_html_(self): |
| 318 | raise NotImplementedError |
| 319 | |
| 320 | h = HTMLNotImplemented() |
| 321 | with capture_output() as captured: |
| 322 | result = f(h) |
| 323 | assert result is None |
| 324 | assert "" == captured.stderr |
| 325 | assert "" == captured.stdout |
| 326 | |
| 327 | |
| 328 | def test_warn_error_for_type(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…