diff options
| author | bwarsaw | 2007-04-17 21:37:49 +0000 |
|---|---|---|
| committer | bwarsaw | 2007-04-17 21:37:49 +0000 |
| commit | cca5c6b455aa894078573f45f3dd2c0901e0103e (patch) | |
| tree | b0e3c481fae7bb44c9c27c258735f8318cadb530 /Mailman/testing/test_enum.py | |
| parent | 69b250129cac1edc2aef339127bdd9446b8ee5e7 (diff) | |
| download | mailman-cca5c6b455aa894078573f45f3dd2c0901e0103e.tar.gz mailman-cca5c6b455aa894078573f45f3dd2c0901e0103e.tar.zst mailman-cca5c6b455aa894078573f45f3dd2c0901e0103e.zip | |
Diffstat (limited to 'Mailman/testing/test_enum.py')
| -rw-r--r-- | Mailman/testing/test_enum.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Mailman/testing/test_enum.py b/Mailman/testing/test_enum.py index de6877afc..a8c389bb4 100644 --- a/Mailman/testing/test_enum.py +++ b/Mailman/testing/test_enum.py @@ -93,9 +93,10 @@ class TestEnum(unittest.TestCase): eq(int(Colors.blue), 3) eq(int(MoreColors.red), 1) eq(int(OtherColors.blue), 2) - + def test_enum_duplicates(self): try: + # This is bad because kyle and kenny have the same integer value. class Bad(Enum): cartman = 1 stan = 2 |
