()
| 520 | |
| 521 | |
| 522 | def test_import_token_from_module(): |
| 523 | from _pydevd_bundle.pydevd_utils import import_attr_from_module |
| 524 | |
| 525 | with pytest.raises(ImportError): |
| 526 | import_attr_from_module("sys") |
| 527 | |
| 528 | with pytest.raises(ImportError): |
| 529 | import_attr_from_module("sys.settrace.foo") |
| 530 | |
| 531 | assert import_attr_from_module("sys.settrace") == sys.settrace |
| 532 | assert import_attr_from_module("threading.Thread.start") == threading.Thread.start |
nothing calls this directly
no test coverage detected