def skiptest(reason):
    """
    Decorate a test that should be skipped with a reason.

    NOTE: Don't import this as `skip`, because that will cause trial to skip
          the entire module that imports it.
    """
    def skipdeco(func):
        func.skip = reason
        return func
    return skipdeco