Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 464664 - =dev-python/alembic - Version bump 0.5.0
Summary: =dev-python/alembic - Version bump 0.5.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Ian Delaney (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-05 01:37 UTC by Jan Matějka (RETIRED)
Modified: 2013-10-21 17:13 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Matějka (RETIRED) gentoo-dev 2013-04-05 01:37:37 UTC
bump request

Reproducible: Always
Comment 1 Ian Delaney (RETIRED) gentoo-dev 2013-04-06 08:42:18 UTC
 ~/cvsPortage/gentoo-x86/dev-python/alembic $ ebuild alembic-0.5.0.ebuild clean test

--------------------- >> end captured stdout << ----------------------

----------------------------------------------------------------------
Ran 244 tests in 4.532s

FAILED (SKIP=5, errors=1)

-.........................................................
ERROR: test_encode (tests.test_sql_script.EncodingTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/mnt/gen2/TmpDir/portage/dev-python/alembic-0.5.0/work/alembic-0.5.0-python3_2/tests/test_sql_script.py", line 107, in setUp
    """.encode('utf-8') % a)
TypeError: TypeError: unsupported operand type(s) for %: 'bytes' and 'str'
...............................................................................

This test class is a new addition to test_sql_script.py from 0.4.2 and fails under py3.
Comment 2 Ian Delaney (RETIRED) gentoo-dev 2013-04-06 12:02:33 UTC
unhappily;  https://bitbucket.org/zzzeek/alembic/commits/6fc094bcbbb96d2d0161754fec370dfe6ec77440

dated 5th Apr. yields

======================================================================
ERROR: test_encode (tests.test_sql_script.EncodingTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/mnt/gen2/TmpDir/portage/dev-python/alembic-0.5.0/work/alembic-0.5.0-python3_2/tests/test_sql_script.py", line 107, in setUp
    """ % a).encode('utf-8'))
  File "/mnt/gen2/TmpDir/portage/dev-python/alembic-0.5.0/work/alembic-0.5.0-python3_2/tests/__init__.py", line 309, in write_script
    fp.write(textwrap.dedent(content))
  File "/usr/lib64/python3.2/textwrap.py", line 352, in dedent
    text = _whitespace_only_re.sub('', text)
TypeError: TypeError: can't use a string pattern on a bytes-like object

amounting to a variation on a theme; still mixing bytes and ('u') strings, still broken here. I suspect

write_script(script, a, ("""# coding: utf-8
myself but I don't write python3, leaving that to M. Bayer
Comment 3 Jan Matějka (RETIRED) gentoo-dev 2013-10-21 17:13:27 UTC
  13 Jun 2013; Patrick Lauer <patrick@gentoo.org> +alembic-0.5.0.ebuild:
  Bump