Skip to content

Commit f97248f

Browse files
committed
Fix formatting.
1 parent cc274da commit f97248f

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

tests/fast/udf/test_udf_refcount_leak.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
1-
import sys
21
import gc
32
import platform
4-
import duckdb
3+
import sys
4+
55
import pytest
66

7+
import duckdb
8+
79

8-
@pytest.mark.parametrize("rows, iters", [(1000, 20)])
10+
@pytest.mark.parametrize(("rows", "iters"), [(1000, 20)])
911
def test_python_scalar_udf_return_value_refcount_does_not_leak(rows, iters):
1012
if platform.python_implementation() != "CPython":
1113
pytest.skip("refcount-based test requires CPython")
1214

13-
payload = (b"processed_data_" + b"x" * 8192) # large-ish bytes to mimic the reported issue
15+
payload = b"processed_data_" + b"x" * 8192 # large-ish bytes to mimic the reported issue
1416

1517
def udf_bytes(_):
16-
return payload # Always return the exact same object so we can track its refcount.
18+
return payload # Always return the exact same object so we can track its refcount.
1719

1820
# Baseline refcount (note: getrefcount adds a temporary ref)
1921
baseline = sys.getrefcount(payload)

0 commit comments

Comments
 (0)