@@ -2324,9 +2324,9 @@ def test_binary_op_subscr_dict_known_hash(self):
23242324 # str, int, bytes, tuple and any python object which has generic hash
23252325 def testfunc (n ):
23262326 x = 0
2327- d = {'a' : 1 , 1 : 2 , b'a ' : 3 , (1 , 2 ): 4 , _GENERIC_KEY : 5 }
2327+ d = {'a' : 1 , 1 : 2 , b'b ' : 3 , (1 , 2 ): 4 , _GENERIC_KEY : 5 }
23282328 for _ in range (n ):
2329- x += d ['a' ] + d [1 ] + d [b'a ' ] + d [(1 , 2 )] + d [_GENERIC_KEY ]
2329+ x += d ['a' ] + d [1 ] + d [b'b ' ] + d [(1 , 2 )] + d [_GENERIC_KEY ]
23302330 return x
23312331
23322332 res , ex = self ._run_with_optimizer (testfunc , TIER2_THRESHOLD )
@@ -2339,14 +2339,14 @@ def testfunc(n):
23392339 def test_store_subscr_dict_known_hash (self ):
23402340 # str, int, bytes, tuple and any python object which has generic hash
23412341 def testfunc (n ):
2342- d = {'a' : 0 , 1 : 0 , b'a ' : 0 , (1 , 2 ): 0 , _GENERIC_KEY : 0 }
2342+ d = {'a' : 0 , 1 : 0 , b'b ' : 0 , (1 , 2 ): 0 , _GENERIC_KEY : 0 }
23432343 for _ in range (n ):
23442344 d ['a' ] += 1
23452345 d [1 ] += 2
2346- d [b'a ' ] += 3
2346+ d [b'b ' ] += 3
23472347 d [(1 , 2 )] += 4
23482348 d [_GENERIC_KEY ] += 5
2349- return d ['a' ] + d [1 ] + d [b'a ' ] + d [(1 , 2 )] + d [_GENERIC_KEY ]
2349+ return d ['a' ] + d [1 ] + d [b'b ' ] + d [(1 , 2 )] + d [_GENERIC_KEY ]
23502350
23512351 res , ex = self ._run_with_optimizer (testfunc , TIER2_THRESHOLD )
23522352 self .assertEqual (res , 15 * TIER2_THRESHOLD )
0 commit comments