Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 421561 - dev-python/anyvc-0.3.7.1 version bump request
Summary: dev-python/anyvc-0.3.7.1 version bump request
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-17 12:56 UTC by Ian Delaney (RETIRED)
Modified: 2012-11-27 11:50 UTC (History)
0 users

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


Attachments
ebuild patch (anyvc.patch,1.30 KB, patch)
2012-06-17 12:56 UTC, Ian Delaney (RETIRED)
Details | Diff
files/ patch deleting 1 test (anyvc-del_test.patch,904 bytes, patch)
2012-06-17 12:56 UTC, Ian Delaney (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Delaney (RETIRED) gentoo-dev 2012-06-17 12:56:03 UTC
Created attachment 315575 [details, diff]
ebuild patch

archtester anyvc # ebuild anyvc-0.3.7.1.ebuild clean test

running test suite as is, it fails on 2 tests, both from the 1 test
def test_isdir(repo):
in tests/repository/test_history.py.


=================================== FAILURES ===================================
________________________ test_isdir[direct-subversion] _________________________

repo = <anyvc.subversion.repo.SubversionRepository object at 0x18a8ed0>
...........................................
            with root.join('testdir/test.txt').open('w') as f:
>               f.write("test")

tests/repository/test_history.py:91: 

>               svnfile = root.open_file(file)
E               SubversionException: ("File not found: transaction '0-0', path '/testdir/test.txt'", 160013)
 ------------------------------------------------
anyvc/subversion/repo.py:108: SubversionException
____________________________ test_isdir[direct-git] ____________________________
---------------------------------------------------
>       assert head.isfile("/testdir/test.txt")
E       assert <bound method GitRevision.isfile of <anyvc.git.repo.GitRevision object at 0x1b00410>>('/testdir/test.txt')
E        +  where <bound method GitRevision.isfile of <anyvc.git.repo.GitRevision object at 0x1b00410>> = <anyvc.git.repo.GitRevision object at 0x1b00410>.isfile

tests/repository/test_history.py:94: AssertionError
========= 2 failed, 105 passed, 9 skipped, 6 xfailed in 77.53 seconds ==========

I have confirmed that these is a test that can never pass because it's seeking a directory not there to be found.  dir testdir && test.txt are not present in the source.  
     with root.join('testdir/test.txt').open('w') as f:
         f.write("test")

sees it assuming it has access to the / of system and therefore doesn't work run from an ebuild, so deleting this test from test file 
tests/repository/test_history.py.  It could alternately be marked as an xfail; peas in a pod


from ebuild of mercurial-2.2.2

PYTHON_USE_WITH="threads"
The effect being that pypy support is defeated because python.eclass needs tweaking to distinguish python from pypy when it comes to PYTHON_USE_WITH.

pypy can't even get tried until python.eclass 'knows' that pypy does not have a threads use flag.

Does anyone know if it is supposed to support python3?  Doesn't seem to say 1 way or the other, and tests error out only on print format.
Comment 1 Ian Delaney (RETIRED) gentoo-dev 2012-06-17 12:56:34 UTC
Created attachment 315577 [details, diff]
files/ patch deleting 1 test
Comment 2 Nikolaj Šujskij 2012-07-06 09:53:09 UTC
RESOLVED: FIXED, ain't it?
Comment 3 Ian Delaney (RETIRED) gentoo-dev 2012-07-07 16:26:26 UTC
aversion bump request is fixed when it's bumped.
What fix are you talking about?
Comment 4 Ian Delaney (RETIRED) gentoo-dev 2012-11-27 11:50:34 UTC
bumped 28 Jun 2012