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 <[email protected]>
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 <[email protected]>
Signed-off-by: Joris Van den Bossche <[email protected]>
---
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)
[email protected]_fixture(scope='session')
[email protected](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):