[issue45827] Unittest - commenting passing tests cause previous failing tests to pass

2021-11-16 Thread Guido van Rossum
Change by Guido van Rossum : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue45827] Unittest - commenting passing tests cause previous failing tests to pass

2021-11-16 Thread Steven D'Aprano
Steven D'Aprano added the comment: At a quick glance, I am 95% sure the problem lies in these two snippets of your code, not unittest: class My_Time: months = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] if is_leapyr(year): my_time.months[1] = 29 The first

[issue45827] Unittest - commenting passing tests cause previous failing tests to pass

2021-11-16 Thread Jamie Chaisson
New submission from Jamie Chaisson : Ubuntu Release 20.04.3 LTS (Focal Fossa) 64-bit Using unittest, testing with assertEqual on int values and known good output. Unittest produces one-off error on handful of edge-case tests causing assert to fail. Commenting out passing assertEquals tests to