3434import utils
3535import signal
3636import sys
37- import xml .etree .ElementTree as xml
37+ import xml .etree .ElementTree as ET
3838
3939def IsExitCodeCrashing (exit_code ):
4040 if utils .IsWindows ():
@@ -44,22 +44,22 @@ def IsExitCodeCrashing(exit_code):
4444
4545class JUnitTestOutput :
4646 def __init__ (self , test_suite_name ):
47- self .root = xml .Element ("testsuite" )
47+ self .root = ET .Element ("testsuite" )
4848 self .root .attrib ["name" ] = test_suite_name
4949
5050 def HasRunTest (self , test_name , test_cmd , test_duration , test_failure ):
51- test_case_element = xml .Element ("testcase" )
51+ test_case_element = ET .Element ("testcase" )
5252 test_case_element .attrib ["name" ] = test_name
5353 test_case_element .attrib ["cmd" ] = test_cmd
5454 test_case_element .attrib ["time" ] = str (round (test_duration , 3 ))
5555 if test_failure is not None :
56- failure_element = xml .Element ("failure" )
56+ failure_element = ET .Element ("failure" )
5757 failure_element .text = test_failure
5858 test_case_element .append (failure_element )
5959 self .root .append (test_case_element )
6060
6161 def FinishAndWrite (self , f ):
62- xml .ElementTree (self .root ).write (f , "UTF-8" )
62+ ET .ElementTree (self .root ).write (f , "UTF-8" )
6363
6464
6565def Main ():
0 commit comments