Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 469050 - dev-python/cffi-0.6 test fail regression in test_zintegration.py
Summary: dev-python/cffi-0.6 test fail regression in test_zintegration.py
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL: https://bitbucket.org/cffi/cffi/issue...
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2013-05-08 13:12 UTC by Ian Delaney (RETIRED)
Modified: 2013-05-09 05:43 UTC (History)
0 users

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 Ian Delaney (RETIRED) gentoo-dev 2013-05-08 13:12:10 UTC
dev-python/cffi $ PYTHON_TARGETS="python2_7" ebuild cffi-0.6.ebuild clean test

--------------------------------------

testing/test_zdistutils.py:235: TestDistUtilsGeneric.test_tag PASSED
testing/test_zdistutils.py:244: TestDistUtilsGeneric.test_modulename PASSED
testing/test_zintegration.py:75: test_infrastructure PASSED
testing/test_zintegration.py:81: test_distutils_module FAILED

============================================================ FAILURES =============================================================
______________________________________________________ test_distutils_module ______________________________________________________

    def test_distutils_module():
        run_setup_and_program("distutils_module", '''
        import snip_basic_verify
        p = snip_basic_verify.C.getpwuid(0)
        assert snip_basic_verify.ffi.string(p.pw_name) == b"root"
>       ''')

testing/test_zintegration.py:86: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

dirname = 'distutils_module'
python_snippet = '\n    import snip_basic_verify\n    p = snip_basic_verify.C.getpwuid(0)\n    assert snip_basic_verify.ffi.string(p.pw_name) == b"root"\n    '

    def run_setup_and_program(dirname, python_snippet):
        venv_dir = create_venv(dirname + '-cpy')
        really_run_setup_and_program(dirname, venv_dir, python_snippet)
        #
        sys._force_generic_engine_ = True
        try:
            venv_dir = create_venv(dirname + '-gen')
            really_run_setup_and_program(dirname, venv_dir, python_snippet)
        finally:
            del sys._force_generic_engine_
        # the two files lextab.py and yacctab.py are created by not-correctly-
        # installed versions of pycparser.
>       assert not os.path.exists(str(SNIPPET_DIR.join(dirname, 'lextab.py')))
E       assert not True
E        +  where True = <function exists at 0x7f12233e0f50>('/mnt/gen2/TmpDir/portage/dev-python/cffi-0.6/work/cffi-0.6/testing/snippets/distutils_module/lextab.py')
E        +    where <function exists at 0x7f12233e0f50> = <module 'posixpath' from '/usr/lib64/python2.7/posixpath.pyc'>.exists
E        +      where <module 'posixpath' from '/usr/lib64/python2.7/posixpath.pyc'> = os.path
E        +    and   '/mnt/gen2/TmpDir/portage/dev-python/cffi-0.6/work/cffi-0.6/testing/snippets/distutils_module/lextab.py' = str(local('/mnt/gen2/TmpDir/portage/dev-python/cffi-0.6/work/cffi-0.6/testing/snippets/distutils_module/lextab.py'))
E        +      where local('/mnt/gen2/TmpDir/portage/dev-python/cffi-0.6/work/cffi-0.6/testing/snippets/distutils_module/lextab.py') = <bound method LocalPath.join of local('/mnt/gen2/TmpDir/portage/dev-python/cffi-0.6/work/cffi-0.6/testing/snippets')>('distutils_module', 'lextab.py')
E        +        where <bound method LocalPath.join of local('/mnt/gen2/TmpDir/portage/dev-python/cffi-0.6/work/cffi-0.6/testing/snippets')> = SNIPPET_DIR.join

testing/test_zintegration.py:72: AssertionError
------------------------- Captured stdout -------------------------------------
Comment 1 Ian Delaney (RETIRED) gentoo-dev 2013-05-09 05:43:12 UTC
fixed in pycparser-2.09.1-r1 by generating missing files