summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_gc.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_gc.py b/Lib/test/test_gc.py
index 914efec..904fc7d 100644
--- a/Lib/test/test_gc.py
+++ b/Lib/test/test_gc.py
@@ -734,6 +734,12 @@ class GCTests(unittest.TestCase):
self.assertEqual(new[1]["collections"], old[1]["collections"])
self.assertEqual(new[2]["collections"], old[2]["collections"] + 1)
+ def test_freeze(self):
+ gc.freeze()
+ self.assertGreater(gc.get_freeze_count(), 0)
+ gc.unfreeze()
+ self.assertEqual(gc.get_freeze_count(), 0)
+
class GCCallbackTests(unittest.TestCase):
def setUp(self):