Skip to content

Commit 4a2d7ba

Browse files
timsaucerclaude
andcommitted
Make test_read_empty more robust with length and num_rows checks
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 246105d commit 4a2d7ba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

python/tests/test_context.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,9 @@ def test_read_arrow(ctx, tmp_path):
689689
def test_read_empty(ctx):
690690
df = ctx.read_empty()
691691
result = df.collect()
692+
assert len(result) == 1
692693
assert result[0].num_columns == 0
694+
assert result[0].num_rows == 0
693695

694696

695697
def test_register_arrow(ctx, tmp_path):

0 commit comments

Comments
 (0)