Commits

Barry Warsaw committed 027782d Draft

Test case for PR#119

  • Participants
  • Parent commits 3f6d858

Comments (0)

Files changed (1)

File Lib/test/bugs/pr119.py

+d = {}
+l = [1]
+try:
+    d[l] = 2
+except TypeError:
+    pass
+else:
+    print 'Should not be able to use a list as a dict key!'
+
+a = {}
+try:
+    d[a] = 2
+except TypeError:
+    pass
+else:
+    print 'Should not be able to use a dict as a dict key!'