Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 542422 Details for
Bug 662820
dev-python/pytest-describe-0.11.1 : [TEST] E assert collected 4 items in [ ============================= test session starts ============================== , platform linux2 -- Python 2.7.15....7, hypothesis-3.59.1, case-1.5.3, backports.unitt
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
dev-python:pytest-describe-0.11.1:20180805-050633.log
dev-python:pytest-describe-0.11.1:20180805-050633.log (text/plain), 56.29 KB, created by
Toralf Förster
on 2018-08-05 07:44:45 UTC
(
hide
)
Description:
dev-python:pytest-describe-0.11.1:20180805-050633.log
Filename:
MIME Type:
Creator:
Toralf Förster
Created:
2018-08-05 07:44:45 UTC
Size:
56.29 KB
patch
obsolete
> * Package: dev-python/pytest-describe-0.11.1 > * Repository: gentoo > * Maintainer: python@gentoo.org > * USE: abi_x86_64 amd64 elibc_glibc kernel_linux python_targets_python2_7 python_targets_python3_6 test userland_GNU > * FEATURES: network-sandbox preserve-libs sandbox test userpriv usersandbox >>>> Unpacking source... >>>> Unpacking pytest-describe-0.11.1.tar.gz to /var/tmp/portage/dev-python/pytest-describe-0.11.1/work >>>> Source unpacked in /var/tmp/portage/dev-python/pytest-describe-0.11.1/work >>>> Preparing source in /var/tmp/portage/dev-python/pytest-describe-0.11.1/work/pytest-describe-0.11.1 ... >>>> Source prepared. >>>> Configuring source in /var/tmp/portage/dev-python/pytest-describe-0.11.1/work/pytest-describe-0.11.1 ... >>>> Source configured. >>>> Compiling source in /var/tmp/portage/dev-python/pytest-describe-0.11.1/work/pytest-describe-0.11.1 ... > * python2_7: running distutils-r1_run_phase distutils-r1_python_compile >python2.7 setup.py build >running build >running build_py >creating /var/tmp/portage/dev-python/pytest-describe-0.11.1/work/pytest-describe-0.11.1-python2_7/lib/pytest_describe >copying pytest_describe/__init__.py -> /var/tmp/portage/dev-python/pytest-describe-0.11.1/work/pytest-describe-0.11.1-python2_7/lib/pytest_describe >copying pytest_describe/shared.py -> /var/tmp/portage/dev-python/pytest-describe-0.11.1/work/pytest-describe-0.11.1-python2_7/lib/pytest_describe >copying pytest_describe/plugin.py -> /var/tmp/portage/dev-python/pytest-describe-0.11.1/work/pytest-describe-0.11.1-python2_7/lib/pytest_describe >warning: build_py: byte-compiling is disabled, skipping. > > * python3_6: running distutils-r1_run_phase distutils-r1_python_compile >python3.6 setup.py build -j 1 >running build >running build_py >creating /var/tmp/portage/dev-python/pytest-describe-0.11.1/work/pytest-describe-0.11.1-python3_6/lib/pytest_describe >copying pytest_describe/__init__.py -> /var/tmp/portage/dev-python/pytest-describe-0.11.1/work/pytest-describe-0.11.1-python3_6/lib/pytest_describe >copying pytest_describe/shared.py -> /var/tmp/portage/dev-python/pytest-describe-0.11.1/work/pytest-describe-0.11.1-python3_6/lib/pytest_describe >copying pytest_describe/plugin.py -> /var/tmp/portage/dev-python/pytest-describe-0.11.1/work/pytest-describe-0.11.1-python3_6/lib/pytest_describe >warning: build_py: byte-compiling is disabled, skipping. > >>>> Source compiled. >>>> Test phase: dev-python/pytest-describe-0.11.1 > * python2_7: running distutils-r1_run_phase python_test >============================= test session starts ============================== >platform linux2 -- Python 2.7.15, pytest-3.6.3, py-1.5.3, pluggy-0.6.0 -- /usr/bin/python2.7 >cachedir: .pytest_cache >rootdir: /var/tmp/portage/dev-python/pytest-describe-0.11.1/work/pytest-describe-0.11.1, inifile: >plugins: xdist-1.15.0, mock-1.10.0, forked-0.2, expect-1.1.0, cov-2.5.1, capturelog-0.7, hypothesis-3.59.1, case-1.5.3, backports.unittest-mock-1.4 >collecting ... collected 21 items > >test/test_collect.py::test_collect FAILED [ 4%] >test/test_collect.py::test_describe_evaluated_once FAILED [ 9%] >test/test_custom_prefix.py::test_collect_custom_prefix FAILED [ 14%] >test/test_fixtures.py::test_can_access_local_fixture FAILED [ 19%] >test/test_fixtures.py::test_can_access_fixture_from_nested_scope FAILED [ 23%] >test/test_fixtures.py::test_local_fixture_overrides FAILED [ 28%] >test/test_marks.py::test_special_marks FAILED [ 33%] >test/test_marks.py::test_keywords FAILED [ 38%] >test/test_marks.py::test_module_marks FAILED [ 42%] >test/test_marks.py::test_mark_at_describe_function FAILED [ 47%] >test/test_output.py::test_verbose_output FAILED [ 52%] >test/test_shared.py::test_shared_behavior FAILED [ 57%] >test/test_shared.py::test_multiple_shared_behaviors FAILED [ 61%] >test/test_shared.py::test_fixture FAILED [ 66%] >test/test_shared.py::test_override_fixture FAILED [ 71%] >test/test_shared.py::test_name_mangling FAILED [ 76%] >test/test_shared.py::test_nested_name_mangling FAILED [ 80%] >test/test_shared.py::test_evaluated_once FAILED [ 85%] >test/test_simple_execution.py::test_can_pass FAILED [ 90%] >test/test_simple_execution.py::test_can_fail FAILED [ 95%] >test/test_simple_execution.py::test_can_fail_and_pass FAILED [100%] > >=================================== FAILURES =================================== >_________________________________ test_collect _________________________________ > >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-describe-0.11.1/temp/pytest-of-portage/pytest-0/test_collect0')> > > def test_collect(testdir): > a_dir = testdir.mkpydir('a_dir') > a_dir.join('test_a.py').write(py.code.Source(""" > def describe_something(): > def is_foo(): > pass > def can_bar(): > pass > def _not_a_test(): > pass > def describe_something_else(): > def describe_nested(): > def a_test(): > pass > def foo_not_collected(): > pass > def test_something(): > pass > """)) > > result = testdir.runpytest('--collectonly') > expected_lines = [ > "collected 4 items", > " <DescribeBlock 'describe_something'>", > " <Function 'is_foo'>", > " <Function 'can_bar'>", > " <DescribeBlock 'describe_something_else'>", > " <DescribeBlock 'describe_nested'>", > " <Function 'a_test'>", > " <Function 'test_something'>", > ] > for line in expected_lines: >> assert line in result.outlines >E assert 'collected 4 items' in ['============================= test session starts ==============================', 'platform linux2 -- Python 2.7.15....7, hypothesis-3.59.1, case-1.5.3, backports.unittest-mock-1.4', 'collected 1 item', "<Module 'a_dir/test_a.py'>", ...] >E + where ['============================= test session starts ==============================', 'platform linux2 -- Python 2.7.15....7, hypothesis-3.59.1, case-1.5.3, backports.unittest-mock-1.4', 'collected 1 item', "<Module 'a_dir/test_a.py'>", ...] = <_pytest.pytester.RunResult object at 0x7f3d68ad3490>.outlines > >../../../../work/pytest-describe-0.11.1/test/test_collect.py:39: AssertionError >----------------------------- Captured stdout call ----------------------------- >============================= test session starts ============================== >platform linux2 -- Python 2.7.15, pytest-3.6.3, py-1.5.3, pluggy-0.6.0 >rootdir: /var/tmp/portage/dev-python/pytest-describe-0.11.1/temp/pytest-of-portage/pytest-0/test_collect0, inifile: >plugins: xdist-1.15.0, mock-1.10.0, forked-0.2, expect-1.1.0, cov-2.5.1, capturelog-0.7, hypothesis-3.59.1, case-1.5.3, backports.unittest-mock-1.4 >collected 1 item ><Module 'a_dir/test_a.py'> > <Function 'test_something'> > >=============================== warnings summary =============================== ><undetermined location> > pytest-capturelog plugin has been merged into the core, please remove it from your requirements. > >-- Docs: http://doc.pytest.org/en/latest/warnings.html >========================== 1 warnings in 0.01 seconds ========================== >_________________________ test_describe_evaluated_once _________________________ > >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-describe-0.11.1/temp/pytest-of-portage/pytest-0/test_describe_evaluated_once0')> > > def test_describe_evaluated_once(testdir): > a_dir = testdir.mkpydir('a_dir') > a_dir.join('test_something.py').write(py.code.Source(""" > count = 0 > def describe_is_evaluated_only_once(): > global count > count += 1 > def one(): > assert count == 1 > def two(): > assert count == 1 > def describe_nested(): > def three(): > assert count == 1 > """)) > > result = testdir.runpytest('-v') >> assert_outcomes(result, passed=3) > >../../../../work/pytest-describe-0.11.1/test/test_collect.py:59: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >result = <_pytest.pytester.RunResult object at 0x7f3d68d8bf10> >expected = {'passed': 3}, o = {'warnings': 1} > > def assert_outcomes(result, **expected): > o = result.parseoutcomes() > del o['seconds'] > > try: > del o['pytest-warnings'] > except KeyError: > pass > >> assert o == expected >E AssertionError > >../../../../work/pytest-describe-0.11.1/test/util.py:10: AssertionError >----------------------------- Captured stdout call ----------------------------- >============================= test session starts ============================== >platform linux2 -- Python 2.7.15, pytest-3.6.3, py-1.5.3, pluggy-0.6.0 -- /usr/bin/python2.7 >cachedir: .pytest_cache >rootdir: /var/tmp/portage/dev-python/pytest-describe-0.11.1/temp/pytest-of-portage/pytest-0/test_describe_evaluated_once0, inifile: >plugins: xdist-1.15.0, mock-1.10.0, forked-0.2, expect-1.1.0, cov-2.5.1, capturelog-0.7, hypothesis-3.59.1, case-1.5.3, backports.unittest-mock-1.4 >collecting ... collected 0 items > >=============================== warnings summary =============================== ><undetermined location> > pytest-capturelog plugin has been merged into the core, please remove it from your requirements. > >-- Docs: http://doc.pytest.org/en/latest/warnings.html >========================== 1 warnings in 0.01 seconds ========================== >__________________________ test_collect_custom_prefix __________________________ > >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-describe-0.11.1/temp/pytest-of-portage/pytest-0/test_collect_custom_prefix0')> > > def test_collect_custom_prefix(testdir): > testdir.makeini(ini) > > a_dir = testdir.mkpydir('a_dir') > a_dir.join('test_a.py').write(py.code.Source(""" > def foo_scope(): > def bar_context(): > def passes(): > pass > """)) > > result = testdir.runpytest('--collectonly') > print(result.outlines) >> assert _collect_result(result) == [ > "collected 1 item", > "<Module 'a_dir/test_a.py'>", > " <DescribeBlock 'foo_scope'>", > " <DescribeBlock 'bar_context'>", > " <Function 'passes'>", > ] >E assert ['', '=======...rements.', ''] == ['collected 1 ...on 'passes'>"] >E At index 0 diff: u'' != 'collected 1 item' >E Full diff: >E - [u'', >E - u'=============================== warnings summary ===============================', >E - u'<undetermined location>', >E - u' pytest-capturelog plugin has been merged into the core, please remove it from your requirements.', >E - u''] >E + ['collected 1 item', >E + "<Module 'a_dir/test_a.py'>", >E + " <DescribeBlock 'foo_scope'>", >E + " <DescribeBlock 'bar_context'>", >E + " <Function 'passes'>"] > >../../../../work/pytest-describe-0.11.1/test/test_custom_prefix.py:37: AssertionError >----------------------------- Captured stdout call ----------------------------- >============================= test session starts ============================== >platform linux2 -- Python 2.7.15, pytest-3.6.3, py-1.5.3, pluggy-0.6.0 >rootdir: /var/tmp/portage/dev-python/pytest-describe-0.11.1/temp/pytest-of-portage/pytest-0/test_collect_custom_prefix0, inifile: tox.ini >plugins: xdist-1.15.0, mock-1.10.0, forked-0.2, expect-1.1.0, cov-2.5.1, capturelog-0.7, hypothesis-3.59.1, case-1.5.3, backports.unittest-mock-1.4 >collected 0 items > >=============================== warnings summary =============================== ><undetermined location> > pytest-capturelog plugin has been merged into the core, please remove it from your requirements. > >-- Docs: http://doc.pytest.org/en/latest/warnings.html >========================== 1 warnings in 0.01 seconds ========================== >[u'============================= test session starts ==============================', u'platform linux2 -- Python 2.7.15, pytest-3.6.3, py-1.5.3, pluggy-0.6.0', u'rootdir: /var/tmp/portage/dev-python/pytest-describe-0.11.1/temp/pytest-of-portage/pytest-0/test_collect_custom_prefix0, inifile: tox.ini', u'plugins: xdist-1.15.0, mock-1.10.0, forked-0.2, expect-1.1.0, cov-2.5.1, capturelog-0.7, hypothesis-3.59.1, case-1.5.3, backports.unittest-mock-1.4', u'collected 0 items', u'', u'=============================== warnings summary ===============================', u'<undetermined location>', u' pytest-capturelog plugin has been merged into the core, please remove it from your requirements.', u'', u'-- Docs: http://doc.pytest.org/en/latest/warnings.html', u'========================== 1 warnings in 0.01 seconds ==========================', u''] >________________________ test_can_access_local_fixture _________________________ > >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-describe-0.11.1/temp/pytest-of-portage/pytest-0/test_can_access_local_fixture0')> > > def test_can_access_local_fixture(testdir): > a_dir = testdir.mkpydir('a_dir') > a_dir.join('test_a.py').write(py.code.Source(""" > import pytest > > def describe_something(): > @pytest.fixture > def thing(): > return 42 > > def thing_is_42(thing): > assert thing == 42 > """)) > > result = testdir.runpytest() >> assert_outcomes(result, passed=1) > >../../../../work/pytest-describe-0.11.1/test/test_fixtures.py:22: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >result = <_pytest.pytester.RunResult object at 0x7f3d689279d0> >expected = {'passed': 1}, o = {'warnings': 1} > > def assert_outcomes(result, **expected): > o = result.parseoutcomes() > del o['seconds'] > > try: > del o['pytest-warnings'] > except KeyError: > pass > >> assert o == expected >E AssertionError > >../../../../work/pytest-describe-0.11.1/test/util.py:10: AssertionError >----------------------------- Captured stdout call ----------------------------- >============================= test session starts ============================== >platform linux2 -- Python 2.7.15, pytest-3.6.3, py-1.5.3, pluggy-0.6.0 >rootdir: /var/tmp/portage/dev-python/pytest-describe-0.11.1/temp/pytest-of-portage/pytest-0/test_can_access_local_fixture0, inifile: >plugins: xdist-1.15.0, mock-1.10.0, forked-0.2, expect-1.1.0, cov-2.5.1, capturelog-0.7, hypothesis-3.59.1, case-1.5.3, backports.unittest-mock-1.4 >collected 0 items > >=============================== warnings summary =============================== ><undetermined location> > pytest-capturelog plugin has been merged into the core, please remove it from your requirements. > >-- Docs: http://doc.pytest.org/en/latest/warnings.html >========================== 1 warnings in 0.01 seconds ========================== >__________________ test_can_access_fixture_from_nested_scope ___________________ > >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-describe-0.11.1/temp/pytest-of-portage/pytest-0/test_can_access_fixture_from_nested_scope0')> > > def test_can_access_fixture_from_nested_scope(testdir): > a_dir = testdir.mkpydir('a_dir') > a_dir.join('test_a.py').write(py.code.Source(""" > import pytest > > def describe_something(): > @pytest.fixture > def thing(): > return 42 > > def describe_a_nested_scope(): > def thing_is_42(thing): > assert thing == 42 > """)) > > result = testdir.runpytest() >> assert_outcomes(result, passed=1) > >../../../../work/pytest-describe-0.11.1/test/test_fixtures.py:41: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >result = <_pytest.pytester.RunResult object at 0x7f3d688b76d0> >expected = {'passed': 1}, o = {'warnings': 1} > > def assert_outcomes(result, **expected): > o = result.parseoutcomes() > del o['seconds'] > > try: > del o['pytest-warnings'] > except KeyError: > pass > >> assert o == expected >E AssertionError > >../../../../work/pytest-describe-0.11.1/test/util.py:10: AssertionError >----------------------------- Captured stdout call ----------------------------- >============================= test session starts ============================== >platform linux2 -- Python 2.7.15, pytest-3.6.3, py-1.5.3, pluggy-0.6.0 >rootdir: /var/tmp/portage/dev-python/pytest-describe-0.11.1/temp/pytest-of-portage/pytest-0/test_can_access_fixture_from_nested_scope0, inifile: >plugins: xdist-1.15.0, mock-1.10.0, forked-0.2, expect-1.1.0, cov-2.5.1, capturelog-0.7, hypothesis-3.59.1, case-1.5.3, backports.unittest-mock-1.4 >collected 0 items > >=============================== warnings summary =============================== ><undetermined location> > pytest-capturelog plugin has been merged into the core, please remove it from your requirements. > >-- Docs: http://doc.pytest.org/en/latest/warnings.html >========================== 1 warnings in 0.01 seconds ========================== >_________________________ test_local_fixture_overrides _________________________ > >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-describe-0.11.1/temp/pytest-of-portage/pytest-0/test_local_fixture_overrides0')> > > def test_local_fixture_overrides(testdir): > a_dir = testdir.mkpydir('a_dir') > a_dir.join('test_a.py').write(py.code.Source(""" > import pytest > > @pytest.fixture > def thing(): > return 12 > > def describe_something(): > def describe_a_nested_scope(): > @pytest.fixture > def thing(): > return 42 > > def thing_is_42(thing): > assert thing == 42 > > def thing_is_12(thing): > assert thing == 12 > """)) > > result = testdir.runpytest() >> assert_outcomes(result, passed=2) > >../../../../work/pytest-describe-0.11.1/test/test_fixtures.py:67: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >result = <_pytest.pytester.RunResult object at 0x7f3d6889b150> >expected = {'passed': 2}, o = {'warnings': 1} > > def assert_outcomes(result, **expected): > o = result.parseoutcomes() > del o['seconds'] > > try: > del o['pytest-warnings'] > except KeyError: > pass > >> assert o == expected >E AssertionError > >../../../../work/pytest-describe-0.11.1/test/util.py:10: AssertionError >----------------------------- Captured stdout call ----------------------------- >============================= test session starts ============================== >platform linux2 -- Python 2.7.15, pytest-3.6.3, py-1.5.3, pluggy-0.6.0 >rootdir: /var/tmp/portage/dev-python/pytest-describe-0.11.1/temp/pytest-of-portage/pytest-0/test_local_fixture_overrides0, inifile: >plugins: xdist-1.15.0, mock-1.10.0, forked-0.2, expect-1.1.0, cov-2.5.1, capturelog-0.7, hypothesis-3.59.1, case-1.5.3, backports.unittest-mock-1.4 >collected 0 items > >=============================== warnings summary =============================== ><undetermined location> > pytest-capturelog plugin has been merged into the core, please remove it from your requirements. > >-- Docs: http://doc.pytest.org/en/latest/warnings.html >========================== 1 warnings in 0.01 seconds ========================== >______________________________ test_special_marks ______________________________ > >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-describe-0.11.1/temp/pytest-of-portage/pytest-0/test_special_marks0')> > > def test_special_marks(testdir): > a_dir = testdir.mkpydir('a_dir') > a_dir.join('test_a.py').write(py.code.Source(""" > import pytest > > def describe_marks(): > @pytest.mark.xfail > def xfails(): > assert False > > @pytest.mark.xfail > def xpasses(): > pass > > @pytest.mark.skipif("0 < 1") > def skipped(): > pass > > @pytest.mark.parametrize('foo', (1, 2, 3)) > def isint(foo): > assert foo == int(foo) > """)) > > result = testdir.runpytest() >> assert_outcomes(result, passed=3, xfailed=1, xpassed=1, skipped=1) > >../../../../work/pytest-describe-0.11.1/test/test_marks.py:31: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >result = <_pytest.pytester.RunResult object at 0x7f3d6881c2d0> >expected = {'passed': 3, 'skipped': 1, 'xfailed': 1, 'xpassed': 1} >o = {'warnings': 1} > > def assert_outcomes(result, **expected): > o = result.parseoutcomes() > del o['seconds'] > > try: > del o['pytest-warnings'] > except KeyError: > pass > >> assert o == expected >E AssertionError > >../../../../work/pytest-describe-0.11.1/test/util.py:10: AssertionError >----------------------------- Captured stdout call ----------------------------- >============================= test session starts ============================== >platform linux2 -- Python 2.7.15, pytest-3.6.3, py-1.5.3, pluggy-0.6.0 >rootdir: /var/tmp/portage/dev-python/pytest-describe-0.11.1/temp/pytest-of-portage/pytest-0/test_special_marks0, inifile: >plugins: xdist-1.15.0, mock-1.10.0, forked-0.2, expect-1.1.0, cov-2.5.1, capturelog-0.7, hypothesis-3.59.1, case-1.5.3, backports.unittest-mock-1.4 >collected 0 items > >=============================== warnings summary =============================== ><undetermined location> > pytest-capturelog plugin has been merged into the core, please remove it from your requirements. > >-- Docs: http://doc.pytest.org/en/latest/warnings.html >========================== 1 warnings in 0.01 seconds ========================== >________________________________ test_keywords _________________________________ > >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-describe-0.11.1/temp/pytest-of-portage/pytest-0/test_keywords0')> > > def test_keywords(testdir): > a_dir = testdir.mkpydir('a_dir') > a_dir.join('test_a.py').write(py.code.Source(""" > import pytest > def describe_a(): > @pytest.mark.foo > def foo_test(): > pass > @pytest.mark.bar > def bar_test(): > pass > """)) > > result = testdir.runpytest('-k', 'foo') >> assert_outcomes(result, passed=1, deselected=1) > >../../../../work/pytest-describe-0.11.1/test/test_marks.py:48: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >result = <_pytest.pytester.RunResult object at 0x7f3d687812d0> >expected = {'deselected': 1, 'passed': 1}, o = {'warnings': 1} > > def assert_outcomes(result, **expected): > o = result.parseoutcomes() > del o['seconds'] > > try: > del o['pytest-warnings'] > except KeyError: > pass > >> assert o == expected >E AssertionError > >../../../../work/pytest-describe-0.11.1/test/util.py:10: AssertionError >----------------------------- Captured stdout call ----------------------------- >============================= test session starts ============================== >platform linux2 -- Python 2.7.15, pytest-3.6.3, py-1.5.3, pluggy-0.6.0 >rootdir: /var/tmp/portage/dev-python/pytest-describe-0.11.1/temp/pytest-of-portage/pytest-0/test_keywords0, inifile: >plugins: xdist-1.15.0, mock-1.10.0, forked-0.2, expect-1.1.0, cov-2.5.1, capturelog-0.7, hypothesis-3.59.1, case-1.5.3, backports.unittest-mock-1.4 >collected 0 items > >=============================== warnings summary =============================== ><undetermined location> > pytest-capturelog plugin has been merged into the core, please remove it from your requirements. > >-- Docs: http://doc.pytest.org/en/latest/warnings.html >========================== 1 warnings in 0.01 seconds ========================== >______________________________ test_module_marks _______________________________ > >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-describe-0.11.1/temp/pytest-of-portage/pytest-0/test_module_marks0')> > > def test_module_marks(testdir): > a_dir = testdir.mkpydir('a_dir') > a_dir.join('test_a.py').write(py.code.Source(""" > import pytest > pytestmark = [ pytest.mark.foo ] > def describe_a(): > pytestmark = [ pytest.mark.bar ] > def describe_b(): > def a_test(): > pass > """)) > > result = testdir.runpytest('-k', 'foo') >> assert_outcomes(result, passed=1) > >../../../../work/pytest-describe-0.11.1/test/test_marks.py:64: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >result = <_pytest.pytester.RunResult object at 0x7f3d686eea10> >expected = {'passed': 1}, o = {'warnings': 1} > > def assert_outcomes(result, **expected): > o = result.parseoutcomes() > del o['seconds'] > > try: > del o['pytest-warnings'] > except KeyError: > pass > >> assert o == expected >E AssertionError > >../../../../work/pytest-describe-0.11.1/test/util.py:10: AssertionError >----------------------------- Captured stdout call ----------------------------- >============================= test session starts ============================== >platform linux2 -- Python 2.7.15, pytest-3.6.3, py-1.5.3, pluggy-0.6.0 >rootdir: /var/tmp/portage/dev-python/pytest-describe-0.11.1/temp/pytest-of-portage/pytest-0/test_module_marks0, inifile: >plugins: xdist-1.15.0, mock-1.10.0, forked-0.2, expect-1.1.0, cov-2.5.1, capturelog-0.7, hypothesis-3.59.1, case-1.5.3, backports.unittest-mock-1.4 >collected 0 items > >=============================== warnings summary =============================== ><undetermined location> > pytest-capturelog plugin has been merged into the core, please remove it from your requirements. > >-- Docs: http://doc.pytest.org/en/latest/warnings.html >========================== 1 warnings in 0.01 seconds ========================== >________________________ test_mark_at_describe_function ________________________ > >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-describe-0.11.1/temp/pytest-of-portage/pytest-0/test_mark_at_describe_function0')> > > def test_mark_at_describe_function(testdir): > a_dir = testdir.mkpydir('a_dir') > a_dir.join('test_a.py').write(py.code.Source(""" > import pytest > @pytest.mark.foo > def describe_foo(): > def describe_a(): > def a_test(): > pass > @pytest.mark.bar > def b_test(): > pass > """)) > > result = testdir.runpytest('-k', 'foo') >> assert_outcomes(result, passed=2) > >../../../../work/pytest-describe-0.11.1/test/test_marks.py:82: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >result = <_pytest.pytester.RunResult object at 0x7f3d686a8c50> >expected = {'passed': 2}, o = {'warnings': 1} > > def assert_outcomes(result, **expected): > o = result.parseoutcomes() > del o['seconds'] > > try: > del o['pytest-warnings'] > except KeyError: > pass > >> assert o == expected >E AssertionError > >../../../../work/pytest-describe-0.11.1/test/util.py:10: AssertionError >----------------------------- Captured stdout call ----------------------------- >============================= test session starts ============================== >platform linux2 -- Python 2.7.15, pytest-3.6.3, py-1.5.3, pluggy-0.6.0 >rootdir: /var/tmp/portage/dev-python/pytest-describe-0.11.1/temp/pytest-of-portage/pytest-0/test_mark_at_describe_function0, inifile: >plugins: xdist-1.15.0, mock-1.10.0, forked-0.2, expect-1.1.0, cov-2.5.1, capturelog-0.7, hypothesis-3.59.1, case-1.5.3, backports.unittest-mock-1.4 >collected 0 items > >=============================== warnings summary =============================== ><undetermined location> > pytest-capturelog plugin has been merged into the core, please remove it from your requirements. > >-- Docs: http://doc.pytest.org/en/latest/warnings.html >========================== 1 warnings in 0.01 seconds ========================== >_____________________________ test_verbose_output ______________________________ > >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-describe-0.11.1/temp/pytest-of-portage/pytest-0/test_verbose_output0')> > > def test_verbose_output(testdir): > a_dir = testdir.mkpydir('a_dir') > a_dir.join('test_a.py').write(py.code.Source(""" > def describe_something(): > def describe_nested_ok(): > def passes(): > assert True > def describe_nested_bad(): > def fails(): > assert False > """)) > > result = testdir.runpytest('-v') > expected = [ > 'a_dir/test_a.py::describe_something::describe_nested_bad::fails FAILED', > 'a_dir/test_a.py::describe_something::describe_nested_ok::passes PASSED', > ] > for line in expected: >> assert any(l for l in result.outlines if l.startswith(line)) >E assert False >E + where False = any(<generator object <genexpr> at 0x7f3d685acd20>) > >../../../../work/pytest-describe-0.11.1/test/test_output.py:24: AssertionError >----------------------------- Captured stdout call ----------------------------- >============================= test session starts ============================== >platform linux2 -- Python 2.7.15, pytest-3.6.3, py-1.5.3, pluggy-0.6.0 -- /usr/bin/python2.7 >cachedir: .pytest_cache >rootdir: /var/tmp/portage/dev-python/pytest-describe-0.11.1/temp/pytest-of-portage/pytest-0/test_verbose_output0, inifile: >plugins: xdist-1.15.0, mock-1.10.0, forked-0.2, expect-1.1.0, cov-2.5.1, capturelog-0.7, hypothesis-3.59.1, case-1.5.3, backports.unittest-mock-1.4 >collecting ... collected 0 items > >=============================== warnings summary =============================== ><undetermined location> > pytest-capturelog plugin has been merged into the core, please remove it from your requirements. > >-- Docs: http://doc.pytest.org/en/latest/warnings.html >========================== 1 warnings in 0.01 seconds ========================== >_____________________________ test_shared_behavior _____________________________ > >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-describe-0.11.1/temp/pytest-of-portage/pytest-0/test_shared_behavior0')> > > def test_shared_behavior(testdir): > a_dir = testdir.mkpydir('a_dir') > a_dir.join('test_something.py').write(py.code.Source(""" > from pytest import fixture > from pytest_describe import behaves_like > > def a_duck(): > def it_quacks(sound): > assert sound == "quack" > > @behaves_like(a_duck) > def describe_something_that_quacks(): > @fixture > def sound(): > return "quack" > > @behaves_like(a_duck) > def describe_something_that_barks(): > @fixture > def sound(): > return "bark" > """)) > > result = testdir.runpytest() >> assert_outcomes(result, failed=1, passed=1) > >../../../../work/pytest-describe-0.11.1/test/test_shared.py:31: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >result = <_pytest.pytester.RunResult object at 0x7f3d685c98d0> >expected = {'failed': 1, 'passed': 1}, o = {'warnings': 1} > > def assert_outcomes(result, **expected): > o = result.parseoutcomes() > del o['seconds'] > > try: > del o['pytest-warnings'] > except KeyError: > pass > >> assert o == expected >E AssertionError > >../../../../work/pytest-describe-0.11.1/test/util.py:10: AssertionError >----------------------------- Captured stdout call ----------------------------- >============================= test session starts ============================== >platform linux2 -- Python 2.7.15, pytest-3.6.3, py-1.5.3, pluggy-0.6.0 >rootdir: /var/tmp/portage/dev-python/pytest-describe-0.11.1/temp/pytest-of-portage/pytest-0/test_shared_behavior0, inifile: >plugins: xdist-1.15.0, mock-1.10.0, forked-0.2, expect-1.1.0, cov-2.5.1, capturelog-0.7, hypothesis-3.59.1, case-1.5.3, backports.unittest-mock-1.4 >collected 0 items > >=============================== warnings summary =============================== ><undetermined location> > pytest-capturelog plugin has been merged into the core, please remove it from your requirements. > >-- Docs: http://doc.pytest.org/en/latest/warnings.html >========================== 1 warnings in 0.01 seconds ========================== >________________________ test_multiple_shared_behaviors ________________________ > >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-describe-0.11.1/temp/pytest-of-portage/pytest-0/test_multiple_shared_behaviors0')> > > def test_multiple_shared_behaviors(testdir): > a_dir = testdir.mkpydir('a_dir') > a_dir.join('test_something.py').write(py.code.Source(""" > from pytest import fixture > from pytest_describe import behaves_like > > def a_duck(): > def it_quacks(sound): > assert sound == "quack" > > def a_bird(): > def it_flies(medium): > assert medium == "air" > > def describe_birds(): > @fixture > def medium(): > return "air" > > @behaves_like(a_duck, a_bird) > def describe_something_that_quacks(): > @fixture > def sound(): > return "quack" > > @behaves_like(a_duck, a_bird) > def describe_something_that_barks(): > @fixture > def sound(): > return "bark" > """)) > > result = testdir.runpytest() >> assert_outcomes(result, failed=1, passed=3) > >../../../../work/pytest-describe-0.11.1/test/test_shared.py:67: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >result = <_pytest.pytester.RunResult object at 0x7f3d6866c910> >expected = {'failed': 1, 'passed': 3}, o = {'warnings': 1} > > def assert_outcomes(result, **expected): > o = result.parseoutcomes() > del o['seconds'] > > try: > del o['pytest-warnings'] > except KeyError: > pass > >> assert o == expected >E AssertionError > >../../../../work/pytest-describe-0.11.1/test/util.py:10: AssertionError >----------------------------- Captured stdout call ----------------------------- >============================= test session starts ============================== >platform linux2 -- Python 2.7.15, pytest-3.6.3, py-1.5.3, pluggy-0.6.0 >rootdir: /var/tmp/portage/dev-python/pytest-describe-0.11.1/temp/pytest-of-portage/pytest-0/test_multiple_shared_behaviors0, inifile: >plugins: xdist-1.15.0, mock-1.10.0, forked-0.2, expect-1.1.0, cov-2.5.1, capturelog-0.7, hypothesis-3.59.1, case-1.5.3, backports.unittest-mock-1.4 >collected 0 items > >=============================== warnings summary =============================== ><undetermined location> > pytest-capturelog plugin has been merged into the core, please remove it from your requirements. > >-- Docs: http://doc.pytest.org/en/latest/warnings.html >========================== 1 warnings in 0.01 seconds ========================== >_________________________________ test_fixture _________________________________ > >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-describe-0.11.1/temp/pytest-of-portage/pytest-0/test_fixture0')> > > def test_fixture(testdir): > a_dir = testdir.mkpydir('a_dir') > a_dir.join('test_something.py').write(py.code.Source(""" > from pytest import fixture > from pytest_describe import behaves_like > > def a_duck(): > @fixture > def sound(): > return "quack" > > def it_quacks(sound): > assert sound == "quack" > > @behaves_like(a_duck) > def describe_a_normal_duck(): > pass > """)) > > result = testdir.runpytest('-v') >> assert_outcomes(result, passed=1) > >../../../../work/pytest-describe-0.11.1/test/test_shared.py:90: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >result = <_pytest.pytester.RunResult object at 0x7f3d6854c610> >expected = {'passed': 1}, o = {'warnings': 1} > > def assert_outcomes(result, **expected): > o = result.parseoutcomes() > del o['seconds'] > > try: > del o['pytest-warnings'] > except KeyError: > pass > >> assert o == expected >E AssertionError > >../../../../work/pytest-describe-0.11.1/test/util.py:10: AssertionError >----------------------------- Captured stdout call ----------------------------- >============================= test session starts ============================== >platform linux2 -- Python 2.7.15, pytest-3.6.3, py-1.5.3, pluggy-0.6.0 -- /usr/bin/python2.7 >cachedir: .pytest_cache >rootdir: /var/tmp/portage/dev-python/pytest-describe-0.11.1/temp/pytest-of-portage/pytest-0/test_fixture0, inifile: >plugins: xdist-1.15.0, mock-1.10.0, forked-0.2, expect-1.1.0, cov-2.5.1, capturelog-0.7, hypothesis-3.59.1, case-1.5.3, backports.unittest-mock-1.4 >collecting ... collected 0 items > >=============================== warnings summary =============================== ><undetermined location> > pytest-capturelog plugin has been merged into the core, please remove it from your requirements. > >-- Docs: http://doc.pytest.org/en/latest/warnings.html >========================== 1 warnings in 0.01 seconds ========================== >____________________________ test_override_fixture _____________________________ > >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-describe-0.11.1/temp/pytest-of-portage/pytest-0/test_override_fixture0')> > > def test_override_fixture(testdir): > a_dir = testdir.mkpydir('a_dir') > a_dir.join('test_something.py').write(py.code.Source(""" > from pytest import fixture > from pytest_describe import behaves_like > > def a_duck(): > @fixture > def sound(): > return "quack" > > def it_quacks(sound): > assert sound == "quack" > > @behaves_like(a_duck) > def describe_something_that_barks(): > @fixture > def sound(): > return "bark" > """)) > > result = testdir.runpytest('-v') >> assert_outcomes(result, failed=1) > >../../../../work/pytest-describe-0.11.1/test/test_shared.py:115: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >result = <_pytest.pytester.RunResult object at 0x7f3d684aa8d0> >expected = {'failed': 1}, o = {'warnings': 1} > > def assert_outcomes(result, **expected): > o = result.parseoutcomes() > del o['seconds'] > > try: > del o['pytest-warnings'] > except KeyError: > pass > >> assert o == expected >E AssertionError > >../../../../work/pytest-describe-0.11.1/test/util.py:10: AssertionError >----------------------------- Captured stdout call ----------------------------- >============================= test session starts ============================== >platform linux2 -- Python 2.7.15, pytest-3.6.3, py-1.5.3, pluggy-0.6.0 -- /usr/bin/python2.7 >cachedir: .pytest_cache >rootdir: /var/tmp/portage/dev-python/pytest-describe-0.11.1/temp/pytest-of-portage/pytest-0/test_override_fixture0, inifile: >plugins: xdist-1.15.0, mock-1.10.0, forked-0.2, expect-1.1.0, cov-2.5.1, capturelog-0.7, hypothesis-3.59.1, case-1.5.3, backports.unittest-mock-1.4 >collecting ... collected 0 items > >=============================== warnings summary =============================== ><undetermined location> > pytest-capturelog plugin has been merged into the core, please remove it from your requirements. > >-- Docs: http://doc.pytest.org/en/latest/warnings.html >========================== 1 warnings in 0.01 seconds ========================== >______________________________ test_name_mangling ______________________________ > >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-describe-0.11.1/temp/pytest-of-portage/pytest-0/test_name_mangling0')> > > def test_name_mangling(testdir): > a_dir = testdir.mkpydir('a_dir') > a_dir.join('test_something.py').write(py.code.Source(""" > from pytest import fixture > from pytest_describe import behaves_like > > def thing(): > foo = 42 > def it_does_something(): > assert foo == 42 > > @behaves_like(thing) > def describe_something(): > foo = 4242 > def it_does_something(): > assert foo == 4242 > """)) > > result = testdir.runpytest('-v') >> assert_outcomes(result, passed=2) > >../../../../work/pytest-describe-0.11.1/test/test_shared.py:137: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >result = <_pytest.pytester.RunResult object at 0x7f3d684276d0> >expected = {'passed': 2}, o = {'warnings': 1} > > def assert_outcomes(result, **expected): > o = result.parseoutcomes() > del o['seconds'] > > try: > del o['pytest-warnings'] > except KeyError: > pass > >> assert o == expected >E AssertionError > >../../../../work/pytest-describe-0.11.1/test/util.py:10: AssertionError >----------------------------- Captured stdout call ----------------------------- >============================= test session starts ============================== >platform linux2 -- Python 2.7.15, pytest-3.6.3, py-1.5.3, pluggy-0.6.0 -- /usr/bin/python2.7 >cachedir: .pytest_cache >rootdir: /var/tmp/portage/dev-python/pytest-describe-0.11.1/temp/pytest-of-portage/pytest-0/test_name_mangling0, inifile: >plugins: xdist-1.15.0, mock-1.10.0, forked-0.2, expect-1.1.0, cov-2.5.1, capturelog-0.7, hypothesis-3.59.1, case-1.5.3, backports.unittest-mock-1.4 >collecting ... collected 0 items > >=============================== warnings summary =============================== ><undetermined location> > pytest-capturelog plugin has been merged into the core, please remove it from your requirements. > >-- Docs: http://doc.pytest.org/en/latest/warnings.html >========================== 1 warnings in 0.01 seconds ========================== >__________________________ test_nested_name_mangling ___________________________ > >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-describe-0.11.1/temp/pytest-of-portage/pytest-0/test_nested_name_mangling0')> > > def test_nested_name_mangling(testdir): > a_dir = testdir.mkpydir('a_dir') > a_dir.join('test_something.py').write(py.code.Source(""" > from pytest import fixture > from pytest_describe import behaves_like > > def thing(): > def it_does_something(): > pass > def describe_thing(): > def it_does_something(): > pass > def describe_thing(): > def it_does_something(): > pass > > @behaves_like(thing) > def describe_thing(): > def it_does_something(): > pass > def describe_thing(): > def it_does_something(): > pass > """)) > > result = testdir.runpytest('-v') >> assert_outcomes(result, passed=5) > >../../../../work/pytest-describe-0.11.1/test/test_shared.py:166: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >result = <_pytest.pytester.RunResult object at 0x7f3d68593dd0> >expected = {'passed': 5}, o = {'warnings': 1} > > def assert_outcomes(result, **expected): > o = result.parseoutcomes() > del o['seconds'] > > try: > del o['pytest-warnings'] > except KeyError: > pass > >> assert o == expected >E AssertionError > >../../../../work/pytest-describe-0.11.1/test/util.py:10: AssertionError >----------------------------- Captured stdout call ----------------------------- >============================= test session starts ============================== >platform linux2 -- Python 2.7.15, pytest-3.6.3, py-1.5.3, pluggy-0.6.0 -- /usr/bin/python2.7 >cachedir: .pytest_cache >rootdir: /var/tmp/portage/dev-python/pytest-describe-0.11.1/temp/pytest-of-portage/pytest-0/test_nested_name_mangling0, inifile: >plugins: xdist-1.15.0, mock-1.10.0, forked-0.2, expect-1.1.0, cov-2.5.1, capturelog-0.7, hypothesis-3.59.1, case-1.5.3, backports.unittest-mock-1.4 >collecting ... collected 0 items > >=============================== warnings summary =============================== ><undetermined location> > pytest-capturelog plugin has been merged into the core, please remove it from your requirements. > >-- Docs: http://doc.pytest.org/en/latest/warnings.html >========================== 1 warnings in 0.01 seconds ========================== >_____________________________ test_evaluated_once ______________________________ > >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-describe-0.11.1/temp/pytest-of-portage/pytest-0/test_evaluated_once0')> > > def test_evaluated_once(testdir): > a_dir = testdir.mkpydir('a_dir') > a_dir.join('test_something.py').write(py.code.Source(""" > from pytest import fixture > from pytest_describe import behaves_like > > count = 0 > def thing(): > global count > count += 1 > def is_evaluated_once(): > assert count == 1 > > @behaves_like(thing) > def describe_something(): > pass > @behaves_like(thing) > def describe_something_else(): > pass > """)) > > result = testdir.runpytest('-v') >> assert_outcomes(result, passed=2) > >../../../../work/pytest-describe-0.11.1/test/test_shared.py:191: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >result = <_pytest.pytester.RunResult object at 0x7f3d686e58d0> >expected = {'passed': 2}, o = {'warnings': 1} > > def assert_outcomes(result, **expected): > o = result.parseoutcomes() > del o['seconds'] > > try: > del o['pytest-warnings'] > except KeyError: > pass > >> assert o == expected >E AssertionError > >../../../../work/pytest-describe-0.11.1/test/util.py:10: AssertionError >----------------------------- Captured stdout call ----------------------------- >============================= test session starts ============================== >platform linux2 -- Python 2.7.15, pytest-3.6.3, py-1.5.3, pluggy-0.6.0 -- /usr/bin/python2.7 >cachedir: .pytest_cache >rootdir: /var/tmp/portage/dev-python/pytest-describe-0.11.1/temp/pytest-of-portage/pytest-0/test_evaluated_once0, inifile: >plugins: xdist-1.15.0, mock-1.10.0, forked-0.2, expect-1.1.0, cov-2.5.1, capturelog-0.7, hypothesis-3.59.1, case-1.5.3, backports.unittest-mock-1.4 >collecting ... collected 0 items > >=============================== warnings summary =============================== ><undetermined location> > pytest-capturelog plugin has been merged into the core, please remove it from your requirements. > >-- Docs: http://doc.pytest.org/en/latest/warnings.html >========================== 1 warnings in 0.01 seconds ========================== >________________________________ test_can_pass _________________________________ > >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-describe-0.11.1/temp/pytest-of-portage/pytest-0/test_can_pass0')> > > def test_can_pass(testdir): > a_dir = testdir.mkpydir('a_dir') > a_dir.join('test_a.py').write(py.code.Source(""" > def describe_something(): > def passes(): > assert True > def describe_nested(): > def passes_too(): > assert True > """)) > > result = testdir.runpytest() >> assert_outcomes(result, passed=2) > >../../../../work/pytest-describe-0.11.1/test/test_simple_execution.py:19: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >result = <_pytest.pytester.RunResult object at 0x7f3d68811590> >expected = {'passed': 2}, o = {'warnings': 1} > > def assert_outcomes(result, **expected): > o = result.parseoutcomes() > del o['seconds'] > > try: > del o['pytest-warnings'] > except KeyError: > pass > >> assert o == expected >E AssertionError > >../../../../work/pytest-describe-0.11.1/test/util.py:10: AssertionError >----------------------------- Captured stdout call ----------------------------- >============================= test session starts ============================== >platform linux2 -- Python 2.7.15, pytest-3.6.3, py-1.5.3, pluggy-0.6.0 >rootdir: /var/tmp/portage/dev-python/pytest-describe-0.11.1/temp/pytest-of-portage/pytest-0/test_can_pass0, inifile: >plugins: xdist-1.15.0, mock-1.10.0, forked-0.2, expect-1.1.0, cov-2.5.1, capturelog-0.7, hypothesis-3.59.1, case-1.5.3, backports.unittest-mock-1.4 >collected 0 items > >=============================== warnings summary =============================== ><undetermined location> > pytest-capturelog plugin has been merged into the core, please remove it from your requirements. > >-- Docs: http://doc.pytest.org/en/latest/warnings.html >========================== 1 warnings in 0.01 seconds ========================== >________________________________ test_can_fail _________________________________ > >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-describe-0.11.1/temp/pytest-of-portage/pytest-0/test_can_fail0')> > > def test_can_fail(testdir): > a_dir = testdir.mkpydir('a_dir') > a_dir.join('test_a.py').write(py.code.Source(""" > def describe_something(): > def fails(): > assert False > def describe_nested(): > def fails_too(): > assert False > """)) > > result = testdir.runpytest() >> assert_outcomes(result, failed=2) > >../../../../work/pytest-describe-0.11.1/test/test_simple_execution.py:34: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >result = <_pytest.pytester.RunResult object at 0x7f3d6888e7d0> >expected = {'failed': 2}, o = {'warnings': 1} > > def assert_outcomes(result, **expected): > o = result.parseoutcomes() > del o['seconds'] > > try: > del o['pytest-warnings'] > except KeyError: > pass > >> assert o == expected >E AssertionError > >../../../../work/pytest-describe-0.11.1/test/util.py:10: AssertionError >----------------------------- Captured stdout call ----------------------------- >============================= test session starts ============================== >platform linux2 -- Python 2.7.15, pytest-3.6.3, py-1.5.3, pluggy-0.6.0 >rootdir: /var/tmp/portage/dev-python/pytest-describe-0.11.1/temp/pytest-of-portage/pytest-0/test_can_fail0, inifile: >plugins: xdist-1.15.0, mock-1.10.0, forked-0.2, expect-1.1.0, cov-2.5.1, capturelog-0.7, hypothesis-3.59.1, case-1.5.3, backports.unittest-mock-1.4 >collected 0 items > >=============================== warnings summary =============================== ><undetermined location> > pytest-capturelog plugin has been merged into the core, please remove it from your requirements. > >-- Docs: http://doc.pytest.org/en/latest/warnings.html >========================== 1 warnings in 0.01 seconds ========================== >____________________________ test_can_fail_and_pass ____________________________ > >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-describe-0.11.1/temp/pytest-of-portage/pytest-0/test_can_fail_and_pass0')> > > def test_can_fail_and_pass(testdir): > a_dir = testdir.mkpydir('a_dir') > a_dir.join('test_a.py').write(py.code.Source(""" > def describe_something(): > def describe_nested_ok(): > def passes(): > assert True > def describe_nested_bad(): > def fails(): > assert False > """)) > > result = testdir.runpytest() >> assert_outcomes(result, passed=1, failed=1) > >../../../../work/pytest-describe-0.11.1/test/test_simple_execution.py:50: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >result = <_pytest.pytester.RunResult object at 0x7f3d68a79c10> >expected = {'failed': 1, 'passed': 1}, o = {'warnings': 1} > > def assert_outcomes(result, **expected): > o = result.parseoutcomes() > del o['seconds'] > > try: > del o['pytest-warnings'] > except KeyError: > pass > >> assert o == expected >E AssertionError > >../../../../work/pytest-describe-0.11.1/test/util.py:10: AssertionError >----------------------------- Captured stdout call ----------------------------- >============================= test session starts ============================== >platform linux2 -- Python 2.7.15, pytest-3.6.3, py-1.5.3, pluggy-0.6.0 >rootdir: /var/tmp/portage/dev-python/pytest-describe-0.11.1/temp/pytest-of-portage/pytest-0/test_can_fail_and_pass0, inifile: >plugins: xdist-1.15.0, mock-1.10.0, forked-0.2, expect-1.1.0, cov-2.5.1, capturelog-0.7, hypothesis-3.59.1, case-1.5.3, backports.unittest-mock-1.4 >collected 0 items > >=============================== warnings summary =============================== ><undetermined location> > pytest-capturelog plugin has been merged into the core, please remove it from your requirements. > >-- Docs: http://doc.pytest.org/en/latest/warnings.html >========================== 1 warnings in 0.01 seconds ========================== >=============================== warnings summary =============================== ><undetermined location> > pytest-capturelog plugin has been merged into the core, please remove it from your requirements. > >-- Docs: http://doc.pytest.org/en/latest/warnings.html >==================== 21 failed, 1 warnings in 2.85 seconds ===================== > * ERROR: dev-python/pytest-describe-0.11.1::gentoo failed (test phase): > * Tests failed under python2.7 > * > * Call stack: > * ebuild.sh, line 124: Called src_test > * environment, line 2745: Called distutils-r1_src_test > * environment, line 997: Called _distutils-r1_run_foreach_impl 'python_test' > * environment, line 448: Called python_foreach_impl 'distutils-r1_run_phase' 'python_test' > * environment, line 2278: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' > * environment, line 1651: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' > * environment, line 1649: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_test' > * environment, line 660: Called distutils-r1_run_phase 'python_test' > * environment, line 928: Called python_test > * environment, line 2647: Called die > * The specific snippet of code: > * PYTEST_ADDOPTS="-p no:flaky" pytest -vv || die "Tests failed under ${EPYTHON}" > * > * If you need support, post the output of `emerge --info '=dev-python/pytest-describe-0.11.1::gentoo'`, > * the complete build log and the output of `emerge -pqv '=dev-python/pytest-describe-0.11.1::gentoo'`. > * The complete build log is located at '/var/log/portage/dev-python:pytest-describe-0.11.1:20180805-050633.log'. > * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-python/pytest-describe-0.11.1/temp/build.log'. > * The ebuild environment file is located at '/var/tmp/portage/dev-python/pytest-describe-0.11.1/temp/environment'. > * Working directory: '/var/tmp/portage/dev-python/pytest-describe-0.11.1/work/pytest-describe-0.11.1' > * S: '/var/tmp/portage/dev-python/pytest-describe-0.11.1/work/pytest-describe-0.11.1'
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 662820
:
542420
| 542422 |
542424
|
542426
|
542428
|
542430