File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -914,6 +914,15 @@ def test_set_activation_threshold__fail_for_subparser(self):
914914 setter = functools .partial (self .set_activation_threshold , subparser )
915915 self .assert_root_parser_failure (setter , 12345 )
916916
917+ # NOTE: This is a workaround for issue
918+ # https://github.com/python/cpython/issues/139400
919+ # that can be dropped once pull request
920+ # https://github.com/python/cpython/pull/139403
921+ # has been merged.
922+ del setter
923+ del subparser
924+ del parser
925+
917926 @abc .abstractmethod
918927 def test_set_maximum_amplification__amplification_exceeded (self ):
919928 """Test when the amplification factor is exceeded."""
@@ -948,6 +957,15 @@ def test_set_maximum_amplification__fail_for_subparser(self):
948957 setter = functools .partial (self .set_maximum_amplification , subparser )
949958 self .assert_root_parser_failure (setter , 123.45 )
950959
960+ # NOTE: This is a workaround for issue
961+ # https://github.com/python/cpython/issues/139400
962+ # that can be dropped once pull request
963+ # https://github.com/python/cpython/pull/139403
964+ # has been merged.
965+ del setter
966+ del subparser
967+ del parser
968+
951969
952970@unittest .skipIf (expat .version_info < (2 , 7 , 2 ), "requires Expat >= 2.7.2" )
953971class MemoryProtectionTest (AttackProtectionTestBase , unittest .TestCase ):
You can’t perform that action at this time.
0 commit comments