@@ -764,7 +764,7 @@ class _FlagTests:
764
764
def test_default_missing_with_wrong_type_value (self ):
765
765
with self .assertRaisesRegex (
766
766
ValueError ,
767
- "'RED' is not a valid TestFlag.Color " ,
767
+ "'RED' is not a valid " ,
768
768
) as ctx :
769
769
self .MainEnum ('RED' )
770
770
self .assertIs (ctx .exception .__context__ , None )
@@ -773,7 +773,7 @@ class TestPlainEnum(_EnumTests, _PlainOutputTests, unittest.TestCase):
773
773
enum_type = Enum
774
774
775
775
776
- class TestPlainFlag (_EnumTests , _PlainOutputTests , unittest .TestCase ):
776
+ class TestPlainFlag (_EnumTests , _PlainOutputTests , _FlagTests , unittest .TestCase ):
777
777
enum_type = Flag
778
778
779
779
@@ -785,7 +785,7 @@ class TestStrEnum(_EnumTests, _MinimalOutputTests, unittest.TestCase):
785
785
enum_type = StrEnum
786
786
787
787
788
- class TestIntFlag (_EnumTests , _MinimalOutputTests , unittest .TestCase ):
788
+ class TestIntFlag (_EnumTests , _MinimalOutputTests , _FlagTests , unittest .TestCase ):
789
789
enum_type = IntFlag
790
790
791
791
@@ -797,7 +797,7 @@ class TestMixedStr(_EnumTests, _MixedOutputTests, unittest.TestCase):
797
797
class enum_type (str , Enum ): pass
798
798
799
799
800
- class TestMixedIntFlag (_EnumTests , _MixedOutputTests , unittest .TestCase ):
800
+ class TestMixedIntFlag (_EnumTests , _MixedOutputTests , _FlagTests , unittest .TestCase ):
801
801
class enum_type (int , Flag ): pass
802
802
803
803
0 commit comments