summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_gc.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2003-04-08 17:17:17 (GMT)
committerTim Peters <tim.peters@gmail.com>2003-04-08 17:17:17 (GMT)
commit730f5535ba8abf62ed580dcd605ec9a5de85d71b (patch)
tree7dd7f24b813d6999c9747415c3d25bdcf0d391ab /Lib/test/test_gc.py
parent0f81ab6d8895fb6a0b09d517b872a7816060914d (diff)
downloadcpython-730f5535ba8abf62ed580dcd605ec9a5de85d71b.zip
cpython-730f5535ba8abf62ed580dcd605ec9a5de85d71b.tar.gz
cpython-730f5535ba8abf62ed580dcd605ec9a5de85d71b.tar.bz2
s/referrents/referents/g. Gotta love that referrers remains rife with rs.
Diffstat (limited to 'Lib/test/test_gc.py')
-rw-r--r--Lib/test/test_gc.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/Lib/test/test_gc.py b/Lib/test/test_gc.py
index f0d5e19..0f99ef8 100644
--- a/Lib/test/test_gc.py
+++ b/Lib/test/test_gc.py
@@ -304,28 +304,28 @@ def test_boom2():
expect(gc.collect(), 4, "boom2")
expect(len(gc.garbage), garbagelen, "boom2")
-def test_get_referrents():
+def test_get_referents():
alist = [1, 3, 5]
- got = gc.get_referrents(alist)
+ got = gc.get_referents(alist)
got.sort()
- expect(got, alist, "get_referrents")
+ expect(got, alist, "get_referents")
atuple = tuple(alist)
- got = gc.get_referrents(atuple)
+ got = gc.get_referents(atuple)
got.sort()
- expect(got, alist, "get_referrents")
+ expect(got, alist, "get_referents")
adict = {1: 3, 5: 7}
expected = [1, 3, 5, 7]
- got = gc.get_referrents(adict)
+ got = gc.get_referents(adict)
got.sort()
- expect(got, expected, "get_referrents")
+ expect(got, expected, "get_referents")
- got = gc.get_referrents([1, 2], {3: 4}, (0, 0, 0))
+ got = gc.get_referents([1, 2], {3: 4}, (0, 0, 0))
got.sort()
- expect(got, [0, 0] + range(5), "get_referrents")
+ expect(got, [0, 0] + range(5), "get_referents")
- expect(gc.get_referrents(1, 'a', 4j), [], "get_referrents")
+ expect(gc.get_referents(1, 'a', 4j), [], "get_referents")
def test_all():
gc.collect() # Delete 2nd generation garbage
@@ -347,7 +347,7 @@ def test_all():
run_test("trashcan", test_trashcan)
run_test("boom", test_boom)
run_test("boom2", test_boom2)
- run_test("get_referrents", test_get_referrents)
+ run_test("get_referents", test_get_referents)
def test():
if verbose: