diff --git a/Lib/test/test_dict.py b/Lib/test/test_dict.py index e05e734ac66..e13829caec9 100644 --- a/Lib/test/test_dict.py +++ b/Lib/test/test_dict.py @@ -395,9 +395,22 @@ def __eq__(self, other): else: self.fail("< didn't raise Exc") +import mapping_tests + +class GeneralMappingTests(mapping_tests.BasicTestMappingProtocol): + type2test = dict + +class Dict(dict): + pass + +class SubclassMappingTests(mapping_tests.BasicTestMappingProtocol): + type2test = Dict + def test_main(): test_support.run_unittest( DictTest, + GeneralMappingTests, + SubclassMappingTests, ) if __name__ == "__main__":