| Summary: | =dev-python/alembic - Version bump 0.5.0 | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Jan Matějka (RETIRED) <yac> |
| Component: | Current packages | Assignee: | Ian Delaney (RETIRED) <idella4> |
| Status: | RESOLVED FIXED | ||
| Severity: | enhancement | CC: | proxy-maint, python, yac |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Jan Matějka (RETIRED)
2013-04-05 01:37:37 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.
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 13 Jun 2013; Patrick Lauer <patrick@gentoo.org> +alembic-0.5.0.ebuild: Bump |