Message 285008 - Python tracker

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Content
I think it is worth to add special helper in test.support for using as a context manager:

    with helper():
        os.mkfifo(filename)

Then you could change its implementation without changing the testing code. For example:

    @contextmanager
    def helper():
        try:
            yield
        except PermissionError as e:
            raise unittest.SkipTest(str(e))

or

    @contextmanager
    def helper():
        if android_not_root:
            raise unittest.SkipTest("operation not allowed, non root user")
        yield