History log of /external/python/cpython2/Lib/test/test_cookie.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
ec7abfb58fdf8ab6d1af1aba4731bf149a7d485e 23-May-2015 Benjamin Peterson <benjamin@python.org> allow square brackets in cookie values (#22931)
/external/python/cpython2/Lib/test/test_cookie.py
186c5f07e65c95b23087abe33670efa95eca497b 02-Nov-2014 Serhiy Storchaka <storchaka@gmail.com> Issue #22775: Fixed unpickling of Cookie.SimpleCookie with protocol 2.
Patch by Tim Graham.
/external/python/cpython2/Lib/test/test_cookie.py
c9cdd0ccadfaaac177ab7a866b979db3b073f660 17-Sep-2014 Guido van Rossum <guido@python.org> Lax cookie parsing in http.cookies could be a security issue when
combined with non-standard cookie handling in some Web browsers.

Reported by Sergey Bobrov.
/external/python/cpython2/Lib/test/test_cookie.py
cf0a706c15e7e82cceebbaf15a204f36ccece4d9 02-Jul-2014 Berker Peksag <berker.peksag@gmail.com> Issue #19870: BaseCookie now parses 'secure' and 'httponly' flags.

Backport of issue #16611.
/external/python/cpython2/Lib/test/test_cookie.py
bf67ba8f84f3e771193b44b25526d0258826052e 16-Oct-2012 Benjamin Peterson <benjamin@python.org> only run doctests when __doc__ is around
/external/python/cpython2/Lib/test/test_cookie.py
f439a366308f64927d54e03272e8294463b68880 19-May-2012 Senthil Kumaran <senthil@uthcode.com> Issue #14426: Correct the Date format in Expires attribute of Set-Cookie. Patch by Federico Reghenzani and Müte Invert
/external/python/cpython2/Lib/test/test_cookie.py
08fc701714e294279bb313d2f13c7486d3ee8b7f 28-Dec-2010 R. David Murray <rdmurray@bitdance.com> Merged revisions 87550 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
r87550 | r.david.murray | 2010-12-28 13:54:13 -0500 (Tue, 28 Dec 2010) | 8 lines

#9824: encode , and ; in cookie values so that browsers don't split on them

There is a small chance of backward incompatibility here, but only for
non-SimpleCookie applications reading SimpleCookie generated cookies. Even
then, any such ap is likely to be handling escaped values already, and it would
take a fairly perverse implementation of unescaping to fail to unescape these
newly escaped chars, so the risk seems minimal.
........
/external/python/cpython2/Lib/test/test_cookie.py
78e6957cdf091318e4b31d17008fbaa08fffa6a2 01-Aug-2010 Georg Brandl <georg@python.org> Merged revisions 83393,83396,83398,83405,83408 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
r83393 | georg.brandl | 2010-08-01 10:35:29 +0200 (So, 01 Aug 2010) | 1 line

#1690103: fix initial namespace for code run with trace.main().
........
r83396 | georg.brandl | 2010-08-01 10:52:32 +0200 (So, 01 Aug 2010) | 1 line

#4810: document "--" option separator in timeit help.
........
r83398 | georg.brandl | 2010-08-01 11:06:34 +0200 (So, 01 Aug 2010) | 1 line

#8826: the "expires" attribute value is a date string with spaces, but apparently not all user-agents put it in quotes. Handle that as a special case.
........
r83405 | georg.brandl | 2010-08-01 16:38:17 +0200 (So, 01 Aug 2010) | 1 line

#4943: do not try to include drive letters (and colons) when looking for a probably module name.
........
r83408 | georg.brandl | 2010-08-01 17:30:56 +0200 (So, 01 Aug 2010) | 1 line

#5551: symbolic links never can be mount points. Fixes the fix for #1713.
........
/external/python/cpython2/Lib/test/test_cookie.py
6257a7bbb2660ae75c44f2e71d7ac2ce73900f74 01-Apr-2010 Florent Xicluna <florent.xicluna@gmail.com> Replace catch_warnings with check_warnings when it makes sense. Use assertRaises context manager to simplify some tests.
/external/python/cpython2/Lib/test/test_cookie.py
c730a6a1237a31d0ce89ab8fee2dea9af450a6ee 02-Apr-2009 Senthil Kumaran <orsenthil@gmail.com> Fixing the issue4860. Escaping embedded '"' character in js_output() method of Morsel.
/external/python/cpython2/Lib/test/test_cookie.py
a962eb32d98a1dae1f0c31623832a48725f3d6e0 29-Oct-2006 Georg Brandl <georg@python.org> Convert test_cookie to unittest.
/external/python/cpython2/Lib/test/test_cookie.py
8246c439a8246093b03e3987d6c1496ebe73b81c 25-Aug-2005 Georg Brandl <georg@python.org> Correct test suite for #848017.
/external/python/cpython2/Lib/test/test_cookie.py
d73ef06cd30eea20f121a79984b8c0c762cb4373 04-Jan-2004 Raymond Hettinger <python@rcn.com> Exercise sorted() where possible
/external/python/cpython2/Lib/test/test_cookie.py
4464432d8c6423cb0d2b6ecaf91a18a6a0c6db3f 29-Dec-2002 Andrew M. Kuchling <amk@amk.ca> Suppress unsafe *Cookie class warnings
/external/python/cpython2/Lib/test/test_cookie.py
04f357cffef6d764f2f0ff2671dabde75ec250d1 23-Jul-2002 Barry Warsaw <barry@python.org> Get rid of relative imports in all unittests. Now anything that
imports e.g. test_support must do so using an absolute package name
such as "import test.test_support" or "from test import test_support".

This also updates the README in Lib/test, and gets rid of the
duplicate data dirctory in Lib/test/data (replaced by
Lib/email/test/data).

Now Tim and Jack can have at it. :)
/external/python/cpython2/Lib/test/test_cookie.py
a0a62225094a890c1b07ebc4f89e4c7c45c66b13 09-Sep-2001 Tim Peters <tim.peters@gmail.com> Teach regrtest how to pass on doctest failure msgs. This is done via a
horridly inefficient hack in regrtest's Compare class, but it's about as
clean as can be: regrtest has to set up the Compare instance before
importing a test module, and by the time the module *is* imported it's too
late to change that decision. The good news is that the more tests we
convert to unittest and doctest, the less the inefficiency here matters.
Even now there are few tests with large expected-output files (the new
cost here is a Python-level call per .write() when there's an expected-
output file).
/external/python/cpython2/Lib/test/test_cookie.py
2f228e75e4d5ac8c3eb4a6334dbc43243bff1095 13-May-2001 Tim Peters <tim.peters@gmail.com> Get rid of the superstitious "~" in dict hashing's "i = (~hash) & mask".
The comment following used to say:
/* We use ~hash instead of hash, as degenerate hash functions, such
as for ints <sigh>, can have lots of leading zeros. It's not
really a performance risk, but better safe than sorry.
12-Dec-00 tim: so ~hash produces lots of leading ones instead --
what's the gain? */
That is, there was never a good reason for doing it. And to the contrary,
as explained on Python-Dev last December, it tended to make the *sum*
(i + incr) & mask (which is the first table index examined in case of
collison) the same "too often" across distinct hashes.

Changing to the simpler "i = hash & mask" reduced the number of string-dict
collisions (== # number of times we go around the lookup for-loop) from about
6 million to 5 million during a full run of the test suite (these are
approximate because the test suite does some random stuff from run to run).
The number of collisions in non-string dicts also decreased, but not as
dramatically.

Note that this may, for a given dict, change the order (wrt previous
releases) of entries exposed by .keys(), .values() and .items(). A number
of std tests suffered bogus failures as a result. For dicts keyed by
small ints, or (less so) by characters, the order is much more likely to be
in increasing order of key now; e.g.,

>>> d = {}
>>> for i in range(10):
... d[i] = i
...
>>> d
{0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 9}
>>>

Unfortunately. people may latch on to that in small examples and draw a
bogus conclusion.

test_support.py
Moved test_extcall's sortdict() into test_support, made it stronger,
and imported sortdict into other std tests that needed it.
test_unicode.py
Excluced cp875 from the "roundtrip over range(128)" test, because
cp875 doesn't have a well-defined inverse for unicode("?", "cp875").
See Python-Dev for excruciating details.
Cookie.py
Chaged various output functions to sort dicts before building
strings from them.
test_extcall
Fiddled the expected-result file. This remains sensitive to native
dict ordering, because, e.g., if there are multiple errors in a
keyword-arg dict (and test_extcall sets up many cases like that), the
specific error Python complains about first depends on native dict
ordering.
/external/python/cpython2/Lib/test/test_cookie.py
eb26f9590691b502db69e26ff441abec7fbd4d47 06-Apr-2001 Tim Peters <tim.peters@gmail.com> Since Guido fiddled Cookie.py to work with doctest, it's a Good Thing to
have the std test suite exercise the Cookie doctests too.
/external/python/cpython2/Lib/test/test_cookie.py
8b94b1c74a5d81ec0db14b0f1d4b65e6b592a680 21-Feb-2001 Andrew M. Kuchling <amk@amk.ca> Added test for patch #103473: test an unquoted cookie value containing '='
/external/python/cpython2/Lib/test/test_cookie.py
f785042433f0c43ed1ba2ba0388fc51d79bcf5c3 17-Jan-2001 Fredrik Lundh <fredrik@pythonware.com> a bold attempt to fix things broken by MAL's verify patch: import
'verify' iff it's used by a test module...
/external/python/cpython2/Lib/test/test_cookie.py
f27cc5bc74372032ce9c42e9f6321458df6da2f7 17-Jan-2001 Guido van Rossum <guido@python.org> Marc-Andre must not have run these tests -- they used verify() but
didn't import it. Also got rid of some inconsistent spaces inside
parentheses in test_gzip.py.
/external/python/cpython2/Lib/test/test_cookie.py
3661908a6ac75026e4504d9f62a6ac2e2fb2ec5e 17-Jan-2001 Marc-André Lemburg <mal@egenix.com> 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.
/external/python/cpython2/Lib/test/test_cookie.py
004d5e6880940ddbb38460986ac62ee0f1bae97d 23-Oct-2000 Fred Drake <fdrake@acm.org> Make reindent.py happy (convert everything to 4-space indents!).
/external/python/cpython2/Lib/test/test_cookie.py
103d5268c2f40d79c12bee53dd97ff316043f92c 24-Aug-2000 Andrew M. Kuchling <amk@amk.ca> Updated test suite: test repr() and str() of cookies, and test metadata
fields with quoted values (as in Path="/acme")
/external/python/cpython2/Lib/test/test_cookie.py
514a1028a20b4a818aa1f75dd674c5ee78a2f5ae 19-Aug-2000 Moshe Zadka <moshez@math.huji.ac.il> Adding tests of the "attrs" optional argument, and of the js_output
functionality.
/external/python/cpython2/Lib/test/test_cookie.py
cdec8c746b87f1df5c7c58c4e2b205914b16ef19 19-Aug-2000 Andrew M. Kuchling <amk@amk.ca> Test case for Cookie.py
/external/python/cpython2/Lib/test/test_cookie.py