(self)
| 4888 | return name |
| 4889 | |
| 4890 | def test_auto_order_weird(self): |
| 4891 | weird_auto = auto() |
| 4892 | weird_auto.value = 'pathological case' |
| 4893 | class Color(Enum): |
| 4894 | red = weird_auto |
| 4895 | def _generate_next_value_(name, start, count, last): |
| 4896 | return name |
| 4897 | blue = auto() |
| 4898 | self.assertEqual(list(Color), [Color.red, Color.blue]) |
| 4899 | self.assertEqual(Color.red.value, 'pathological case') |
| 4900 | self.assertEqual(Color.blue.value, 'blue') |
| 4901 | |
| 4902 | @unittest.skipIf( |
| 4903 | python_version < (3, 13), |
nothing calls this directly
no test coverage detected