[pypy-issue] Issue #1972: Regression in 2.5.0, Cookie module (pypy/pypy)

Maximilian Hils issues-reply at bitbucket.org
Fri Feb 6 03:16:00 CET 2015


New issue 1972: Regression in 2.5.0, Cookie module
https://bitbucket.org/pypy/pypy/issue/1972/regression-in-250-cookie-module

Maximilian Hils:

After Travis upgraded to PyPy 2.5.0 today, we hit a regression within our mitmproxy testsuite ([original build](https://travis-ci.org/mitmproxy/mitmproxy/builds/49685299)).

I traced it down from mitmproxy to the stdlib. PyPy 2.4.0 behaves like CPython, 2.5.0 doesn't.

```
> pypy
Python 2.7.8 (f5dcc2477b97, Sep 18 2014, 14:30:11)
[PyPy 2.4.0 with MSC v.1500 32 bit] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>> import Cookie
>>>> d = 'SSID=mooo, FOO=bar; Domain=.google.com; Path=/; Expires=Wed, 13-Jan-2021 22:23:01 GMT; Secure; '
>>>> c = Cookie.SimpleCookie(d)
>>>> c.values()[0]
<Morsel: FOO='bar'>
```

```
> pypy
Python 2.7.8 (10f1b29a2bd2, Feb 03 2015, 00:56:13)
[PyPy 2.5.0 with MSC v.1500 32 bit] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>> import Cookie
>>>> d = 'SSID=mooo, FOO=bar; Domain=.google.com; Path=/; Expires=Wed, 13-Jan-2021 22:23:01 GMT; Secure; '
>>>> c = Cookie.SimpleCookie(d)
>>>> c.values()[0]
<Morsel: SSID='mooo,'>
```




More information about the pypy-issue mailing list