Test that display is available without import We don't really care if it's in builtin or anything else, but it should always be available.
()
| 274 | |
| 275 | |
| 276 | def test_display_available(): |
| 277 | """ |
| 278 | Test that display is available without import |
| 279 | |
| 280 | We don't really care if it's in builtin or anything else, but it should |
| 281 | always be available. |
| 282 | """ |
| 283 | ip = get_ipython() |
| 284 | with AssertNotPrints("NameError"): |
| 285 | ip.run_cell("display") |
| 286 | try: |
| 287 | ip.run_cell("del display") |
| 288 | except NameError: |
| 289 | pass # it's ok, it might be in builtins |
| 290 | # even if deleted it should be back |
| 291 | with AssertNotPrints("NameError"): |
| 292 | ip.run_cell("display") |
| 293 | |
| 294 | |
| 295 | def test_textdisplayobj_pretty_repr(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…