Skip to content

Commit 0741e4b

Browse files
authored
Merge pull request #321 from netromdk/py3.14.1
[3.14] Add more rules
2 parents d8450e2 + 6b7481d commit 0741e4b

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

tests/function.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4821,6 +4821,16 @@ def test_GetInputContext_from_xml_parsers_expat_xmlparser(self):
48214821
self.detect("from xml.parsers.expat import xmlparser\n"
48224822
"xmlparser().GetInputContext()"))
48234823

4824+
def test_SetAllocTrackerActivationThreshold_from_xml_parsers_expat_xmlparser(self):
4825+
self.assertOnlyIn((3, 14),
4826+
self.detect("from xml.parsers.expat import xmlparser\n"
4827+
"xmlparser().SetAllocTrackerActivationThreshold()"))
4828+
4829+
def test_SetAllocTrackerMaximumAmplification_from_xml_parsers_expat_xmlparser(self):
4830+
self.assertOnlyIn((3, 14),
4831+
self.detect("from xml.parsers.expat import xmlparser\n"
4832+
"xmlparser().SetAllocTrackerMaximumAmplification()"))
4833+
48244834
def test_UseForeignDTD_from_xml_parsers_expat_xmlparser(self):
48254835
self.assertOnlyIn(((2, 3), (3, 0)),
48264836
self.detect("from xml.parsers.expat import xmlparser\n"

vermin/rules.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1972,6 +1972,8 @@ def MOD_MEM_REQS(config):
19721972
"xml.etree.ElementTree.tostringlist": ((2, 7), (3, 2)),
19731973
"xml.parsers.expat.xmlparser.EntityDeclHandler": ((2, 1), (3, 0)),
19741974
"xml.parsers.expat.xmlparser.GetInputContext": ((2, 1), (3, 0)),
1975+
"xml.parsers.expat.xmlparser.SetAllocTrackerActivationThreshold": (None, (3, 14)),
1976+
"xml.parsers.expat.xmlparser.SetAllocTrackerMaximumAmplification": (None, (3, 14)),
19751977
"xml.parsers.expat.xmlparser.UseForeignDTD": ((2, 3), (3, 0)),
19761978
"xml.parsers.expat.xmlparser.XmlDeclHandler": ((2, 1), (3, 0)),
19771979
"xml.parsers.expat.xmlparser.buffer_size": ((2, 3), (3, 0)),

0 commit comments

Comments
 (0)