selftests/functional/basic.py
Using xml.dom.minidom.parseString to parse untrusted XML data is known to be vulnerable to XML attacks. Replace xml.dom.minidom.parseString with its defusedxml equivalent function or make sure defusedxml.defuse_stdlib() is called Open
Open
xunit_doc = xml.dom.minidom.parseString(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 basic.py
has 1296 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import glob
import json
import os
import re
import tempfile
Function run_and_check
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def run_and_check(
Function run_and_check
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def run_and_check(self, testname, e_rc, e_ntests, e_nerrors, e_nfailures, e_nskip):