]> granicus.if.org Git - python/commitdiff
Remove obsolete __static__/__dynamic__ distinction.
authorTim Peters <tim.peters@gmail.com>
Mon, 15 Oct 2001 22:49:27 +0000 (22:49 +0000)
committerTim Peters <tim.peters@gmail.com>
Mon, 15 Oct 2001 22:49:27 +0000 (22:49 +0000)
Lib/test/test_gc.py

index 4d12e533fbcbe60536501f2c1ca0479c39ab72fb..d4fcf7b223a925d80000923f197f1f9ef81507ee 100644 (file)
@@ -50,20 +50,13 @@ def test_class():
     del A
     expect_nonzero(gc.collect(), "class")
 
-def test_staticclass():
+def test_newstyleclass():
     class A(object):
-        __dynamic__ = 0
+        pass
     gc.collect()
     del A
     expect_nonzero(gc.collect(), "staticclass")
 
-def test_dynamicclass():
-    class A(object):
-        __dynamic__ = 1
-    gc.collect()
-    del A
-    expect_nonzero(gc.collect(), "dynamicclass")
-
 def test_instance():
     class A:
         pass
@@ -185,8 +178,7 @@ def test_all():
     run_test("dicts", test_dict)
     run_test("tuples", test_tuple)
     run_test("classes", test_class)
-    run_test("static classes", test_staticclass)
-    run_test("dynamic classes", test_dynamicclass)
+    run_test("new style classes", test_newstyleclass)
     run_test("instances", test_instance)
     run_test("new instances", test_newinstance)
     run_test("methods", test_method)