[New-bugs-announce] [issue46388] Improve test coverage of functools.total_ordering

Russel Webber report at bugs.python.org
Sat Jan 15 05:55:47 EST 2022

New submission from Russel Webber <russel at computer.org>:

A few lines of the functools.total_ordering implementation are not covered by the tests.

Specifically, coverage.py shows the returns of NotImplemented:
    if op_result is NotImplemented:
        return op_result 

as not covered in the functions: _gt_from_lt, _ge_from_le, _lt_from_le, _lt_from_gt, _le_from_ge and _gt_from_ge

I have a PR for this.

components: Tests
messages: 410639
nosy: RusselWebber, rhettinger
priority: normal
severity: normal
status: open
title: Improve test coverage of functools.total_ordering
type: enhancement
versions: Python 3.11

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list