Commits

Frank Wierzbicki  committed ab18611

Reverting test_list_jy.py since tags should almost never be updated.

  • Participants
  • Parent commits 4c97a8f
  • Branches default
  • Tags v2.5b0

Comments (0)

Files changed (1)

File Lib/test/test_list_jy.py

 
 class ListTest(unittest.TestCase):
         
-    def test_recursive_list_slices(self):
-        x = [1,2,3,4,5]
-        x[1:] = x
+        def test_recursive_list_slices(self):
+                x = [1,2,3,4,5]
+                x[1:] = x
 
-        self.assertEquals(x, [1, 1, 2, 3, 4, 5],
-            "Recursive assignment to list slices failed")
-
-    #From http://bugs.jython.org/issue600790
-    def test_setget_override(self):
-        from java.util import ArrayList
-        from java.lang import String
-
-        class GoofyListMapThing (ArrayList):
-
-            def __init__(self):
-                self.silly = "Nothing"
-
-            def __setitem__(self, key, element):
-                self.silly = "spam"
-
-            def __getitem__(self, key):
-                self.silly = "eggs"
-
-        glmt = GoofyListMapThing()
-        glmt['my-key'] = String('el1')
-        self.assertEquals(glmt.silly, "spam")
-        glmt['my-key']
-        self.assertEquals(glmt.silly, "eggs")
+                self.assertEquals(x, [1, 1, 2, 3, 4, 5],
+                        "Recursive assignment to list slices failed")
 
 def test_main():
-    test.test_support.run_unittest(ListTest)
+        test.test_support.run_unittest(ListTest)
 
 if __name__ == "__main__":
-    test_main()
+        test_main()