Commits

allisonrandal  committed 51832e7

Test element deletion by element count, rather than the 'in' keyword,
which seems to have a bug. Comment out the 'in' test for later fix.

  • Participants
  • Parent commits 84342e7

Comments (0)

Files changed (1)

File Lib/test/bootstrap/dicts.py

 
 print('test: delete element from dict')
 del a['bar']
-if 'bar' in a: print('failure: delete element from dict')
+if len(a) > 1: print('failure: delete element from dict')
 else: print('success: delete element from dict')
 
+#print('test: delete element from dict, in')
+#if 'bar' in a: print('failure: delete element from dict, in')
+#else: print('success: delete element from dict, in')
+
 print("test: integer as index")
 a = {1: 2}
 b = list(a.keys())