boostorg / boostorg/python

Replace `boost_assert` by proper testing logic in the context of BPL tests.

Open
#260 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
537
Forks
223
Avg merge
11h 22m
Merged PRs (30d)
2

Description

Boost.Python uses calls to `boost_assert` in its testing infrastructure. That macro suffers the same problems as the standard `assert` macro: it may evaluate to a no-op if `NDEBUG` is defined.

We need to find an alternative (which doesn't have to be a macro at all !), and make the corresponding adjustments throughout the Boost.Python test base.

Contributor guide

No contributing guide indexed for this repository

Research direction

Inspect the Boost.Python test infrastructure and locate all uses of boost_assert. Check how the existing tests behave with NDEBUG defined, then determine the replacement's required behavior and update the affected test-base usages. Done means the tests still report failures reliably when assertions are enabled or disabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
testing-qa
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.