bbangert/beaker

test_cookies_enabled fails in 1.7.0 under py3.4

idella opened this issue · 1 comments

 * python3_4: running distutils-r1_run_phase python_test
....................................................................................S.............F../mnt/gen2/TmpDir/portage/dev-python/beaker-1.7.0-r1/work/beaker-1.7.0dev-python3_4/tests/test_session.py:19: BeakerWarning: Invalidating corrupt session d32656da7e614fd4af4652a5a1d1ce50; error was: pickle data was truncated.  Set invalidate_corrupt=False to propagate this exception.
  return Session({}, **options)
................
======================================================================
FAIL: Test if cookies are sent out properly when ``use_cookies``
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python3.4/site-packages/nose/case.py", line 198, in runTest
    self.test(*self.arg)
  File "/mnt/gen2/TmpDir/portage/dev-python/beaker-1.7.0-r1/work/beaker-1.7.0dev-python3_4/tests/test_session.py", line 221, in test_cookies_enabled
    assert 'secure' in session.request['cookie_out']
AssertionError

----------------------------------------------------------------------
Ran 117 tests in 155.353s

FAILED (SKIP=1, failures=1)

I may have had this pass 3 weeks ago but I have no records of proof.
Can you replicate?
Do you require any further info?

Might it be that your test dir was not clean?
All tests are correclty passing on travis ( https://travis-ci.org/bbangert/beaker ) and seem to be correctly passing on my machine with a clean py3.4 env:

...
Test if cookies are sent out properly when ``use_cookies`` ... ok
Test that no cookies are sent when ``use_cookies`` is set to ``False`` ... ok
...

----------------------------------------------------------------------
Ran 117 tests in 153.086s

OK (SKIP=1)