Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 592424 - dev-python/pytest-3.0.1 bump / test failure
Summary: dev-python/pytest-3.0.1 bump / test failure
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-30 11:57 UTC by Patrick Lauer
Modified: 2019-01-27 16:38 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 Patrick Lauer gentoo-dev 2016-08-30 11:57:56 UTC
>=2.9 is required by dev-python/cryptography and possibly others.

Test failure:

================================================================================================================================== FAILURES ===================================================================================================================================
_____________________________________________________________________________________________________________ TestParameterizedSubRequest.test_non_relative_path ______________________________________________________________________________________________________________

self = <fixture.TestParameterizedSubRequest instance at 0x7fc7c563ed88>, testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-3.0.1/temp/pytest-of-portage/pytest-0/testdir/test_non_relative_path0')>

    def test_non_relative_path(self, testdir):
        tests_dir = testdir.mkdir('tests')
        fixdir = testdir.mkdir('fixtures')
        fixfile = fixdir.join("fix.py")
        fixfile.write(_pytest._code.Source("""
                import pytest
    
                @pytest.fixture(params=[0, 1, 2])
                def fix_with_param(request):
                    return request.param
                """))
    
        testfile = tests_dir.join("test_foos.py")
        testfile.write(_pytest._code.Source("""
                from fix import fix_with_param
    
                def test_foo(request):
                    request.getfixturevalue('fix_with_param')
                """))
    
        tests_dir.chdir()
        testdir.syspathinsert(fixdir)
        result = testdir.runpytest()
        result.stdout.fnmatch_lines("""
                E*Failed: The requested fixture has no parameter defined for the current test.
                E*
                E*Requested fixture 'fix_with_param' defined in:
                E*{0}:5
                E*Requested here:
                E*{1}:5
                *1 failed*
>               """.format(fixfile.strpath, testfile.basename))
E       Failed: nomatch: 'E*Failed: The requested fixture has no parameter defined for the current test.'
E           and: u'============================================================================================================================= test session starts ============================================================================================================================='
E           and: u'platform linux2 -- Python 2.7.12, pytest-3.0.1, py-1.4.31, pluggy-0.3.1'
E           and: u'rootdir: /var/tmp/portage/dev-python/pytest-3.0.1/temp/pytest-of-portage/pytest-0/testdir/test_non_relative_path0/tests, inifile: '
E           and: u'plugins: hypothesis-3.4.2'
E           and: u'collected 0 items / 1 errors'
E           and: u''
E           and: u'=================================================================================================================================== ERRORS ===================================================================================================================================='
E           and: u'________________________________________________________________________________________________________________________ ERROR collecting test_foos.py ________________________________________________________________________________________________________________________'
E           and: u"ImportError while importing test module '/var/tmp/portage/dev-python/pytest-3.0.1/temp/pytest-of-portage/pytest-0/testdir/test_non_relative_path0/tests/test_foos.py'."
E           and: u'Original error message:'
E           and: u"'No module named fix'"
E           and: u'Make sure your test modules/packages have valid Python names.'
E           and: u'!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!'
E           and: u'=========================================================================================================================== 1 error in 0.30 seconds ==========================================================================================================================='
E       remains unmatched: 'E*Failed: The requested fixture has no parameter defined for the current test.'

../../../../../../work/pytest-3.0.1/testing/python/fixture.py:2958: Failed
---------------------------------------------------------------------------------------------------------------------------- Captured stdout call -----------------------------------------------------------------------------------------------------------------------------
running: /usr/bin/python2.7 /var/tmp/portage/dev-python/pytest-3.0.1/work/pytest-3.0.1-python2_7/lib/pytest.py --basetemp=/var/tmp/portage/dev-python/pytest-3.0.1/temp/pytest-of-portage/pytest-0/testdir/test_non_relative_path0/runpytest-0 --basetemp=/var/tmp/portage/dev-python/pytest-3.0.1/temp/pytest-of-portage/pytest-0/testdir/basetemp
     in: /var/tmp/portage/dev-python/pytest-3.0.1/temp/pytest-of-portage/pytest-0/testdir/test_non_relative_path0/tests
============================================================================================================================= test session starts =============================================================================================================================
platform linux2 -- Python 2.7.12, pytest-3.0.1, py-1.4.31, pluggy-0.3.1
rootdir: /var/tmp/portage/dev-python/pytest-3.0.1/temp/pytest-of-portage/pytest-0/testdir/test_non_relative_path0/tests, inifile: 
plugins: hypothesis-3.4.2
collected 0 items / 1 errors

=================================================================================================================================== ERRORS ====================================================================================================================================
________________________________________________________________________________________________________________________ ERROR collecting test_foos.py ________________________________________________________________________________________________________________________
ImportError while importing test module '/var/tmp/portage/dev-python/pytest-3.0.1/temp/pytest-of-portage/pytest-0/testdir/test_non_relative_path0/tests/test_foos.py'.
Original error message:
'No module named fix'
Make sure your test modules/packages have valid Python names.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
=========================================================================================================================== 1 error in 0.30 seconds ===========================================================================================================================
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
======================================================================================================= 1 failed, 1526 passed, 21 skipped, 12 xfailed in 615.18 seconds =======================================================================================================
 * ERROR: dev-python/pytest-3.0.1::gentoo failed (test phase):
 *   tests failed with python2.7
Comment 1 Virgil Dupras (RETIRED) gentoo-dev 2019-01-27 16:38:39 UTC
Tests have been running fine for a while now.