summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_gc.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-10-15 22:49:27 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-10-15 22:49:27 (GMT)
commit1ce150c675c946b5f626ca6bce2cb7eaba94d019 (patch)
tree6b8b82770c902b474db2ace9e17a8bfdac58701b /Lib/test/test_gc.py
parent47cada7ab8b82c52f3eaa96b16594d5bf185e1d4 (diff)
downloadcpython-1ce150c675c946b5f626ca6bce2cb7eaba94d019.zip
cpython-1ce150c675c946b5f626ca6bce2cb7eaba94d019.tar.gz
cpython-1ce150c675c946b5f626ca6bce2cb7eaba94d019.tar.bz2
Remove obsolete __static__/__dynamic__ distinction.
Diffstat (limited to 'Lib/test/test_gc.py')
-rw-r--r--Lib/test/test_gc.py14
1 files changed, 3 insertions, 11 deletions
diff --git a/Lib/test/test_gc.py b/Lib/test/test_gc.py
index 4d12e53..d4fcf7b 100644
--- a/Lib/test/test_gc.py
+++ b/Lib/test/test_gc.py
@@ -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)