Senthil Kumaran
d17a898fcf
Fix closes Issue14281 - Test for cgi.escape by Brian Landers
14 years ago
Senthil Kumaran
59a06d412d
Fix closes Issue12529 - cgi.parse_header failure on double quotes and
semicolons. Patch by Ben Darnell and Petri Lehtinen.
15 years ago
Ezio Melotti
2623a37852
Merged revisions 86596 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r86596 | ezio.melotti | 2010-11-20 21:04:17 +0200 (Sat, 20 Nov 2010) | 1 line
#9424 : Replace deprecated assert* methods in the Python test suite.
........
16 years ago
Ezio Melotti
8a078d5b4c
Fix deprecation warnings in test_cgi.py
16 years ago
Ezio Melotti
4d6f56dbd4
Fix incorrect placement of sorted()
16 years ago
Ezio Melotti
38a5800cdc
Merged revisions 77871,77910,77913 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r77871 | ezio.melotti | 2010-01-31 13:46:54 +0200 (Sun, 31 Jan 2010) | 1 line
#7092 : silence more -3 and -Wd warnings
........
r77910 | ezio.melotti | 2010-02-02 10:37:35 +0200 (Tue, 02 Feb 2010) | 1 line
#7092 : silence py3k warnings for bsddb. Patch by Florent Xicluna.
........
r77913 | ezio.melotti | 2010-02-02 19:34:37 +0200 (Tue, 02 Feb 2010) | 1 line
#7092 : Silence py3k warnings in test_exceptions and test_pep352. Patch by Florent Xicluna.
........
16 years ago
Michael Foord
98e7b7644b
Issue 7832: renaming unittest.TestCase.assertSameElements to assertItemsEqual and changing behaviour
16 years ago
Florent Xicluna
78c1871d21
Fix and check cgi module deprecation warnings. Revert an unwanted rename in test_import.
16 years ago
Florent Xicluna
945a8ba635
Cleanup some test cases using check_warnings and check_py3k_warnings.
16 years ago
Ezio Melotti
ef4909643d
#7092 : silence more -3 and -Wd warnings
17 years ago
Senthil Kumaran
ce8e33a095
Reverting the Revision: 77368. I committed Flox's big patch for tests by
mistake. ( It may come in for sure tough)
17 years ago
Senthil Kumaran
3ddc435af6
Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. Patch by flox
17 years ago
Benjamin Peterson
5c8da86f3a
convert usage of fail* to assert*
17 years ago
Fred Drake
0c7dfa3e12
Merged revisions 67528 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r67528 | fred.drake | 2008-12-04 13:25:17 -0500 (Thu, 04 Dec 2008) | 4 lines
Issue #1055234 : cgi.parse_header(): Fixed parsing of header parameters to
support unusual filenames (such as those containing semi-colons) in
Content-Disposition headers.
........
18 years ago
Fred Drake
5248103ef9
Issue #1055234 : cgi.parse_header(): Fixed parsing of header parameters to
support unusual filenames (such as those containing semi-colons) in
Content-Disposition headers.
18 years ago
Facundo Batista
ace0bcf669
Issue 3801. Fixing a dumb error in the deprecated parse_qsl()
function. Tests added.
18 years ago
Facundo Batista
c585df9476
Issue 600362: Relocated parse_qs() and parse_qsl(), from the cgi module
to the urlparse one. Added a PendingDeprecationWarning in the old
module, it will be deprecated in the future. Docs and tests updated.
18 years ago
Facundo Batista
a6a4d50efe
Now a from submitted via POST that also has a query string
will contain both FieldStorage and MiniFieldStorage items.
Fixes #1817 .
18 years ago
Georg Brandl
e184433654
Convert test_cgi to unittest.
20 years ago
Tim Peters
b7ad1eb2c6
Whitespace normalization broke test_cgi, because a line
of quoted test data relied on preserving a single trailing
blank. Changed the string from raw to regular, and forced
in the trailing blank via an explicit \x20 escape.
20 years ago
Tim Peters
0d9ca9fa47
Whitespace normalization.
20 years ago
Guido van Rossum
9568b738ec
Chris McDonough's patch to defend against certain DoS attacks on FieldStorage.
SF bug #1112549 .
20 years ago
Anthony Baxter
d2717217ae
Removed use of 'cgi.initlog()' - the first call to cgi.log is actually
an initlog() (and initlog()'s docstring says "don't use this"!) This
allows test_cgi to be run repeatedly in a single run of the interpreter.
22 years ago
Neil Schemenauer
66edb6295f
Don't return spurious empty fields if 'keep_empty_values' is True.
Fixes SF bug #990307 .
22 years ago
Barry Warsaw
408b6d34de
Complete the absolute import patch for the test suite. All relative
imports of test modules now import from the test package. Other
related oddities are also fixed (like DeprecationWarning filters that
weren't specifying the full import part, etc.). Also did a general
code cleanup to remove all "from test.test_support import *"'s. Other
from...import *'s weren't changed.
24 years ago
Marc-André Lemburg
3661908a6a
This patch removes all uses of "assert" in the regression test suite
and replaces them with a new API verify(). As a result the regression
suite will also perform its tests in optimization mode.
Written by Marc-Andre Lemburg. Copyright assigned to Guido van Rossum.
26 years ago
Guido van Rossum
846d6dbbe6
Fix a bizarre typo in the helper class ComparableException: the
__getattr__() method, which clearly (like the other methods) was
intended to pass the __getattr__() call on to the self.err object,
mistakenly returned getattr(self, self.err) rather than
getattr(self.err, attr). Since self.err is not a string, this always
raises a TypeError. Apparently that doesn't bother for the one
attribute for which __getattr__() is actually called ('__coerce__'),
but it broke the rich comparisons stuff that I'm trying to get into
shape, so I'm fixing this now. (I could also simply remove the
__getattr__() method, but fixing it seems more in the spirit of what
the ComparableException class is trying to do.)
26 years ago
Fred Drake
004d5e6880
Make reindent.py happy (convert everything to 4-space indents!).
26 years ago
Jeremy Hylton
afde7e24b6
fix bug #110661 (PR#356) -- accept either & or ; as separator for CGI
query string
also some doc string reformatting and use of string methods instead of
older string.splitfields
26 years ago
Moshe Zadka
a1a4b5916b
Closing patch #101120 -- After everyone agreed.
26 years ago
Jeremy Hylton
d9827c476c
test the non-multipart sections of the cgi module
26 years ago