# Path: pytest_bdd/utils.py
# def collect_dumped_objects(result: RunResult) -> list:
#     """Parse all the objects dumped with `dump_object` from the result.
# 
#     Note: You must run the result with output to stdout enabled.
#     For example, using ``testdir.runpytest("-s")``.
#     """
#     stdout = result.stdout.str()  # pytest < 6.2, otherwise we could just do str(result.stdout)
#     payloads = re.findall(rf"{_DUMP_START}(.*?){_DUMP_END}", stdout)
#     return [pickle.loads(base64.b64decode(payload)) for payload in payloads]


import textwrap
from pytest_bdd.utils import collect_dumped_objects
            """\
            Feature: Outline
                Scenario Outline: Outlined with empty example values
                    Given there are <start> cucumbers
                    When I eat <eat> cucumbers
                    Then I should have <left> cucumbers

                    Examples:
                    | start | eat | left |
                    | #     |     |      |
            """
        ),
    )
    testdir.makeconftest(textwrap.dedent(STEPS))

    testdir.makepyfile(
        textwrap.dedent(
            """\
        from pytest_bdd.utils import dump_obj
        from pytest_bdd import scenario
        import json

        @scenario("outline.feature", "Outlined with empty example values")
        def test_outline():
            pass
        """
        )
    )
    result = testdir.runpytest("-s")
    result.assert_outcomes(passed=1)

# Path: pytest_bdd/utils.py
# def collect_dumped_objects(result: RunResult) -> list:
#     """Parse all the objects dumped with `dump_object` from the result.
# 
#     Note: You must run the result with output to stdout enabled.
#     For example, using ``testdir.runpytest("-s")``.
#     """
#     stdout = result.stdout.str()  # pytest < 6.2, otherwise we could just do str(result.stdout)
#     payloads = re.findall(rf"{_DUMP_START}(.*?){_DUMP_END}", stdout)
#     return [pickle.loads(base64.b64decode(payload)) for payload in payloads]


# Path: tests/feature/test_outline_empty_values.py
import textwrap
from pytest_bdd.utils import collect_dumped_objects

            """\
            Feature: Outline
                Scenario Outline: Outlined with empty example values
                    Given there are <start> cucumbers
                    When I eat <eat> cucumbers
                    Then I should have <left> cucumbers

                    Examples:
                    | start | eat | left |
                    | #     |     |      |
            """
        ),
    )
    testdir.makeconftest(textwrap.dedent(STEPS))

    testdir.makepyfile(
        textwrap.dedent(
            """\
        from pytest_bdd.utils import dump_obj
        from pytest_bdd import scenario
        import json

        @scenario("outline.feature", "Outlined with empty example values")
        def test_outline():
            pass
        """
        )
    )
    result = testdir.runpytest("-s")
    result.assert_outcomes(passed=1)

    assert collect_dumped_objects(result) == ["#", "", ""]