def expect_typeerror(f):
    try:
        f()
    except TypeError:
        pass
    else:
        raise AssertionError
def expect_typeerror(f):
    try:
        f()
    except TypeError:
        pass
    else:
        raise AssertionError