We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cc543c commit 17ccccfCopy full SHA for 17ccccf
Lib/test/test_sys.py
@@ -785,6 +785,15 @@ def __hash__(self):
785
self.assertRaises(TypeError, sys.intern, S("abc"))
786
self.assertIs(_is_interned(S("abc")), False)
787
788
+ @support.cpython_only
789
+ def test_get_object_tags(self):
790
+ keys = ("immortal", "interned", "deferred_refcount")
791
+ s = "foobar"
792
+ tags = sys.get_object_tags(s)
793
+ self.assertEqual(len(tags), len(keys))
794
+ for k in keys:
795
+ self.assertIn(k, tags)
796
+
797
@support.cpython_only
798
@requires_subinterpreters
799
def test_subinterp_intern_dynamically_allocated(self):
0 commit comments