summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_gc.py
diff options
context:
space:
mode:
authorBrandt Bucher <brandtbucher@gmail.com>2020-10-15 01:44:07 (GMT)
committerGitHub <noreply@github.com>2020-10-15 01:44:07 (GMT)
commitc13b847a6f913b72eeb71651ff626390b738d973 (patch)
treeb5cc26798d51fd3a93fd8cea1c5177fba49ddd94 /Lib/test/test_gc.py
parent302b6166fbb15c51f58b040c62e987d486742189 (diff)
downloadcpython-c13b847a6f913b72eeb71651ff626390b738d973.zip
cpython-c13b847a6f913b72eeb71651ff626390b738d973.tar.gz
cpython-c13b847a6f913b72eeb71651ff626390b738d973.tar.bz2
bpo-41984: GC track all user classes (GH-22701)
Diffstat (limited to 'Lib/test/test_gc.py')
-rw-r--r--Lib/test/test_gc.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_gc.py b/Lib/test/test_gc.py
index 1b096ef..ba66737 100644
--- a/Lib/test/test_gc.py
+++ b/Lib/test/test_gc.py
@@ -582,9 +582,9 @@ class GCTests(unittest.TestCase):
self.assertTrue(gc.is_tracked(UserInt()))
self.assertTrue(gc.is_tracked([]))
self.assertTrue(gc.is_tracked(set()))
- self.assertFalse(gc.is_tracked(UserClassSlots()))
- self.assertFalse(gc.is_tracked(UserFloatSlots()))
- self.assertFalse(gc.is_tracked(UserIntSlots()))
+ self.assertTrue(gc.is_tracked(UserClassSlots()))
+ self.assertTrue(gc.is_tracked(UserFloatSlots()))
+ self.assertTrue(gc.is_tracked(UserIntSlots()))
def test_is_finalized(self):
# Objects not tracked by the always gc return false