@@ -533,17 +533,6 @@ def main(tests=None, testdir=None, verbose=0, quiet=False,
533533 nottests .add (arg )
534534 args = []
535535
536- # For a partial run, we do not need to clutter the output.
537- if verbose or header or not (quiet or single or tests or args ):
538- if not pgo :
539- # Print basic platform information
540- print "==" , platform .python_implementation (), \
541- " " .join (sys .version .split ())
542- print "== " , platform .platform (aliased = True ), \
543- "%s-endian" % sys .byteorder
544- print "== " , os .getcwd ()
545- print "Testing with flags:" , sys .flags
546-
547536 alltests = findtests (testdir , stdtests , nottests )
548537 selected = tests or args or alltests
549538 if single :
@@ -552,10 +541,6 @@ def main(tests=None, testdir=None, verbose=0, quiet=False,
552541 next_single_test = alltests [alltests .index (selected [0 ])+ 1 ]
553542 except IndexError :
554543 next_single_test = None
555- if randomize :
556- random .seed (random_seed )
557- print "Using random seed" , random_seed
558- random .shuffle (selected )
559544
560545 if list_tests :
561546 for name in selected :
@@ -623,6 +608,22 @@ def display_progress(test_index, test):
623608 print (line )
624609 sys .stdout .flush ()
625610
611+ # For a partial run, we do not need to clutter the output.
612+ if verbose or header or not (quiet or single or tests or args ):
613+ if not pgo :
614+ # Print basic platform information
615+ print "==" , platform .python_implementation (), \
616+ " " .join (sys .version .split ())
617+ print "== " , platform .platform (aliased = True ), \
618+ "%s-endian" % sys .byteorder
619+ print "== " , os .getcwd ()
620+ print "Testing with flags:" , sys .flags
621+
622+ if randomize :
623+ random .seed (random_seed )
624+ print "Using random seed" , random_seed
625+ random .shuffle (selected )
626+
626627 if use_mp :
627628 try :
628629 from threading import Thread
0 commit comments