summaryrefslogtreecommitdiff
path: root/Lib/test
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_enum.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_enum.py b/Lib/test/test_enum.py
index 2a589f5a3b..018e3fdab7 100644
--- a/Lib/test/test_enum.py
+++ b/Lib/test/test_enum.py
@@ -152,6 +152,11 @@ class TestEnum(unittest.TestCase):
with self.assertRaises(AttributeError):
Season.SPRING.value = 2
+ def test_changing_member(self):
+ Season = self.Season
+ with self.assertRaises(AttributeError):
+ Season.WINTER = 'really cold'
+
def test_invalid_names(self):
with self.assertRaises(ValueError):
class Wrong(Enum):