Skip to content

Commit a6b0561

Browse files
committed
Drop workaround for 139400 as no-longer-needed
1 parent cd7ce12 commit a6b0561

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

Lib/test/test_pyexpat.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -950,15 +950,6 @@ def test_set_activation_threshold__fail_for_subparser(self):
950950
setter = functools.partial(self.set_activation_threshold, subparser)
951951
self.assert_root_parser_failure(setter, 12345)
952952

953-
# NOTE: This is a workaround for issue
954-
# https://github.com/python/cpython/issues/139400
955-
# that can be dropped once pull request
956-
# https://github.com/python/cpython/pull/139403
957-
# has been merged.
958-
del setter
959-
del subparser
960-
del parser
961-
962953
@abc.abstractmethod
963954
def test_set_maximum_amplification__amplification_exceeded(self):
964955
"""Test when the amplification factor is exceeded."""
@@ -993,15 +984,6 @@ def test_set_maximum_amplification__fail_for_subparser(self):
993984
setter = functools.partial(self.set_maximum_amplification, subparser)
994985
self.assert_root_parser_failure(setter, 123.45)
995986

996-
# NOTE: This is a workaround for issue
997-
# https://github.com/python/cpython/issues/139400
998-
# that can be dropped once pull request
999-
# https://github.com/python/cpython/pull/139403
1000-
# has been merged.
1001-
del setter
1002-
del subparser
1003-
del parser
1004-
1005987

1006988
@unittest.skipIf(expat.version_info < (2, 7, 2), "requires Expat >= 2.7.2")
1007989
class MemoryProtectionTest(AttackProtectionTestBase, unittest.TestCase):

0 commit comments

Comments
 (0)