Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 487832 - dev-python/beaker: py3.3 unfit with some types
Summary: dev-python/beaker: py3.3 unfit with some types
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL: https://github.com/bbangert/beaker/is...
Whiteboard:
Keywords:
: 483402 488952 (view as bug list)
Depends on:
Blocks: python-3.3 486966 python-3.4
  Show dependency tree
 
Reported: 2013-10-13 07:52 UTC by Pacho Ramos
Modified: 2015-03-31 05:12 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (beaker-1.6.4-r1:20131013-081951.log,62.01 KB, text/x-log)
2013-10-13 08:23 UTC, Pacho Ramos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2013-10-13 07:52:46 UTC
Was looking to add 3_3 for beaker but I found:
# py2.5 seems to have db problems
# pypy random exceptions, someone should take a closer look, it may
# be just the usual test suite overload
# py3.3 unfit with some types
PYTHON_COMPAT=( python{2_6,2_7,3_2} )

Sadly, I don't see any reference or similar :(
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-10-13 08:05:13 UTC
That looks like idella4's language. Maybe you'll find some answers running the test suite.

You can use PYTHON_COMPAT_OVERRIDE='python3_3' environment variable to test it easier.
Comment 2 Pacho Ramos gentoo-dev 2013-10-13 08:21:57 UTC
This is important since it blocks mako, that blocks rhythmbox -> will check for test errors
Comment 3 Pacho Ramos gentoo-dev 2013-10-13 08:23:11 UTC
Created attachment 360750 [details]
build.log

Yes, lots of tests failures :'(
Comment 4 Pacho Ramos gentoo-dev 2013-10-18 18:06:18 UTC
That looks like an upstream report, also contains a reference that points to it possible also affecting to other implementations (that would explain why I sometimes got the failure also in 3.2 :S)
Comment 5 Arfrever Frehtes Taifersar Arahesis 2013-10-29 22:04:46 UTC
(In reply to Pacho Ramos from comment #3)
> Created attachment 360750 [details]
> build.log

Master Arfrever hath convinced upstream to fix regression, which was cause of 3 errors shown in this build log:
http://bugs.python.org/issue19287
http://hg.python.org/cpython/rev/61ab0c6907f9
Comment 6 Jan Matějka (RETIRED) gentoo-dev 2013-10-30 13:53:52 UTC
Last time I checked (488952) beaker upstream doesn't support 3.3

Also this doesn't block mako anymore as I made beaker an optional dep for it recently.
Comment 7 Pacho Ramos gentoo-dev 2014-11-24 13:43:38 UTC
*** Bug 483402 has been marked as a duplicate of this bug. ***
Comment 8 Pacho Ramos gentoo-dev 2014-11-24 13:44:12 UTC
*** Bug 488952 has been marked as a duplicate of this bug. ***
Comment 9 Ian Delaney (RETIRED) gentoo-dev 2015-03-20 00:21:57 UTC
*beaker-1.7.0-r1 (19 Mar 2015)

  19 Mar 2015; Ian Delaney <idella4@gentoo.org> +beaker-1.7.0-r1.ebuild,
  -beaker-1.7.0.ebuild:
  revbump; add py3 support, update HOMEPAGE, switch SRC_URI to repo to acquire a
  complete tarball, update deps for tests and msg to users re optional
  cryptographic support, rm obsolete

(In reply to Michał Górny from comment #1)
> That looks like idella4's language. Maybe you'll find some answers running
> the test suite.
> 
> You can use PYTHON_COMPAT_OVERRIDE='python3_3' environment variable to test
> it easier.

Even I don't understand that
Comment 10 Ian Delaney (RETIRED) gentoo-dev 2015-03-31 05:12:08 UTC
sorry missed setting fixed. 

dev-python/beaker $ ebuild beaker-1.7.0-r1.ebuild clean test

>>> Source compiled.
>>> Test phase: dev-python/beaker-1.7.0-r1
 * python3_3: running distutils-r1_run_phase python_test
SS....................................................S..SSS....SSS................/mnt/gen2/TmpDir/portage/dev-python/beaker-1.7.0-r1/work/beaker-1.7.0dev-python3_3/tests/test_session.py:19: BeakerWarning: Invalidating corrupt session 6949bdf58d424a66876aaf97fe4e2377; error was: pickle data was truncated.  Set invalidate_corrupt=False to propagate this exception.
  return Session({}, **options)
.SS.............
----------------------------------------------------------------------
Ran 99 tests in 153.831s

OK (SKIP=11)
 * python3_4: running distutils-r1_run_phase python_test
SS....................................................S..SSS....SSS.............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 110fd3403e0a46debd13e6223a203b1d; error was: pickle data was truncated.  Set invalidate_corrupt=False to propagate this exception.
  return Session({}, **options)
.SS.............
======================================================================
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=11, failures=1)

I added this only 18 days ago and I presume the 1 test passed then under py3.4.  For the sake of 1 out of 99 and yet it passes under the other py impls;