Skip to content

Commit 710f52d

Browse files
committed
Co-authored-by: ev-br <2133832+ev-br@users.noreply.github.com>
1 parent 900ab8e commit 710f52d

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

array_api_tests/test_special_cases.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1491,8 +1491,10 @@ def parse_binary_case_block(case_block: str, func_name: str, record_list: Option
14911491
assert len(iop_params) != 0
14921492

14931493

1494+
@pytest.fixture(scope="session", autouse=True)
14941495
def emit_special_case_records():
1495-
"""Emit all special case records for debugging/tracking purposes."""
1496+
"""Emit all special case records at the start of test session."""
1497+
# This runs once at the beginning of the test session
14961498
print("\n" + "="*80)
14971499
print("SPECIAL CASE RECORDS")
14981500
print("="*80)
@@ -1501,10 +1503,7 @@ def emit_special_case_records():
15011503
print("="*80)
15021504
print(f"Total special cases: {len(special_case_records)}")
15031505
print("="*80 + "\n")
1504-
1505-
1506-
# Emit special case records at module load time
1507-
emit_special_case_records()
1506+
yield # Tests run after this point
15081507

15091508

15101509
@pytest.mark.parametrize("func_name, func, case", unary_params)

0 commit comments

Comments
 (0)