You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by jo...@apache.org on 2021/08/30 07:36:50 UTC
[arrow] branch master updated: ARROW-13686: [Python] Update
deprecated pytest yield_fixture functions
This is an automated email from the ASF dual-hosted git repository.
jorisvandenbossche pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/master by this push:
new f393da3 ARROW-13686: [Python] Update deprecated pytest yield_fixture functions
f393da3 is described below
commit f393da3b74e9f396f571a69bdd8c069a148dc48e
Author: Eduardo Ponce <ed...@gmail.com>
AuthorDate: Mon Aug 30 09:35:28 2021 +0200
ARROW-13686: [Python] Update deprecated pytest yield_fixture functions
Replace 'pytest.yield_fixture' with 'pytest.fixture' as the former is marked as deprecated by pytest.
Closes #11010 from edponce/ARROW-13686-Update-deprecated-pytest-yield-fixture-f
Authored-by: Eduardo Ponce <ed...@gmail.com>
Signed-off-by: Joris Van den Bossche <jo...@gmail.com>
---
python/pyarrow/tests/test_serialization.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/python/pyarrow/tests/test_serialization.py b/python/pyarrow/tests/test_serialization.py
index a93f716..750827a 100644
--- a/python/pyarrow/tests/test_serialization.py
+++ b/python/pyarrow/tests/test_serialization.py
@@ -280,9 +280,9 @@ def _check_component_roundtrip(value, context=global_serialization_context):
assert_equal(value, recons)
-@pytest.yield_fixture(scope='session')
+@pytest.fixture(scope='session')
def large_buffer(size=32*1024*1024):
- return pa.allocate_buffer(size)
+ yield pa.allocate_buffer(size)
def large_memory_map(tmpdir_factory, size=100*1024*1024):