import textwrap


def failing_test_case(built_from: str) -> str:
    """Return string containing a test. Test fails, prints message to stdout."""
    source = '''\


    def test_unable_to_collect_doctests():
        """Explain pytest-phmdoctest fails to process doctests."""
        error_message = """
    While building a collector for Python interactive sessions
    in the test file built from {} an error
    occured.  A DoctestModule.from_parent() call from
    pytest_phmdoctest.collectors.make_doctest_module() raised
    an exception.
    This may be due to using a version of pytest that
    has incompatible changes to this class.
    Here are some work-around ideas:
    - Try using --phmdoctest-generate option.
    - Make sure pytest >= 5.4.3.
    - Try using an older version of pytest like 6.2.x or 7.x.
    - Try using the separate PYPI package phmdoctest.
    - Add phmdoctest skip directives to the Markdown file on
      the Python interactive session fenced code blocks.
    - Add a glob and command line arguments to the phmdoctest-collect
      section in the ini file to skip the Python interactive session
      fenced code blocks.
    """
        print(error_message)
        assert False, "pytest-phmdoctest can't do doctests."
    '''
    source1 = source.format(built_from)
    return textwrap.dedent(source1)