示例#1
0
def test_tryimport_fail(mio):
    try:
        tryimport("foo", "foo")
    except Warning as w:
        assert w[0] == "foo"
示例#2
0
def test_tryimport(mio):
    m = tryimport("sys")
    assert m is sys