selftests/functional/job_timeout.py
Using xml.dom.minidom.parse to parse untrusted XML data is known to be vulnerable to XML attacks. Replace xml.dom.minidom.parse with its defusedxml equivalent function or make sure defusedxml.defuse_stdlib() is called Open
Open
xunit_doc = xml.dom.minidom.parse(xml_output)
- Exclude checks
Using xml.dom.minidom to parse untrusted XML data is known to be vulnerable to XML attacks. Replace xml.dom.minidom with the equivalent defusedxml package, or make sure defusedxml.defuse_stdlib() is called. Open
Open
import xml.dom.minidom
- Exclude checks
File job_timeout.py
has 260 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import glob
import os
import tempfile
import unittest
import xml.dom.minidom