summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_enum.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_enum.py')
-rw-r--r--Lib/test/test_enum.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/Lib/test/test_enum.py b/Lib/test/test_enum.py
index fcfa7d9..7bccd66 100644
--- a/Lib/test/test_enum.py
+++ b/Lib/test/test_enum.py
@@ -2260,12 +2260,13 @@ class TestFlag(unittest.TestCase):
d = 4
f = 6
# Bizarre.c | Bizarre.d
- self.assertRaisesRegex(ValueError, "5 is not a valid Bizarre", Bizarre, 5)
- self.assertRaisesRegex(ValueError, "5 is not a valid Bizarre", Bizarre, 5)
- self.assertRaisesRegex(ValueError, "2 is not a valid Bizarre", Bizarre, 2)
- self.assertRaisesRegex(ValueError, "2 is not a valid Bizarre", Bizarre, 2)
- self.assertRaisesRegex(ValueError, "1 is not a valid Bizarre", Bizarre, 1)
- self.assertRaisesRegex(ValueError, "1 is not a valid Bizarre", Bizarre, 1)
+ name = "TestFlag.test_cascading_failure.<locals>.Bizarre"
+ self.assertRaisesRegex(ValueError, "5 is not a valid " + name, Bizarre, 5)
+ self.assertRaisesRegex(ValueError, "5 is not a valid " + name, Bizarre, 5)
+ self.assertRaisesRegex(ValueError, "2 is not a valid " + name, Bizarre, 2)
+ self.assertRaisesRegex(ValueError, "2 is not a valid " + name, Bizarre, 2)
+ self.assertRaisesRegex(ValueError, "1 is not a valid " + name, Bizarre, 1)
+ self.assertRaisesRegex(ValueError, "1 is not a valid " + name, Bizarre, 1)
def test_duplicate_auto(self):
class Dupes(Enum):