Commit 57d51f2f authored by Guido van Rossum's avatar Guido van Rossum

Improve the test output a bit.

parent 1681627e
...@@ -850,7 +850,8 @@ def test(environ=os.environ): ...@@ -850,7 +850,8 @@ def test(environ=os.environ):
except: except:
print_exception() print_exception()
# Second try with a small maxlen... print "<H1>Second try with a small maxlen...</H1>"
global maxlen global maxlen
maxlen = 50 maxlen = 50
try: try:
...@@ -859,7 +860,6 @@ def test(environ=os.environ): ...@@ -859,7 +860,6 @@ def test(environ=os.environ):
print_environ(environ) print_environ(environ)
print_directory() print_directory()
print_arguments() print_arguments()
print_environ_usage()
except: except:
print_exception() print_exception()
...@@ -895,6 +895,8 @@ def print_form(form): ...@@ -895,6 +895,8 @@ def print_form(form):
keys.sort() keys.sort()
print print
print "<H3>Form Contents:</H3>" print "<H3>Form Contents:</H3>"
if not keys:
print "<P>No form fields."
print "<DL>" print "<DL>"
for key in keys: for key in keys:
print "<DT>" + escape(key) + ":", print "<DT>" + escape(key) + ":",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment