Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 401925 - dev-python/webtest-1.3.3 version bump request
Summary: dev-python/webtest-1.3.3 version bump request
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
: 393637 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-02-02 16:22 UTC by Ian Delaney (RETIRED)
Modified: 2012-05-03 12:03 UTC (History)
0 users

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


Attachments
ebuild (webtest-1.3.3.ebuild,1.34 KB, text/plain)
2012-02-02 16:22 UTC, Ian Delaney (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Delaney (RETIRED) gentoo-dev 2012-02-02 16:22:13 UTC
Created attachment 300759 [details]
ebuild

ran test suite

Ran 50 tests in 0.468s

FAILED (failures=1)
which is fixable if someone care to undertake.  Otherwise just set test to RESTRICT for this version.  1 out of 50 isn't that bad.

Tests set to off emerged happily.  The patch for 1.3-doctest-ellipsis.patch is not required
Comment 1 Ian Delaney (RETIRED) gentoo-dev 2012-02-24 16:04:05 UTC
*** Bug 393637 has been marked as a duplicate of this bug. ***
Comment 2 Ian Delaney (RETIRED) gentoo-dev 2012-03-16 17:03:32 UTC
Here is yet a second test suite that falls victim to the inability of module distutils to deal with unicode in python2.

gentoo # FEATURES=test USE_PYTHON="2.7" ebuild webtest-1.3.3.ebuild clean test
----------------------------------------------------------

1.)

ERROR: test_click (tests.test_click.TestClick)
-----------------------------------------------------------------------
  File "/mnt/gen2/TmpDir/portage/dev-python/webtest-1.3.3/work/WebTest-1.3.3/tests/compat.py", line 19, in u
    return unicode(value, 'utf-8')
TypeError: decoding Unicode is not supported

ERROR: test_click_u (tests.test_click.TestClick)
----------------------------------------------------------------------
  File "/mnt/gen2/TmpDir/portage/dev-python/webtest-1.3.3/work/WebTest-1.3.3/tests/compat.py", line 19, in u
    return unicode(value, 'utf-8')
TypeError: decoding Unicode is not supported

ERROR: test_click_utf8 (tests.test_click.TestClick)
  File "/mnt/gen2/TmpDir/portage/dev-python/webtest-1.3.3/work/WebTest-1.3.3/tests/compat.py", line 19, in u
    return unicode(value, 'utf-8')
TypeError: decoding Unicode is not supported
----------------------------------------------------
AND
----------------------------------------------------
2.)

259    >>> # dict of fields
260    >>> fields.values() #doctest: +SKIP
261    [(u'name', [<Text name="name">]), (u'submit', [<Submit name="submit">])]

273    >>> res = form.submit('submit')
274    >>> print(res)

draws error;

File "/tmp/portage/dev-python/webtest-1.3.3/work/WebTest-1.3.3/docs/index.txt", line 274
Failed example:
    print(res)

File ".........webtest-1.3.3/work/WebTest-1.3.3/docs/index.txt", line 332
File ".........webtest-1.3.3/work/WebTest-1.3.3/docs/index.txt", line 344
File ".........webtest-1.3.3/work/WebTest-1.3.3/docs/index.txt", line 350
in index.txt
332    >>> res.lxml
344    >>> res.xml
350    >>> res.lxml

2 separate unicode related errors in the 1 newly resumed test suite.

In this; RESTRICT_PYTHON_ABIS="2.4 3.*"
So no python3.2 to the rescue.