sixty-north / cosmic-ray

Mutation testing for Python
MIT License
556 stars 54 forks source link

Make except statment lists work with just one item #531

Closed ThunderKey closed 1 year ago

ThunderKey commented 1 year ago

Without this patch "except (OSError):" leads to an AttributeError. This patch handles this specific example where test_list is an instance of Name.

The tests that already fail (probably since e02b8ec484f00757271e41ac1112a1a599559cb2) still fail, but the added test succeeds.

abingham commented 1 year ago

Thanks!