Skip to content

Lib/test/test_set.py doesn't test set.__rsub__ value is correct #102463

Open
@youknowone

Description

@youknowone

Bug report

In the test file Lib/test/test_set.py, the only path to trigger set.__rsub__ is TestOnlySetsInBinaryOps::test_difference.
But this test only tests __rsub__ raises TypeError when its value is invalid.
It doesn't test if the result of __rsub__ is actually valid or not.

Your environment

N/A

Metadata

Metadata

Labels

testsTests in the Lib/test dir

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions