Skip to content

Commit 7b019da

Browse files
committed
spelling: quadratic
Signed-off-by: Josh Soref <[email protected]>
1 parent 662c96e commit 7b019da

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

python/PoCs/XmlParsing/PoC.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def test_billion_laughs_allowed_by_default():
187187

188188
@staticmethod
189189
@expects_timeout
190-
def test_quardratic_blowup_allowed_by_default():
190+
def test_quadratic_blowup_allowed_by_default():
191191
parser = xml.sax.make_parser()
192192
parser.parse(StringIO(quadratic_blowup))
193193

@@ -263,7 +263,7 @@ def test_billion_laughs_allowed_by_default():
263263

264264
@staticmethod
265265
@expects_timeout
266-
def test_quardratic_blowup_allowed_by_default():
266+
def test_quadratic_blowup_allowed_by_default():
267267
parser = xml.etree.ElementTree.XMLParser()
268268
_root = xml.etree.ElementTree.fromstring(quadratic_blowup, parser=parser)
269269

@@ -324,7 +324,7 @@ def test_billion_laughs_disabled_by_default():
324324
assert "Detected an entity reference loop" in str(e)
325325

326326
@staticmethod
327-
def test_quardratic_blowup_disabled_by_default():
327+
def test_quadratic_blowup_disabled_by_default():
328328
parser = lxml.etree.XMLParser()
329329
try:
330330
_root = lxml.etree.fromstring(quadratic_blowup, parser=parser)
@@ -465,7 +465,7 @@ def test_billion_laughs_disabled_by_default():
465465
assert d == {"lolz": None}, d
466466

467467
@staticmethod
468-
def test_quardratic_blowup_disabled_by_default():
468+
def test_quadratic_blowup_disabled_by_default():
469469
d = xmltodict.parse(quadratic_blowup)
470470
assert d == {"foo": None}, d
471471

@@ -476,7 +476,7 @@ def test_billion_laughs_manually_enabled():
476476

477477
@staticmethod
478478
@expects_timeout
479-
def test_quardratic_blowup_manually_enabled():
479+
def test_quadratic_blowup_manually_enabled():
480480
xmltodict.parse(quadratic_blowup, disable_entities=False)
481481

482482
@staticmethod
@@ -524,7 +524,7 @@ def test_billion_laughs():
524524

525525
@staticmethod
526526
@expects_timeout
527-
def test_quardratic_blowup():
527+
def test_quadratic_blowup():
528528
xml.dom.minidom.parseString(quadratic_blowup)
529529

530530
@staticmethod
@@ -585,7 +585,7 @@ def test_billion_laughs():
585585

586586
@staticmethod
587587
@expects_timeout
588-
def test_quardratic_blowup():
588+
def test_quadratic_blowup():
589589
doc = xml.dom.pulldom.parseString(quadratic_blowup)
590590
for event, node in doc:
591591
pass
@@ -670,7 +670,7 @@ def test_billion_laughs():
670670

671671
@staticmethod
672672
@expects_timeout
673-
def test_quardratic_blowup():
673+
def test_quadratic_blowup():
674674
parser = xml.parsers.expat.ParserCreate()
675675
parser.Parse(quadratic_blowup, True)
676676

0 commit comments

Comments
 (0)