From 05f550126ad8e99f379954a4a64f0c226790c00c Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Tue, 25 Feb 2020 00:07:33 +0100 Subject: [PATCH] Remove broken test_510/issue_519 Output is not being looked at, and it changed/broke recently apparently. Ref: https://github.com/pytest-dev/pytest/pull/6813 --- testing/example_scripts/issue_519.py | 51 ---------------------------- testing/examples/test_issue519.py | 3 -- 2 files changed, 54 deletions(-) delete mode 100644 testing/example_scripts/issue_519.py delete mode 100644 testing/examples/test_issue519.py diff --git a/testing/example_scripts/issue_519.py b/testing/example_scripts/issue_519.py deleted file mode 100644 index 7199df820fb..00000000000 --- a/testing/example_scripts/issue_519.py +++ /dev/null @@ -1,51 +0,0 @@ -import pprint - -import pytest - - -def pytest_generate_tests(metafunc): - if "arg1" in metafunc.fixturenames: - metafunc.parametrize("arg1", ["arg1v1", "arg1v2"], scope="module") - - if "arg2" in metafunc.fixturenames: - metafunc.parametrize("arg2", ["arg2v1", "arg2v2"], scope="function") - - -@pytest.fixture(scope="session") -def checked_order(): - order = [] - - yield order - pprint.pprint(order) - assert order == [ - ("testing/example_scripts/issue_519.py", "fix1", "arg1v1"), - ("test_one[arg1v1-arg2v1]", "fix2", "arg2v1"), - ("test_two[arg1v1-arg2v1]", "fix2", "arg2v1"), - ("test_one[arg1v1-arg2v2]", "fix2", "arg2v2"), - ("test_two[arg1v1-arg2v2]", "fix2", "arg2v2"), - ("testing/example_scripts/issue_519.py", "fix1", "arg1v2"), - ("test_one[arg1v2-arg2v1]", "fix2", "arg2v1"), - ("test_two[arg1v2-arg2v1]", "fix2", "arg2v1"), - ("test_one[arg1v2-arg2v2]", "fix2", "arg2v2"), - ("test_two[arg1v2-arg2v2]", "fix2", "arg2v2"), - ] - - -@pytest.yield_fixture(scope="module") -def fix1(request, arg1, checked_order): - checked_order.append((request.node.name, "fix1", arg1)) - yield "fix1-" + arg1 - - -@pytest.yield_fixture(scope="function") -def fix2(request, fix1, arg2, checked_order): - checked_order.append((request.node.name, "fix2", arg2)) - yield "fix2-" + arg2 + fix1 - - -def test_one(fix2): - pass - - -def test_two(fix2): - pass diff --git a/testing/examples/test_issue519.py b/testing/examples/test_issue519.py deleted file mode 100644 index e83f18fdc93..00000000000 --- a/testing/examples/test_issue519.py +++ /dev/null @@ -1,3 +0,0 @@ -def test_510(testdir): - testdir.copy_example("issue_519.py") - testdir.runpytest("issue_519.py")