test: Update test_fs to not use deprecated pytest.yield_fixture()
PATCH 1/1 test: Update test_fs to not use deprecated pytest.yield_fixture()
As noted in comments, yield_fixture has been deprecated for longer than our minimum required version of pytest. Newer versions of pytest cause this to be a louder warning, and as the migration is trivial, perform it now.
Signed-off-by Tom Rini <[email protected]>
--- test/py/tests/test_fs/conftest.py | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-)
test/py/tests/test_fs/conftest.py +5 -10
@@ -243,8 +243,7 @@ def umount_fs(mount_point): # Fixture for basic fs test # derived from test/fs/fs-test.sh # -# NOTE: yield_fixture was deprecated since pytest-3.0 - at pytest.yield_fixture() + at pytest.fixture() def fs_obj_basic(request, u_boot_config): """Set up a file system to be used in basic fs test.
@@ -352,8 +351,7 @@ def fs_obj_basic(request, u_boot_config): # # Fixture for extended fs test # -# NOTE: yield_fixture was deprecated since pytest-3.0 - at pytest.yield_fixture() + at pytest.fixture() def fs_obj_ext(request, u_boot_config): """Set up a file system to be used in extended fs test.
@@ -439,8 +437,7 @@ def fs_obj_ext(request, u_boot_config): # # Fixture for mkdir test # -# NOTE: yield_fixture was deprecated since pytest-3.0 - at pytest.yield_fixture() + at pytest.fixture() def fs_obj_mkdir(request, u_boot_config): """Set up a file system to be used in mkdir test.
@@ -472,8 +469,7 @@ def fs_obj_mkdir(request, u_boot_config): # # Fixture for unlink test # -# NOTE: yield_fixture was deprecated since pytest-3.0 - at pytest.yield_fixture() + at pytest.fixture() def fs_obj_unlink(request, u_boot_config): """Set up a file system to be used in unlink test.
@@ -538,8 +534,7 @@ def fs_obj_unlink(request, u_boot_config): # # Fixture for symlink fs test # -# NOTE: yield_fixture was deprecated since pytest-3.0 - at pytest.yield_fixture() + at pytest.fixture() def fs_obj_symlink(request, u_boot_config): """Set up a file system to be used in symlink fs test.
Signature · 1 line
2.17.1
PATCH 1/1 test: Update test_fs to not use deprecated pytest.yield_fixture()
Quoted 6 lines · Tom Rini
As noted in comments,
yield_fixturehas been deprecated for longer than our minimum required version of pytest. Newer versions of pytest cause this to be a louder warning, and as the migration is trivial, perform it now.Signed-off-by Tom Rini <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210130/e096b48e/attachment.sig>