def onlyOnPOSIX(testMethod):
    """
    Only run this test on POSIX platforms.

    @param testMethod: A test function, being decorated.

    @return: the C{testMethod} argument.
    """
    if resource is None:
        testMethod.skip = "Test only applies to POSIX platforms."
    return testMethod

    Only run this test on POSIX platforms.

    @param testMethod: A test function, being decorated.

    @return: the C{testMethod} argument.
    
stackoverflow/venv/lib/python3.6/site-packages/twisted/internet/test/test_process.py