| 3259 | def test_value_backup_assign(self): |
| 3260 | # check that enum will add missing values when custom __new__ does not |
| 3261 | class Some(Enum): |
| 3262 | def __new__(cls, val): |
| 3263 | return object.__new__(cls) |
| 3264 | x = 1 |
| 3265 | y = 2 |
| 3266 | self.assertEqual(Some.x.value, 1) |
| 3267 | self.assertEqual(Some.y.value, 2) |
| 3268 |
no outgoing calls