@@ -777,7 +777,7 @@ class _FlagTests:
777
777
def test_default_missing_with_wrong_type_value (self ):
778
778
with self .assertRaisesRegex (
779
779
ValueError ,
780
- "'RED' is not a valid TestFlag.Color " ,
780
+ "'RED' is not a valid " ,
781
781
) as ctx :
782
782
self .MainEnum ('RED' )
783
783
self .assertIs (ctx .exception .__context__ , None )
@@ -786,7 +786,7 @@ class TestPlainEnum(_EnumTests, _PlainOutputTests, unittest.TestCase):
786
786
enum_type = Enum
787
787
788
788
789
- class TestPlainFlag (_EnumTests , _PlainOutputTests , unittest .TestCase ):
789
+ class TestPlainFlag (_EnumTests , _PlainOutputTests , _FlagTests , unittest .TestCase ):
790
790
enum_type = Flag
791
791
792
792
@@ -798,7 +798,7 @@ class TestStrEnum(_EnumTests, _MinimalOutputTests, unittest.TestCase):
798
798
enum_type = StrEnum
799
799
800
800
801
- class TestIntFlag (_EnumTests , _MinimalOutputTests , unittest .TestCase ):
801
+ class TestIntFlag (_EnumTests , _MinimalOutputTests , _FlagTests , unittest .TestCase ):
802
802
enum_type = IntFlag
803
803
804
804
@@ -810,7 +810,7 @@ class TestMixedStr(_EnumTests, _MixedOutputTests, unittest.TestCase):
810
810
class enum_type (str , Enum ): pass
811
811
812
812
813
- class TestMixedIntFlag (_EnumTests , _MixedOutputTests , unittest .TestCase ):
813
+ class TestMixedIntFlag (_EnumTests , _MixedOutputTests , _FlagTests , unittest .TestCase ):
814
814
class enum_type (int , Flag ): pass
815
815
816
816
0 commit comments