@@ -831,7 +831,7 @@ def check_pre_config(self, configs, expected):
831831 if value is self .IGNORE_CONFIG :
832832 pre_config .pop (key , None )
833833 del expected [key ]
834- self .assertEqual (pre_config , expected )
834+ self .assertDictEqual (pre_config , expected )
835835
836836 def check_config (self , configs , expected ):
837837 config = dict (configs ['config' ])
@@ -855,7 +855,7 @@ def check_global_config(self, configs):
855855 pre_config = configs ['pre_config' ]
856856 config = configs ['config' ]
857857
858- expected = dict ( self . DEFAULT_GLOBAL_CONFIG )
858+ expected = {}
859859 for item in self .COPY_GLOBAL_CONFIG :
860860 if len (item ) == 3 :
861861 global_key , core_key , opposite = item
@@ -943,19 +943,7 @@ def test_init_global_config(self):
943943 }
944944 config = {
945945 'program_name' : './globalvar' ,
946- 'site_import' : False ,
947- 'bytes_warning' : True ,
948- 'warnoptions' : ['default::BytesWarning' ],
949- 'inspect' : True ,
950946 'interactive' : True ,
951- 'optimization_level' : 2 ,
952- 'write_bytecode' : False ,
953- 'verbose' : True ,
954- 'quiet' : True ,
955- 'buffered_stdio' : False ,
956- 'remote_debug' : True ,
957- 'user_site_directory' : False ,
958- 'pathconfig_warnings' : False ,
959947 }
960948 self .check_all_configs ("test_init_global_config" , config , preconfig ,
961949 api = API_COMPAT )
0 commit comments