]> granicus.if.org Git - python/commitdiff
nonstandard_expectations is only added when in verbose mode, so we
authorBarry Warsaw <barry@python.org>
Fri, 13 Dec 1996 18:12:34 +0000 (18:12 +0000)
committerBarry Warsaw <barry@python.org>
Fri, 13 Dec 1996 18:12:34 +0000 (18:12 +0000)
don't need the if test for verbosity when checking for results of an
unsupported option.

Lib/test/test_strftime.py

index 28ae4c64a7199ec373fc9f9b4471dfc696f368e8..ca0e48e397ac9434bf350e7614e90dd52e6b461c 100755 (executable)
@@ -91,8 +91,7 @@ for e in expectations:
     result = time.strftime(e[0], now)
     if result == e[1]: continue
     if result[0] == '%':
-       if verbose:
-           print "Does not appear to support '%s' format" % e[0]
+       print "Does not appear to support '%s' format" % e[0]
     else:
        print "Conflict for %s (%s):" % (e[0], e[2])
        print "  Expected %s, but got %s" % (e[1], result)