[Python-checkins] cpython: Issue #27105: Add cgi.test() to __all__, based on Jacek Kołodziej’s patch
martin.panter
python-checkins at python.org
Sun Jun 5 22:30:49 EDT 2016
https://hg.python.org/cpython/rev/74ed6f3fb8d2
changeset: 101761:74ed6f3fb8d2
user: Martin Panter <vadmium+py at gmail.com>
date: Mon Jun 06 01:53:28 2016 +0000
summary:
Issue #27105: Add cgi.test() to __all__, based on Jacek Kołodziej’s patch
files:
Lib/cgi.py | 2 +-
Lib/test/test_cgi.py | 6 ++++++
2 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/Lib/cgi.py b/Lib/cgi.py
--- a/Lib/cgi.py
+++ b/Lib/cgi.py
@@ -45,7 +45,7 @@
__all__ = ["MiniFieldStorage", "FieldStorage",
"parse", "parse_qs", "parse_qsl", "parse_multipart",
- "parse_header", "print_exception", "print_environ",
+ "parse_header", "test", "print_exception", "print_environ",
"print_form", "print_directory", "print_arguments",
"print_environ_usage", "escape"]
diff --git a/Lib/test/test_cgi.py b/Lib/test/test_cgi.py
--- a/Lib/test/test_cgi.py
+++ b/Lib/test/test_cgi.py
@@ -7,6 +7,7 @@
import warnings
from collections import namedtuple
from io import StringIO, BytesIO
+from test import support
class HackedSysModule:
# The regression test will have real values in sys.argv, which
@@ -473,6 +474,11 @@
cgi.parse_header('form-data; name="files"; filename="fo\\"o;bar"'),
("form-data", {"name": "files", "filename": 'fo"o;bar'}))
+ def test_all(self):
+ blacklist = {"logfile", "logfp", "initlog", "dolog", "nolog",
+ "closelog", "log", "maxlen", "valid_boundary"}
+ support.check__all__(self, cgi, blacklist=blacklist)
+
BOUNDARY = "---------------------------721837373350705526688164684"
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list