]> granicus.if.org Git - graphviz/commitdiff
remove unnecessary 'global' statements in rtest
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 17 Oct 2020 22:04:36 +0000 (15:04 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 24 Oct 2020 02:16:10 +0000 (19:16 -0700)
These variables were either unused in the contained function or only read from.

rtest/rtest.py

index bac5bccf1e6b8e1c92bcdd113c074b5db98b1772..560ec8e70988a6c09b8efeaadfa7d9b603b73662 100755 (executable)
@@ -104,9 +104,7 @@ def readTest():
 # Compare old and new output and report if different.
 #  Args: testname index fmt
 def doDiff(OUTFILE, OUTDIR, REFDIR, testname, subtest_index, fmt):
-  global OUTHTML
   global DIFF_CNT
-  global VERBOSE
   FILE1 = os.path.join(OUTDIR, OUTFILE)
   FILE2 = os.path.join(REFDIR, OUTFILE)
   F = fmt.split(':')[0]
@@ -201,10 +199,8 @@ def genOutname(name, alg, fmt):
   return OUTFILE
 
 def doTest(TEST):
-  global GENERATE
   global TOT_CNT
   global CRASH_CNT
-  global DIFF_CNT
   global TESTTYPES
   TESTNAME = TEST['TESTNAME']
   SUBTESTS = TEST['SUBTESTS']