Skip to content

Commit 12b8989

Browse files
committed
Drop test test_cycle
1 parent c056cfe commit 12b8989

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

Lib/test/test_pyexpat.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -807,22 +807,6 @@ def test_parent_parser_outlives_its_subparsers__chain(self):
807807
del parser
808808
del subparser
809809

810-
def test_cycle(self):
811-
parser = expat.ParserCreate()
812-
subparser = parser.ExternalEntityParserCreate(None)
813-
814-
# This hacks a cycle onto it; note that parsing now would not work.
815-
parser.CharacterDataHandler = subparser
816-
817-
# This self-tests that the cycle is real.
818-
self.assertIn(parser, gc.get_referents(subparser))
819-
self.assertIn(subparser, gc.get_referents(parser))
820-
821-
# Now try to cause garbage collection of the parent parsers
822-
# while they are still being referenced by a related subparser.
823-
del parser
824-
del subparser
825-
826810

827811
class ReparseDeferralTest(unittest.TestCase):
828812
def test_getter_setter_round_trip(self):

0 commit comments

Comments
 (0)