New submission from Russel Webber <rus...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue46388>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to