diff -r 096eae786285 Lib/test/test_enum.py --- a/Lib/test/test_enum.py Sun Oct 13 22:25:10 2013 +0200 +++ b/Lib/test/test_enum.py Sun Oct 13 21:36:53 2013 +0100 @@ -1141,6 +1141,8 @@ self.assertEqual(list(ColorInAList), [ColorInAList.red, ColorInAList.green, ColorInAList.blue]) self.assertEqual(ColorInAList.red.value, [1]) self.assertEqual(ColorInAList([1]), ColorInAList.red) + # Following test exercises the if-clause + self.assertEqual(ColorInAList([2]), ColorInAList.green) def test_conflicting_types_resolved_in_new(self): class LabelledIntEnum(int, Enum):