Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Many failures with tox -e py34 on Windows #1115

Closed
The-Compiler opened this issue Oct 6, 2015 · 12 comments
Closed

Many failures with tox -e py34 on Windows #1115

The-Compiler opened this issue Oct 6, 2015 · 12 comments
Labels
platform: windows windows platform-specific problem plugin: cache related to the cache builtin plugin plugin: junitxml related to the junitxml builtin plugin

Comments

@The-Compiler
Copy link
Member

full log here: https://devpi.net/The-Compiler/dev/pytest/2.8.2/+toxresults/pytest-2.8.2.tar.gz/pytest-2.8.2.tar.gz.toxresult3#qemu-win8-win32-py34-test

actionid: py34
msg: runtests
cmdargs: [local('C:\\Users\\florian\\AppData\\Local\\Temp\\devpi-test0\\targz\\pytest-2.8.2\\.tox\\py34\\Scripts\\py.test.EXE'), '--lsof', '-rfsxX', 'testing']
env: {'TMP': 'C:\\Users\\florian\\AppData\\Local\\Temp', 'PYTHONHASHSEED': '583', 'PATH': 'C:\\Users\\florian\\AppData\\Local\\Temp\\devpi-test0\\targz\\pytest-2.8.2\\.tox\\py34\\Scripts;C:\\Users\\florian\\.venv\\Scripts;C:\\Python34_x32\\Lib\\site-packages\\PyQt5;C:\\Python34\\Lib\\site-packages\\PyQt5;C:\\Python34\\;C:\\Python34\\Scripts;C:\\asciidoc;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\Git\\cmd;C:\\asciidoc-8.6.9', 'TEMP': 'C:\\Users\\florian\\AppData\\Local\\Temp', 'PATHEXT': '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY', 'SYSTEMROOT': 'C:\\Windows', 'USERNAME': 'florian', 'SYSTEMDRIVE': 'C:', 'VIRTUAL_ENV': 'C:\\Users\\florian\\AppData\\Local\\Temp\\devpi-test0\\targz\\pytest-2.8.2\\.tox\\py34'}

============================= test session starts =============================
platform win32 -- Python 3.4.3, pytest-2.8.2, py-1.4.30, pluggy-0.3.1
rootdir: C:\Users\florian\AppData\Local\Temp\devpi-test0\targz\pytest-2.8.2, inifile: tox.ini
collected 1279 items

testing\acceptance_test.py ...............s..............................x.........
testing\test_argcomplete.py ss
testing\test_assertinterpret.py ...................ss......s
testing\test_assertion.py ................................................s
testing\test_assertrewrite.py .................................ssss........
testing\test_cache.py ...ss..FF......FF
testing\test_capture.py ...........x...................................s.........s...........s.........s..........
testing\test_collection.py ....F.......x.....FFFFFFFF.FF......
testing\test_config.py ........x....s...............FFFFs...........F.
testing\test_conftest.py ...............................................
testing\test_doctest.py ..................................
testing\test_genscript.py sFs.ss.
testing\test_helpconfig.py .......
testing\test_junitxml.py ..FFFF.F.FFFFFF................s
testing\test_mark.py ....................................x.................x.
testing\test_monkeypatch.py ..............................
testing\test_nose.py ...................
testing\test_parseopt.py .........................s
testing\test_pastebin.py ...
testing\test_pdb.py ....ssssssssssss.s
testing\test_pluginmanager.py ..........................
testing\test_pytester.py x......
testing\test_recwarn.py ...................
testing\test_resultlog.py ...........
testing\test_runner.py ..................sssssssssssssF......x..............
testing\test_runner_xunit.py .............
testing\test_session.py ................
testing\test_skipping.py ...s.............................................
testing\test_terminal.py ........F.s.......F..F..............s.......................................................
testing\test_tmpdir.py .....s...ss.
testing\test_unittest.py ...................ssssssss...........
testing\python\collect.py .......................................F...............
testing\python\fixture.py ..................................................................x.............................................................................
testing\python\integration.py .................
testing\python\metafunc.py ..........s..................................................x........
testing\python\raises.py .........

================================== FAILURES ===================================
___________________________ test_cache_reportheader ___________________________

testdir = <Testdir local('C:\\Users\\florian\\AppData\\Local\\Temp\\pytest-of-florian\\pytest-0\\testdir\\test_cache_reportheader0')>

    def test_cache_reportheader(testdir):
        testdir.makepyfile("""
            def test_hello():
                pass
        """)
        result = testdir.runpytest("-v")
        result.stdout.fnmatch_lines([
>           "cachedir: .cache"
        ])
E       Failed: remains unmatched: 'cachedir: .cache', see stderr

..\..\..\..\devpi-test0\targz\pytest-2.8.2\testing\test_cache.py:97: Failed
---------------------------- Captured stdout call -----------------------------
============================= test session starts =============================
platform win32 -- Python 3.4.3, pytest-2.8.2, py-1.4.30, pluggy-0.3.1 -- c:\users\florian\appdata\local\temp\devpi-test0\targz\pytest-2.8.2\.tox\py34\scripts\python.exe
cachedir: ..\..\..\..\..\..\..\.cache
rootdir: C:\Users\florian, inifile: 
collecting ... collected 1 items

test_cache_reportheader.py::test_hello PASSED

========================== 1 passed in 0.03 seconds ===========================
---------------------------- Captured stderr call -----------------------------
nomatch: 'cachedir: .cache'
    and: '============================= test session starts ============================='
    and: 'platform win32 -- Python 3.4.3, pytest-2.8.2, py-1.4.30, pluggy-0.3.1 -- c:\\users\\florian\\appdata\\local\\temp\\devpi-test0\\targz\\pytest-2.8.2\\.tox\\py34\\scripts\\python.exe'
    and: 'cachedir: ..\\..\\..\\..\\..\\..\\..\\.cache'
    and: 'rootdir: C:\\Users\\florian, inifile: '
    and: 'collecting ... collected 1 items'
    and: ''
    and: 'test_cache_reportheader.py::test_hello PASSED'
    and: ''
    and: '========================== 1 passed in 0.03 seconds ==========================='
    and: ''
_______________________________ test_cache_show _______________________________

testdir = <Testdir local('C:\\Users\\florian\\AppData\\Local\\Temp\\pytest-of-florian\\pytest-0\\testdir\\test_cache_show0')>

    def test_cache_show(testdir):
        result = testdir.runpytest("--cache-show")
        assert result.ret == 0
        result.stdout.fnmatch_lines([
>           "*cache is empty*"
        ])
E       Failed: remains unmatched: '*cache is empty*', see stderr

..\..\..\..\devpi-test0\targz\pytest-2.8.2\testing\test_cache.py:105: Failed
---------------------------- Captured stdout call -----------------------------
============================= test session starts =============================
platform win32 -- Python 3.4.3, pytest-2.8.2, py-1.4.30, pluggy-0.3.1
rootdir: C:\Users\florian, inifile: 
cachedir: C:\Users\florian\.cache
-------------------------------- cache values ---------------------------------
cache/lastfailed contains:
  {}
some/thing contains:
  [1]

==============================  in 0.02 seconds ===============================
---------------------------- Captured stderr call -----------------------------
nomatch: '*cache is empty*'
    and: '============================= test session starts ============================='
    and: 'platform win32 -- Python 3.4.3, pytest-2.8.2, py-1.4.30, pluggy-0.3.1'
    and: 'rootdir: C:\\Users\\florian, inifile: '
    and: 'cachedir: C:\\Users\\florian\\.cache'
    and: '-------------------------------- cache values ---------------------------------'
    and: 'cache/lastfailed contains:'
    and: '  {}'
    and: 'some/thing contains:'
    and: '  [1]'
    and: ''
    and: '==============================  in 0.02 seconds ==============================='
    and: ''
________________ TestLastFailed.test_lastfailed_collectfailure ________________

self = <test_cache.TestLastFailed object at 0x00000000047C84A8>
testdir = <Testdir local('C:\\Users\\florian\\AppData\\Local\\Temp\\pytest-of-florian\\pytest-0\\testdir\\test_lastfailed_collectfailure0')>
monkeypatch = <_pytest.monkeypatch.monkeypatch object at 0x00000000047C85C0>

    def test_lastfailed_collectfailure(self, testdir, monkeypatch):

        testdir.makepyfile(test_maybe="""
                import py
                env = py.std.os.environ
                if '1' == env['FAILIMPORT']:
                    raise ImportError('fail')
                def test_hello():
                    assert '0' == env['FAILTEST']
            """)

        def rlf(fail_import, fail_run):
            monkeypatch.setenv('FAILIMPORT', fail_import)
            monkeypatch.setenv('FAILTEST', fail_run)

            testdir.runpytest('-q')
            config = testdir.parseconfigure()
            lastfailed = config.cache.get("cache/lastfailed", -1)
            return lastfailed

        lastfailed = rlf(fail_import=0, fail_run=0)
        assert not lastfailed

        lastfailed = rlf(fail_import=1, fail_run=0)
>       assert list(lastfailed) == ['test_maybe.py']
E       assert ['AppData/Local/Temp/pytest-of-florian/pytest-0/testdir/test_lastfailed_collectfailure0/test_maybe.py'] == ['test_maybe.py']
E        +  where ['AppData/Local/Temp/pytest-of-florian/pytest-0/testdir/test_lastfailed_collectfailure0/test_maybe.py'] = list({'AppData/Local/Temp/pytest-of-florian/pytest-0/testdir/test_lastfailed_collectfailure0/test_maybe.py': True})

..\..\..\..\devpi-test0\targz\pytest-2.8.2\testing\test_cache.py:312: AssertionError
---------------------------- Captured stdout call -----------------------------
.
1 passed in 0.03 seconds

=================================== ERRORS ====================================
 ERROR collecting AppData/Local/Temp/pytest-of-florian/pytest-0/testdir/test_lastfailed_collectfailure0/test_maybe.py 
test_maybe.py:4: in <module>
    raise ImportError('fail')
E   ImportError: fail
1 error in 0.02 seconds
________________ TestLastFailed.test_lastfailed_failure_subset ________________

self = <test_cache.TestLastFailed object at 0x0000000004593518>
testdir = <Testdir local('C:\\Users\\florian\\AppData\\Local\\Temp\\pytest-of-florian\\pytest-0\\testdir\\test_lastfailed_failure_subset0')>
monkeypatch = <_pytest.monkeypatch.monkeypatch object at 0x0000000004174C18>

    def test_lastfailed_failure_subset(self, testdir, monkeypatch):

        testdir.makepyfile(test_maybe="""
                import py
                env = py.std.os.environ
                if '1' == env['FAILIMPORT']:
                    raise ImportError('fail')
                def test_hello():
                    assert '0' == env['FAILTEST']
            """)

        testdir.makepyfile(test_maybe2="""
                import py
                env = py.std.os.environ
                if '1' == env['FAILIMPORT']:
                    raise ImportError('fail')
                def test_hello():
                    assert '0' == env['FAILTEST']

                def test_pass():
                    pass
            """)

        def rlf(fail_import, fail_run, args=()):
            monkeypatch.setenv('FAILIMPORT', fail_import)
            monkeypatch.setenv('FAILTEST', fail_run)

            result = testdir.runpytest('-q', '--lf', *args)
            config = testdir.parseconfigure()
            lastfailed = config.cache.get("cache/lastfailed", -1)
            return result, lastfailed

        result, lastfailed = rlf(fail_import=0, fail_run=0)
>       assert not lastfailed
E       assert not {'AppData/Local/Temp/pytest-of-florian/pytest-0/testdir/test_lastfailed_collectfailure0/test_maybe.py': True}

..\..\..\..\devpi-test0\targz\pytest-2.8.2\testing\test_cache.py:351: AssertionError
---------------------------- Captured stdout call -----------------------------
...
3 passed in 0.06 seconds
_________________ TestCollector.test_getcustomfile_roundtrip __________________

self = <test_collection.TestCollector object at 0x0000000002F27CC0>
testdir = <Testdir local('C:\\Users\\florian\\AppData\\Local\\Temp\\pytest-of-florian\\pytest-0\\testdir\\test_getcustomfile_roundtrip0')>

    def test_getcustomfile_roundtrip(self, testdir):
        hello = testdir.makefile(".xxx", hello="world")
        testdir.makepyfile(conftest="""
                import pytest
                class CustomFile(pytest.File):
                    pass
                def pytest_collect_file(path, parent):
                    if path.ext == ".xxx":
                        return CustomFile(path, parent=parent)
            """)
>       node = testdir.getpathnode(hello)

..\..\..\..\devpi-test0\targz\pytest-2.8.2\testing\test_collection.py:81: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
..\..\..\..\devpi-test0\targz\pytest-2.8.2\.tox\py34\lib\site-packages\_pytest\pytester.py:600: in getpathnode
    res = session.perform_collect([x], genitems=False)[0]
..\..\..\..\devpi-test0\targz\pytest-2.8.2\.tox\py34\lib\site-packages\_pytest\main.py:567: in perform_collect
    items = self._perform_collect(args, genitems)
..\..\..\..\devpi-test0\targz\pytest-2.8.2\.tox\py34\lib\site-packages\_pytest\main.py:585: in _perform_collect
    parts = self._parsearg(arg)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <Session 'florian'>
arg = 'AppData\\Local\\Temp\\pytest-of-florian\\pytest-0\\testdir\\test_getcustomfile_roundtrip0\\hello.xxx'

    def _parsearg(self, arg):
        """ return (fspath, names) tuple after checking the file exists. """
        arg = str(arg)
        if self.config.option.pyargs:
            arg = self._tryconvertpyarg(arg)
        parts = str(arg).split("::")
        relpath = parts[0].replace("/", os.sep)
        path = self.config.invocation_dir.join(relpath, abs=True)
        if not path.check():
            if self.config.option.pyargs:
                msg = "file or package not found: "
            else:
                msg = "file not found: "
>           raise pytest.UsageError(msg + arg)
E           _pytest.config.UsageError: file not found: AppData\Local\Temp\pytest-of-florian\pytest-0\testdir\test_getcustomfile_roundtrip0\hello.xxx

..\..\..\..\devpi-test0\targz\pytest-2.8.2\.tox\py34\lib\site-packages\_pytest\main.py:691: UsageError
---------------------------- Captured stdout call -----------------------------
============================= test session starts =============================
platform win32 -- Python 3.4.3, pytest-2.8.2, py-1.4.30, pluggy-0.3.1
rootdir: C:\Users\florian, inifile: 
__________________________ TestSession.test_parsearg __________________________

self = <test_collection.TestSession object at 0x0000000002DE8198>
testdir = <Testdir local('C:\\Users\\florian\\AppData\\Local\\Temp\\pytest-of-florian\\pytest-0\\testdir\\test_parsearg0')>

    def test_parsearg(self, testdir):
        p = testdir.makepyfile("def test_func(): pass")
        subdir = testdir.mkdir("sub")
        subdir.ensure("__init__.py")
        target = subdir.join(p.basename)
        p.move(target)
        subdir.chdir()
        config = testdir.parseconfig(p.basename)
        rcol = Session(config=config)
>       assert rcol.fspath == subdir
E       assert local('C:\\Users\\florian') == local('C:\\Users\\florian\\AppData\\Local\\Temp\\pytest-of-florian\\pytest-0\\testdir\\test_parsearg0\\sub')
E        +  where local('C:\\Users\\florian') = <Session 'florian'>.fspath

..\..\..\..\..\devpi-test0\targz\pytest-2.8.2\testing\test_collection.py:331: AssertionError
_______________________ TestSession.test_collect_topdir _______________________

self = <test_collection.TestSession object at 0x00000000047A84E0>
testdir = <Testdir local('C:\\Users\\florian\\AppData\\Local\\Temp\\pytest-of-florian\\pytest-0\\testdir\\test_collect_topdir0')>

    def test_collect_topdir(self, testdir):
        p = testdir.makepyfile("def test_func(): pass")
        id = "::".join([p.basename, "test_func"])
        # XXX migrate to collectonly? (see below)
        config = testdir.parseconfig(id)
        topdir = testdir.tmpdir
        rcol = Session(config)
>       assert topdir == rcol.fspath
E       assert local('C:\\Users\\florian\\AppData\\Local\\Temp\\pytest-of-florian\\pytest-0\\testdir\\test_collect_topdir0') == local('C:\\Users\\florian')
E        +  where local('C:\\Users\\florian') = <Session 'florian'>.fspath

..\..\..\..\devpi-test0\targz\pytest-2.8.2\testing\test_collection.py:348: AssertionError
______________ TestSession.test_collect_protocol_single_function ______________

self = <test_collection.TestSession object at 0x0000000004251860>
testdir = <Testdir local('C:\\Users\\florian\\AppData\\Local\\Temp\\pytest-of-florian\\pytest-0\\testdir\\test_collect_protocol_single_function0')>

    def test_collect_protocol_single_function(self, testdir):
        p = testdir.makepyfile("def test_func(): pass")
        id = "::".join([p.basename, "test_func"])
        items, hookrec = testdir.inline_genitems(id)
        item, = items
        assert item.name == "test_func"
        newid = item.nodeid
>       assert newid == id
E       assert 'AppData/Loca...py::test_func' == 'test_collect_...py::test_func'
E         - AppData/Local/Temp/pytest-of-florian/pytest-0/testdir/test_collect_protocol_single_function0/test_collect_protocol_single_function.py::test_func
E         + test_collect_protocol_single_function.py::test_func

..\..\..\..\devpi-test0\targz\pytest-2.8.2\testing\test_collection.py:364: AssertionError
---------------------------- Captured stdout call -----------------------------
============================= test session starts =============================
platform win32 -- Python 3.4.3, pytest-2.8.2, py-1.4.30, pluggy-0.3.1
rootdir: C:\Users\florian, inifile: 
collected 2 items
<Module 'AppData/Local/Temp/pytest-of-florian/pytest-0/testdir/test_collect_protocol_single_function0/test_collect_protocol_single_function.py'>
  <Function 'test_func'>

==============================  in 0.02 seconds ===============================
__________________ TestSession.test_collect_protocol_method ___________________

self = <test_collection.TestSession object at 0x00000000042747B8>
testdir = <Testdir local('C:\\Users\\florian\\AppData\\Local\\Temp\\pytest-of-florian\\pytest-0\\testdir\\test_collect_protocol_method0')>

    def test_collect_protocol_method(self, testdir):
        p = testdir.makepyfile("""
                class TestClass:
                    def test_method(self):
                        pass
            """)
        normid = p.basename + "::TestClass::()::test_method"
        for id in [p.basename,
                   p.basename + "::TestClass",
                   p.basename + "::TestClass::()",
                   normid,
                   ]:
            items, hookrec = testdir.inline_genitems(id)
            assert len(items) == 1
            assert items[0].name == "test_method"
            newid = items[0].nodeid
>           assert newid == normid
E           assert 'AppData/Loca...::test_method' == 'test_collect_...::test_method'
E             - AppData/Local/Temp/pytest-of-florian/pytest-0/testdir/test_collect_protocol_method0/test_collect_protocol_method.py::TestClass::()::test_method
E             + test_collect_protocol_method.py::TestClass::()::test_method

..\..\..\..\devpi-test0\targz\pytest-2.8.2\testing\test_collection.py:393: AssertionError
---------------------------- Captured stdout call -----------------------------
============================= test session starts =============================
platform win32 -- Python 3.4.3, pytest-2.8.2, py-1.4.30, pluggy-0.3.1
rootdir: C:\Users\florian, inifile: 
collected 1 items
<Module 'AppData/Local/Temp/pytest-of-florian/pytest-0/testdir/test_collect_protocol_method0/test_collect_protocol_method.py'>
  <Class 'TestClass'>
    <Instance '()'>
      <Function 'test_method'>

==============================  in 0.02 seconds ===============================
_______________ TestSession.test_collect_custom_nodes_multi_id ________________

self = <test_collection.TestSession object at 0x0000000002F2C710>
testdir = <Testdir local('C:\\Users\\florian\\AppData\\Local\\Temp\\pytest-of-florian\\pytest-0\\testdir\\test_collect_custom_nodes_multi_id0')>

    def test_collect_custom_nodes_multi_id(self, testdir):
        p = testdir.makepyfile("def test_func(): pass")
        testdir.makeconftest("""
                import pytest
                class SpecialItem(pytest.Item):
                    def runtest(self):
                        return # ok
                class SpecialFile(pytest.File):
                    def collect(self):
                        return [SpecialItem(name="check", parent=self)]
                def pytest_collect_file(path, parent):
                    if path.basename == %r:
                        return SpecialFile(fspath=path, parent=parent)
            """ % p.basename)
        id = p.basename

        items, hookrec = testdir.inline_genitems(id)
        py.std.pprint.pprint(hookrec.calls)
        assert len(items) == 2
        hookrec.assert_contains([
            ("pytest_collectstart",
                "collector.fspath == collector.session.fspath"),
            ("pytest_collectstart",
                "collector.__class__.__name__ == 'SpecialFile'"),
            ("pytest_collectstart",
                "collector.__class__.__name__ == 'Module'"),
            ("pytest_pycollect_makeitem", "name == 'test_func'"),
>           ("pytest_collectreport", "report.nodeid.startswith(p.basename)"),
            #("pytest_collectreport",
            #    "report.fspath == %r" % str(rcol.fspath)),
        ])
E       Failed: could not find 'pytest_collectreport' check 'report.nodeid.startswith(p.basename)'

..\..\..\..\devpi-test0\targz\pytest-2.8.2\testing\test_collection.py:422: Failed
---------------------------- Captured stdout call -----------------------------
============================= test session starts =============================
platform win32 -- Python 3.4.3, pytest-2.8.2, py-1.4.30, pluggy-0.3.1
rootdir: C:\Users\florian, inifile: 
collected 2 items
<SpecialFile 'AppData/Local/Temp/pytest-of-florian/pytest-0/testdir/test_collect_custom_nodes_multi_id0/test_collect_custom_nodes_multi_id.py'>
  <SpecialItem 'check'>
<Module 'AppData/Local/Temp/pytest-of-florian/pytest-0/testdir/test_collect_custom_nodes_multi_id0/test_collect_custom_nodes_multi_id.py'>
  <Function 'test_func'>

==============================  in 0.02 seconds ===============================
[...]
_______________ TestSession.test_collect_subdir_event_ordering ________________

self = <test_collection.TestSession object at 0x0000000004592438>
testdir = <Testdir local('C:\\Users\\florian\\AppData\\Local\\Temp\\pytest-of-florian\\pytest-0\\testdir\\test_collect_subdir_event_ordering0')>

    def test_collect_subdir_event_ordering(self, testdir):
        p = testdir.makepyfile("def test_func(): pass")
        aaa = testdir.mkpydir("aaa")
        test_aaa = aaa.join("test_aaa.py")
        p.move(test_aaa)

        items, hookrec = testdir.inline_genitems()
        assert len(items) == 1
        py.std.pprint.pprint(hookrec.calls)
        hookrec.assert_contains([
            ("pytest_collectstart", "collector.fspath == test_aaa"),
            ("pytest_pycollect_makeitem", "name == 'test_func'"),
            ("pytest_collectreport",
>                   "report.nodeid.startswith('aaa/test_aaa.py')"),
        ])
E       Failed: could not find 'pytest_collectreport' check "report.nodeid.startswith('aaa/test_aaa.py')"

..\..\..\..\devpi-test0\targz\pytest-2.8.2\testing\test_collection.py:440: Failed
---------------------------- Captured stdout call -----------------------------
============================= test session starts =============================
platform win32 -- Python 3.4.3, pytest-2.8.2, py-1.4.30, pluggy-0.3.1
rootdir: C:\Users\florian, inifile: 
collected 1 items
<Module 'AppData/Local/Temp/pytest-of-florian/pytest-0/testdir/test_collect_subdir_event_ordering0/aaa/test_aaa.py'>
  <Function 'test_func'>

==============================  in 0.06 seconds ===============================
[...]
________________ TestSession.test_collect_two_commandline_args ________________

self = <test_collection.TestSession object at 0x000000000456C2B0>
testdir = <Testdir local('C:\\Users\\florian\\AppData\\Local\\Temp\\pytest-of-florian\\pytest-0\\testdir\\test_collect_two_commandline_args0')>

    def test_collect_two_commandline_args(self, testdir):
        p = testdir.makepyfile("def test_func(): pass")
        aaa = testdir.mkpydir("aaa")
        bbb = testdir.mkpydir("bbb")
        test_aaa = aaa.join("test_aaa.py")
        p.copy(test_aaa)
        test_bbb = bbb.join("test_bbb.py")
        p.move(test_bbb)

        id = "."

        items, hookrec = testdir.inline_genitems(id)
        assert len(items) == 2
        py.std.pprint.pprint(hookrec.calls)
        hookrec.assert_contains([
            ("pytest_collectstart", "collector.fspath == test_aaa"),
            ("pytest_pycollect_makeitem", "name == 'test_func'"),
            ("pytest_collectreport", "report.nodeid == 'aaa/test_aaa.py'"),
            ("pytest_collectstart", "collector.fspath == test_bbb"),
            ("pytest_pycollect_makeitem", "name == 'test_func'"),
>           ("pytest_collectreport", "report.nodeid == 'bbb/test_bbb.py'"),
        ])
E       Failed: could not find 'pytest_collectreport' check "report.nodeid == 'aaa/test_aaa.py'"

..\..\..\..\devpi-test0\targz\pytest-2.8.2\testing\test_collection.py:463: Failed
---------------------------- Captured stdout call -----------------------------
============================= test session starts =============================
platform win32 -- Python 3.4.3, pytest-2.8.2, py-1.4.30, pluggy-0.3.1
rootdir: C:\Users\florian, inifile: 
collected 2 items
<Module 'AppData/Local/Temp/pytest-of-florian/pytest-0/testdir/test_collect_two_commandline_args0/aaa/test_aaa.py'>
  <Function 'test_func'>
<Module 'AppData/Local/Temp/pytest-of-florian/pytest-0/testdir/test_collect_two_commandline_args0/bbb/test_bbb.py'>
  <Function 'test_func'>

==============================  in 0.06 seconds ===============================
[...]
_____________________ TestSession.test_serialization_byid _____________________

self = <test_collection.TestSession object at 0x0000000002EEB5C0>
testdir = <Testdir local('C:\\Users\\florian\\AppData\\Local\\Temp\\pytest-of-florian\\pytest-0\\testdir\\test_serialization_byid0')>

    def test_serialization_byid(self, testdir):
        testdir.makepyfile("def test_func(): pass")
        items, hookrec = testdir.inline_genitems()
        assert len(items) == 1
        item, = items
        items2, hookrec = testdir.inline_genitems(item.nodeid)
>       item2, = items2
E       ValueError: need more than 0 values to unpack

..\..\..\..\devpi-test0\targz\pytest-2.8.2\testing\test_collection.py:472: ValueError
---------------------------- Captured stdout call -----------------------------
============================= test session starts =============================
platform win32 -- Python 3.4.3, pytest-2.8.2, py-1.4.30, pluggy-0.3.1
rootdir: C:\Users\florian, inifile: 
collected 1 items
<Module 'AppData/Local/Temp/pytest-of-florian/pytest-0/testdir/test_serialization_byid0/test_serialization_byid.py'>
  <Function 'test_func'>

==============================  in 0.02 seconds ===============================
============================= test session starts =============================
platform win32 -- Python 3.4.3, pytest-2.8.2, py-1.4.30, pluggy-0.3.1
rootdir: C:\Users\florian, inifile: 

==============================  in 0.00 seconds ===============================
---------------------------- Captured stderr call -----------------------------
ERROR: file not found: AppData/Local/Temp/pytest-of-florian/pytest-0/testdir/test_serialization_byid0/test_serialization_byid.py::test_func
____________________ Test_getinitialnodes.test_global_file ____________________

self = <test_collection.Test_getinitialnodes object at 0x0000000002CFFEB8>
testdir = <Testdir local('C:\\Users\\florian\\AppData\\Local\\Temp\\pytest-of-florian\\pytest-0\\testdir\\test_global_file0')>
tmpdir = local('C:\\Users\\florian\\AppData\\Local\\Temp\\pytest-of-florian\\pytest-0\\test_global_file0')

    def test_global_file(self, testdir, tmpdir):
        x = tmpdir.ensure("x.py")
        config = testdir.parseconfigure(x)
        col = testdir.getnode(config, x)
        assert isinstance(col, pytest.Module)
>       assert col.name == 'x.py'
E       assert 'AppData/Loca...al_file0/x.py' == 'x.py'
E         - AppData/Local/Temp/pytest-of-florian/pytest-0/test_global_file0/x.py
E         + x.py

..\..\..\..\devpi-test0\targz\pytest-2.8.2\testing\test_collection.py:494: AssertionError
---------------------------- Captured stdout call -----------------------------
============================= test session starts =============================
platform win32 -- Python 3.4.3, pytest-2.8.2, py-1.4.30, pluggy-0.3.1
rootdir: C:\Users\florian, inifile: 
collected 0 items

==============================  in 0.02 seconds ===============================
______________________ Test_getinitialnodes.test_pkgfile ______________________

self = <test_collection.Test_getinitialnodes object at 0x000000000417C470>
testdir = <Testdir local('C:\\Users\\florian\\AppData\\Local\\Temp\\pytest-of-florian\\pytest-0\\testdir\\test_pkgfile0')>

    def test_pkgfile(self, testdir):
        tmpdir = testdir.tmpdir
        subdir = tmpdir.join("subdir")
        x = subdir.ensure("x.py")
        subdir.ensure("__init__.py")
        config = testdir.parseconfigure(x)
        col = testdir.getnode(config, x)
        assert isinstance(col, pytest.Module)
>       assert col.name == 'x.py'
E       assert 'AppData/Loca...0/subdir/x.py' == 'x.py'
E         - AppData/Local/Temp/pytest-of-florian/pytest-0/testdir/test_pkgfile0/subdir/x.py
E         + x.py

..\..\..\..\devpi-test0\targz\pytest-2.8.2\testing\test_collection.py:508: AssertionError
---------------------------- Captured stdout call -----------------------------
============================= test session starts =============================
platform win32 -- Python 3.4.3, pytest-2.8.2, py-1.4.30, pluggy-0.3.1
rootdir: C:\Users\florian, inifile: 
collected 0 items

==============================  in 0.00 seconds ===============================
_______ test_consider_args_after_options_for_rootdir_and_inifile[args0] _______

testdir = <Testdir local('C:\\Users\\florian\\AppData\\Local\\Temp\\pytest-of-florian\\pytest-0\\testdir\\test_consider_args_after_options_for_rootdir_and_inifile0')>
args = [local('C:\\Users\\florian\\AppData\\Local\\Temp\\pytest-of-florian\\pytest-0\\testdir\\test_consider_args_after_optio...\pytest-of-florian\\pytest-0\\testdir\\test_consider_args_after_options_for_rootdir_and_inifile0\\myroot\\dir2'), '-v']

    @pytest.mark.parametrize('args', [
        ['dir1', 'dir2', '-v'],
        ['dir1', '-v', 'dir2'],
        ['dir2', '-v', 'dir1'],
        ['-v', 'dir2', 'dir1'],
    ])
    def test_consider_args_after_options_for_rootdir_and_inifile(testdir, args):
        """
        Consider all arguments in the command-line for rootdir and inifile
        discovery, even if they happen to occur after an option. #949
        """
        # replace "dir1" and "dir2" from "args" into their real directory
        root = testdir.tmpdir.mkdir('myroot')
        d1 = root.mkdir('dir1')
        d2 = root.mkdir('dir2')
        for i, arg in enumerate(args):
            if arg == 'dir1':
                args[i] = d1
            elif arg == 'dir2':
                args[i] = d2
        result = testdir.runpytest(*args)
>       result.stdout.fnmatch_lines(['*rootdir: *myroot, inifile: '])
E       Failed: remains unmatched: '*rootdir: *myroot, inifile: ', see stderr

..\..\..\..\devpi-test0\targz\pytest-2.8.2\testing\test_config.py:366: Failed
---------------------------- Captured stdout call -----------------------------
============================= test session starts =============================
platform win32 -- Python 3.4.3, pytest-2.8.2, py-1.4.30, pluggy-0.3.1 -- c:\users\florian\appdata\local\temp\devpi-test0\targz\pytest-2.8.2\.tox\py34\scripts\python.exe
cachedir: ..\..\..\..\..\..\..\.cache
rootdir: C:\Users\florian, inifile: 
collecting ... collected 0 items

==============================  in 0.00 seconds ===============================
---------------------------- Captured stderr call -----------------------------
nomatch: '*rootdir: *myroot, inifile: '
    and: '============================= test session starts ============================='
    and: 'platform win32 -- Python 3.4.3, pytest-2.8.2, py-1.4.30, pluggy-0.3.1 -- c:\\users\\florian\\appdata\\local\\temp\\devpi-test0\\targz\\pytest-2.8.2\\.tox\\py34\\scripts\\python.exe'
    and: 'cachedir: ..\\..\\..\\..\\..\\..\\..\\.cache'
    and: 'rootdir: C:\\Users\\florian, inifile: '
    and: 'collecting ... collected 0 items'
    and: ''
    and: '==============================  in 0.00 seconds ==============================='
    and: ''
_______ test_consider_args_after_options_for_rootdir_and_inifile[args1] _______

testdir = <Testdir local('C:\\Users\\florian\\AppData\\Local\\Temp\\pytest-of-florian\\pytest-0\\testdir\\test_consider_args_after_options_for_rootdir_and_inifile1')>
args = [local('C:\\Users\\florian\\AppData\\Local\\Temp\\pytest-of-florian\\pytest-0\\testdir\\test_consider_args_after_optio...\Temp\\pytest-of-florian\\pytest-0\\testdir\\test_consider_args_after_options_for_rootdir_and_inifile1\\myroot\\dir2')]

    @pytest.mark.parametrize('args', [
        ['dir1', 'dir2', '-v'],
        ['dir1', '-v', 'dir2'],
        ['dir2', '-v', 'dir1'],
        ['-v', 'dir2', 'dir1'],
    ])
    def test_consider_args_after_options_for_rootdir_and_inifile(testdir, args):
        """
        Consider all arguments in the command-line for rootdir and inifile
        discovery, even if they happen to occur after an option. #949
        """
        # replace "dir1" and "dir2" from "args" into their real directory
        root = testdir.tmpdir.mkdir('myroot')
        d1 = root.mkdir('dir1')
        d2 = root.mkdir('dir2')
        for i, arg in enumerate(args):
            if arg == 'dir1':
                args[i] = d1
            elif arg == 'dir2':
                args[i] = d2
        result = testdir.runpytest(*args)
>       result.stdout.fnmatch_lines(['*rootdir: *myroot, inifile: '])
E       Failed: remains unmatched: '*rootdir: *myroot, inifile: ', see stderr

..\..\..\..\devpi-test0\targz\pytest-2.8.2\testing\test_config.py:366: Failed
---------------------------- Captured stdout call -----------------------------
============================= test session starts =============================
platform win32 -- Python 3.4.3, pytest-2.8.2, py-1.4.30, pluggy-0.3.1 -- c:\users\florian\appdata\local\temp\devpi-test0\targz\pytest-2.8.2\.tox\py34\scripts\python.exe
cachedir: ..\..\..\..\..\..\..\.cache
rootdir: C:\Users\florian, inifile: 
collecting ... collected 0 items

==============================  in 0.02 seconds ===============================
---------------------------- Captured stderr call -----------------------------
nomatch: '*rootdir: *myroot, inifile: '
    and: '============================= test session starts ============================='
    and: 'platform win32 -- Python 3.4.3, pytest-2.8.2, py-1.4.30, pluggy-0.3.1 -- c:\\users\\florian\\appdata\\local\\temp\\devpi-test0\\targz\\pytest-2.8.2\\.tox\\py34\\scripts\\python.exe'
    and: 'cachedir: ..\\..\\..\\..\\..\\..\\..\\.cache'
    and: 'rootdir: C:\\Users\\florian, inifile: '
    and: 'collecting ... collected 0 items'
    and: ''
    and: '==============================  in 0.02 seconds ==============================='
    and: ''
_______ test_consider_args_after_options_for_rootdir_and_inifile[args2] _______

testdir = <Testdir local('C:\\Users\\florian\\AppData\\Local\\Temp\\pytest-of-florian\\pytest-0\\testdir\\test_consider_args_after_options_for_rootdir_and_inifile2')>
args = [local('C:\\Users\\florian\\AppData\\Local\\Temp\\pytest-of-florian\\pytest-0\\testdir\\test_consider_args_after_optio...\Temp\\pytest-of-florian\\pytest-0\\testdir\\test_consider_args_after_options_for_rootdir_and_inifile2\\myroot\\dir1')]

    @pytest.mark.parametrize('args', [
        ['dir1', 'dir2', '-v'],
        ['dir1', '-v', 'dir2'],
        ['dir2', '-v', 'dir1'],
        ['-v', 'dir2', 'dir1'],
    ])
    def test_consider_args_after_options_for_rootdir_and_inifile(testdir, args):
        """
        Consider all arguments in the command-line for rootdir and inifile
        discovery, even if they happen to occur after an option. #949
        """
        # replace "dir1" and "dir2" from "args" into their real directory
        root = testdir.tmpdir.mkdir('myroot')
        d1 = root.mkdir('dir1')
        d2 = root.mkdir('dir2')
        for i, arg in enumerate(args):
            if arg == 'dir1':
                args[i] = d1
            elif arg == 'dir2':
                args[i] = d2
        result = testdir.runpytest(*args)
>       result.stdout.fnmatch_lines(['*rootdir: *myroot, inifile: '])
E       Failed: remains unmatched: '*rootdir: *myroot, inifile: ', see stderr

..\..\..\..\devpi-test0\targz\pytest-2.8.2\testing\test_config.py:366: Failed
---------------------------- Captured stdout call -----------------------------
============================= test session starts =============================
platform win32 -- Python 3.4.3, pytest-2.8.2, py-1.4.30, pluggy-0.3.1 -- c:\users\florian\appdata\local\temp\devpi-test0\targz\pytest-2.8.2\.tox\py34\scripts\python.exe
cachedir: ..\..\..\..\..\..\..\.cache
rootdir: C:\Users\florian, inifile: 
collecting ... collected 0 items

==============================  in 0.00 seconds ===============================
---------------------------- Captured stderr call -----------------------------
nomatch: '*rootdir: *myroot, inifile: '
    and: '============================= test session starts ============================='
    and: 'platform win32 -- Python 3.4.3, pytest-2.8.2, py-1.4.30, pluggy-0.3.1 -- c:\\users\\florian\\appdata\\local\\temp\\devpi-test0\\targz\\pytest-2.8.2\\.tox\\py34\\scripts\\python.exe'
    and: 'cachedir: ..\\..\\..\\..\\..\\..\\..\\.cache'
    and: 'rootdir: C:\\Users\\florian, inifile: '
    and: 'collecting ... collected 0 items'
    and: ''
    and: '==============================  in 0.00 seconds ==============================='
    and: ''
_______ test_consider_args_after_options_for_rootdir_and_inifile[args3] _______

testdir = <Testdir local('C:\\Users\\florian\\AppData\\Local\\Temp\\pytest-of-florian\\pytest-0\\testdir\\test_consider_args_after_options_for_rootdir_and_inifile3')>
args = ['-v', local('C:\\Users\\florian\\AppData\\Local\\Temp\\pytest-of-florian\\pytest-0\\testdir\\test_consider_args_after...\Temp\\pytest-of-florian\\pytest-0\\testdir\\test_consider_args_after_options_for_rootdir_and_inifile3\\myroot\\dir1')]

    @pytest.mark.parametrize('args', [
        ['dir1', 'dir2', '-v'],
        ['dir1', '-v', 'dir2'],
        ['dir2', '-v', 'dir1'],
        ['-v', 'dir2', 'dir1'],
    ])
    def test_consider_args_after_options_for_rootdir_and_inifile(testdir, args):
        """
        Consider all arguments in the command-line for rootdir and inifile
        discovery, even if they happen to occur after an option. #949
        """
        # replace "dir1" and "dir2" from "args" into their real directory
        root = testdir.tmpdir.mkdir('myroot')
        d1 = root.mkdir('dir1')
        d2 = root.mkdir('dir2')
        for i, arg in enumerate(args):
            if arg == 'dir1':
                args[i] = d1
            elif arg == 'dir2':
                args[i] = d2
        result = testdir.runpytest(*args)
>       result.stdout.fnmatch_lines(['*rootdir: *myroot, inifile: '])
E       Failed: remains unmatched: '*rootdir: *myroot, inifile: ', see stderr

..\..\..\..\devpi-test0\targz\pytest-2.8.2\testing\test_config.py:366: Failed
---------------------------- Captured stdout call -----------------------------
============================= test session starts =============================
platform win32 -- Python 3.4.3, pytest-2.8.2, py-1.4.30, pluggy-0.3.1 -- c:\users\florian\appdata\local\temp\devpi-test0\targz\pytest-2.8.2\.tox\py34\scripts\python.exe
cachedir: ..\..\..\..\..\..\..\.cache
rootdir: C:\Users\florian, inifile: 
collecting ... collected 0 items

==============================  in 0.00 seconds ===============================
---------------------------- Captured stderr call -----------------------------
nomatch: '*rootdir: *myroot, inifile: '
    and: '============================= test session starts ============================='
    and: 'platform win32 -- Python 3.4.3, pytest-2.8.2, py-1.4.30, pluggy-0.3.1 -- c:\\users\\florian\\appdata\\local\\temp\\devpi-test0\\targz\\pytest-2.8.2\\.tox\\py34\\scripts\\python.exe'
    and: 'cachedir: ..\\..\\..\\..\\..\\..\\..\\.cache'
    and: 'rootdir: C:\\Users\\florian, inifile: '
    and: 'collecting ... collected 0 items'
    and: ''
    and: '==============================  in 0.00 seconds ==============================='
    and: ''
__________________________ TestRootdir.test_nothing ___________________________

self = <test_config.TestRootdir object at 0x0000000004272630>
tmpdir = local('C:\\Users\\florian\\AppData\\Local\\Temp\\pytest-of-florian\\pytest-0\\test_nothing0')

    def test_nothing(self, tmpdir):
        rootdir, inifile, inicfg = determine_setup(None, [tmpdir])
>       assert rootdir == tmpdir
E       assert local('C:\\Users\\florian') == local('C:\\Users\\florian\\AppData\\Local\\Temp\\pytest-of-florian\\pytest-0\\test_nothing0')

testing\test_config.py:484: AssertionError
_____________________________ test_gen[python2.7] _____________________________

testdir = <Testdir local('C:\\Users\\florian\\AppData\\Local\\Temp\\pytest-of-florian\\pytest-0\\testdir\\test_gen1')>
anypython = local('C:\\Python27\\python.exe')
standalone = <test_genscript.Standalone object at 0x0000000004BD1588>

    def test_gen(testdir, anypython, standalone):
        if sys.version_info >= (2,7):
            result = testdir._run(anypython, "-c",
                                    "import sys;print (sys.version_info >=(2,7))")
            assert result.ret == 0
            if result.stdout.str() == "False":
                pytest.skip("genscript called from python2.7 cannot work "
                            "earlier python versions")
        result = standalone.run(anypython, testdir, '--version')
        if result.ret == 2:
            result.stderr.fnmatch_lines(["*ERROR: setuptools not installed*"])
        elif result.ret == 0:
            result.stderr.fnmatch_lines([
                "*imported from*mypytest*"
            ])
            p = testdir.makepyfile("def test_func(): assert 0")
            result = standalone.run(anypython, testdir, p)
            assert result.ret != 0
        else:
>           pytest.fail("Unexpected return code")
E           Failed: Unexpected return code

..\..\..\..\devpi-test0\targz\pytest-2.8.2\testing\test_genscript.py:40: Failed
---------------------------- Captured stdout setup ----------------------------
WARNING: usage of genscript is deprecated.
WARNING: generated script will not run on python2.6 due to 'argparse' dependency. Use python2.6 to generate a python2.6 compatible script
generated pytest standalone script: C:\Users\florian\AppData\Local\Temp\pytest-of-florian\pytest-0\testdir\test_gen1\mypytest
---------------------------- Captured stdout call -----------------------------
running: C:\Python27\python.exe -c import sys;print (sys.version_info >=(2,7))
     in: C:\Users\florian\AppData\Local\Temp\pytest-of-florian\pytest-0\testdir\test_gen1
True
running: C:\Python27\python.exe C:\Users\florian\AppData\Local\Temp\pytest-of-florian\pytest-0\testdir\test_gen1\mypytest --version
     in: C:\Users\florian\AppData\Local\Temp\pytest-of-florian\pytest-0\testdir\test_gen1
---------------------------- Captured stderr call -----------------------------
Traceback (most recent call last):
  File "C:\Users\florian\AppData\Local\Temp\pytest-of-florian\pytest-0\testdir\test_gen1\mypytest", line 3470, in <module>
    import pkg_resources  # noqa
  File "C:\Python27\lib\site-packages\pkg_resources\__init__.py", line 37, in <module>
    import email.parser
  File "C:\Python27\lib\email\parser.py", line 12, in <module>
    from email.feedparser import FeedParser
  File "C:\Python27\lib\email\feedparser.py", line 27, in <module>
    from email import message
  File "C:\Python27\lib\email\message.py", line 16, in <module>
    import email.charset
  File "C:\Python27\lib\email\charset.py", line 13, in <module>
    import email.base64mime
  File "C:\Python27\lib\email\base64mime.py", line 40, in <module>
    from email.utils import fix_eols
  File "C:\Python27\lib\email\utils.py", line 27, in <module>
    import random
  File "C:\Python27\lib\random.py", line 885, in <module>
    _inst = Random()
  File "C:\Python27\lib\random.py", line 97, in __init__
    self.seed(x)
  File "C:\Python27\lib\random.py", line 113, in seed
    a = long(_hexlify(_urandom(2500)), 16)
WindowsError: [Error -2146893795] Provider DLL failed to initialize correctly
_________________________ TestPython.test_setup_error _________________________

self = <test_junitxml.TestPython object at 0x0000000002DF1CF8>
testdir = <Testdir local('C:\\Users\\florian\\AppData\\Local\\Temp\\pytest-of-florian\\pytest-0\\testdir\\test_setup_error0')>

    def test_setup_error(self, testdir):
        testdir.makepyfile("""
                def pytest_funcarg__arg(request):
                    raise ValueError()
                def test_function(arg):
                    pass
            """)
        result, dom = runandparse(testdir)
        assert result.ret
        node = dom.getElementsByTagName("testsuite")[0]
        assert_attr(node, errors=1, tests=0)
        tnode = node.getElementsByTagName("testcase")[0]
        assert_attr(tnode,
            file="test_setup_error.py",
            line="2",
            classname="test_setup_error",
>           name="test_function")
E       Failed: 'AppData.Local.Temp.pytest-of-florian.pytest-0.testdir.test_setup_error0.test_setup_error' != 'test_setup_error'

..\..\..\..\devpi-test0\targz\pytest-2.8.2\testing\test_junitxml.py:79: Failed
---------------------------- Captured stdout call -----------------------------
============================= test session starts =============================
platform win32 -- Python 3.4.3, pytest-2.8.2, py-1.4.30, pluggy-0.3.1
rootdir: C:\Users\florian, inifile: 
collected 1 items

test_setup_error.py E

=================================== ERRORS ====================================
_______________________ ERROR at setup of test_function _______________________

request = <SubRequest 'arg' for <Function 'test_function'>>

    def pytest_funcarg__arg(request):
>       raise ValueError()
E       ValueError

test_setup_error.py:2: ValueError
 generated xml file: C:\Users\florian\AppData\Local\Temp\pytest-of-florian\pytest-0\testdir\test_setup_error0\junit.xml 
=========================== 1 error in 0.09 seconds ===========================
__________________ TestPython.test_skip_contains_name_reason __________________

self = <test_junitxml.TestPython object at 0x0000000002F44A58>
testdir = <Testdir local('C:\\Users\\florian\\AppData\\Local\\Temp\\pytest-of-florian\\pytest-0\\testdir\\test_skip_contains_name_reason0')>

    def test_skip_contains_name_reason(self, testdir):
        testdir.makepyfile("""
                import pytest
                def test_skip():
                    pytest.skip("hello23")
            """)
        result, dom = runandparse(testdir)
        assert result.ret == 0
        node = dom.getElementsByTagName("testsuite")[0]
        assert_attr(node, skips=1)
        tnode = node.getElementsByTagName("testcase")[0]
        assert_attr(tnode,
            file="test_skip_contains_name_reason.py",
            line="1",
            classname="test_skip_contains_name_reason",
>           name="test_skip")
E       Failed: 'AppData.Local.Temp.pytest-of-florian.pytest-0.testdir.test_skip_contains_name_reason0.test_skip_contains_name_reason' != 'test_skip_contains_name_reason'

..\..\..\..\devpi-test0\targz\pytest-2.8.2\testing\test_junitxml.py:99: Failed
---------------------------- Captured stdout call -----------------------------
============================= test session starts =============================
platform win32 -- Python 3.4.3, pytest-2.8.2, py-1.4.30, pluggy-0.3.1
rootdir: C:\Users\florian, inifile: 
collected 1 items

test_skip_contains_name_reason.py s

 generated xml file: C:\Users\florian\AppData\Local\Temp\pytest-of-florian\pytest-0\testdir\test_skip_contains_name_reason0\junit.xml 
========================== 1 skipped in 0.03 seconds ==========================
_____________________ TestPython.test_classname_instance ______________________

self = <test_junitxml.TestPython object at 0x0000000002951E10>
testdir = <Testdir local('C:\\Users\\florian\\AppData\\Local\\Temp\\pytest-of-florian\\pytest-0\\testdir\\test_classname_instance0')>

    def test_classname_instance(self, testdir):
        testdir.makepyfile("""
                class TestClass:
                    def test_method(self):
                        assert 0
            """)
        result, dom = runandparse(testdir)
        assert result.ret
        node = dom.getElementsByTagName("testsuite")[0]
        assert_attr(node, failures=1)
        tnode = node.getElementsByTagName("testcase")[0]
        assert_attr(tnode,
            file="test_classname_instance.py",
            line="1",
            classname="test_classname_instance.TestClass",
>           name="test_method")
E       Failed: 'AppData.Local.Temp.pytest-of-florian.pytest-0.testdir.test_classname_instance0.test_classname_instance.TestClass' != 'test_classname_instance.TestClass'

..\..\..\..\devpi-test0\targz\pytest-2.8.2\testing\test_junitxml.py:121: Failed
---------------------------- Captured stdout call -----------------------------
============================= test session starts =============================
platform win32 -- Python 3.4.3, pytest-2.8.2, py-1.4.30, pluggy-0.3.1
rootdir: C:\Users\florian, inifile: 
collected 1 items

test_classname_instance.py F

================================== FAILURES ===================================
____________________________ TestClass.test_method ____________________________

self = <test_classname_instance.TestClass object at 0x0000000002E985F8>

    def test_method(self):
>       assert 0
E       assert 0

test_classname_instance.py:3: AssertionError
 generated xml file: C:\Users\florian\AppData\Local\Temp\pytest-of-florian\pytest-0\testdir\test_classname_instance0\junit.xml 
========================== 1 failed in 0.09 seconds ===========================
____________________ TestPython.test_classname_nested_dir _____________________

self = <test_junitxml.TestPython object at 0x0000000002F4EA58>
testdir = <Testdir local('C:\\Users\\florian\\AppData\\Local\\Temp\\pytest-of-florian\\pytest-0\\testdir\\test_classname_nested_dir0')>

    def test_classname_nested_dir(self, testdir):
        p = testdir.tmpdir.ensure("sub", "test_hello.py")
        p.write("def test_func(): 0/0")
        result, dom = runandparse(testdir)
        assert result.ret
        node = dom.getElementsByTagName("testsuite")[0]
        assert_attr(node, failures=1)
        tnode = node.getElementsByTagName("testcase")[0]
        assert_attr(tnode,
            file=os.path.join("sub", "test_hello.py"),
            line="0",
            classname="sub.test_hello",
>           name="test_func")
E       Failed: 'AppData.Local.Temp.pytest-of-florian.pytest-0.testdir.test_classname_nested_dir0.sub.test_hello' != 'sub.test_hello'

..\..\..\..\devpi-test0\targz\pytest-2.8.2\testing\test_junitxml.py:135: Failed
---------------------------- Captured stdout call -----------------------------
============================= test session starts =============================
platform win32 -- Python 3.4.3, pytest-2.8.2, py-1.4.30, pluggy-0.3.1
rootdir: C:\Users\florian, inifile: 
collected 1 items

sub\test_hello.py F

================================== FAILURES ===================================
__________________________________ test_func __________________________________

>   def test_func(): 0/0
E   ZeroDivisionError: division by zero

sub\test_hello.py:1: ZeroDivisionError
 generated xml file: C:\Users\florian\AppData\Local\Temp\pytest-of-florian\pytest-0\testdir\test_classname_nested_dir0\junit.xml 
========================== 1 failed in 0.08 seconds ===========================
______________________ TestPython.test_failure_function _______________________

self = <test_junitxml.TestPython object at 0x0000000002EF0780>
testdir = <Testdir local('C:\\Users\\florian\\AppData\\Local\\Temp\\pytest-of-florian\\pytest-0\\testdir\\test_failure_function0')>

    def test_failure_function(self, testdir):
        testdir.makepyfile("""
                import sys
                def test_fail():
                    print ("hello-stdout")
                    sys.stderr.write("hello-stderr\\n")
                    raise ValueError(42)
            """)

        result, dom = runandparse(testdir)
        assert result.ret
        node = dom.getElementsByTagName("testsuite")[0]
        assert_attr(node, failures=1, tests=1)
        tnode = node.getElementsByTagName("testcase")[0]
        assert_attr(tnode,
            file="test_failure_function.py",
            line="1",
            classname="test_failure_function",
>           name="test_fail")
E       Failed: 'AppData.Local.Temp.pytest-of-florian.pytest-0.testdir.test_failure_function0.test_failure_function' != 'test_failure_function'

..\..\..\..\devpi-test0\targz\pytest-2.8.2\testing\test_junitxml.py:168: Failed
---------------------------- Captured stdout call -----------------------------
============================= test session starts =============================
platform win32 -- Python 3.4.3, pytest-2.8.2, py-1.4.30, pluggy-0.3.1
rootdir: C:\Users\florian, inifile: 
collected 1 items

test_failure_function.py F

================================== FAILURES ===================================
__________________________________ test_fail __________________________________

    def test_fail():
        print ("hello-stdout")
        sys.stderr.write("hello-stderr\n")
>       raise ValueError(42)
E       ValueError: 42

test_failure_function.py:5: ValueError
---------------------------- Captured stdout call -----------------------------
hello-stdout
---------------------------- Captured stderr call -----------------------------
hello-stderr
 generated xml file: C:\Users\florian\AppData\Local\Temp\pytest-of-florian\pytest-0\testdir\test_failure_function0\junit.xml 
========================== 1 failed in 0.08 seconds ===========================
_______________________ TestPython.test_failure_escape ________________________

self = <test_junitxml.TestPython object at 0x0000000002F68160>
testdir = <Testdir local('C:\\Users\\florian\\AppData\\Local\\Temp\\pytest-of-florian\\pytest-0\\testdir\\test_failure_escape0')>

    def test_failure_escape(self, testdir):
        testdir.makepyfile("""
                import pytest
                @pytest.mark.parametrize('arg1', "<&'", ids="<&'")
                def test_func(arg1):
                    print(arg1)
                    assert 0
            """)
        result, dom = runandparse(testdir)
        assert result.ret
        node = dom.getElementsByTagName("testsuite")[0]
        assert_attr(node, failures=3, tests=3)

        for index, char in enumerate("<&'"):

            tnode = node.getElementsByTagName("testcase")[index]
            assert_attr(tnode,
                file="test_failure_escape.py",
                line="1",
                classname="test_failure_escape",
>               name="test_func[%s]" % char)
E           Failed: 'AppData.Local.Temp.pytest-of-florian.pytest-0.testdir.test_failure_escape0.test_failure_escape' != 'test_failure_escape'

..\..\..\..\devpi-test0\targz\pytest-2.8.2\testing\test_junitxml.py:212: Failed
---------------------------- Captured stdout call -----------------------------
============================= test session starts =============================
platform win32 -- Python 3.4.3, pytest-2.8.2, py-1.4.30, pluggy-0.3.1
rootdir: C:\Users\florian, inifile: 
collected 3 items

test_failure_escape.py FFF

================================== FAILURES ===================================
________________________________ test_func[<] _________________________________

arg1 = '<'

    @pytest.mark.parametrize('arg1', "<&'", ids="<&'")
    def test_func(arg1):
        print(arg1)
>       assert 0
E       assert 0

test_failure_escape.py:5: AssertionError
---------------------------- Captured stdout call -----------------------------
<
________________________________ test_func[&] _________________________________

arg1 = '&'

    @pytest.mark.parametrize('arg1', "<&'", ids="<&'")
    def test_func(arg1):
        print(arg1)
>       assert 0
E       assert 0

test_failure_escape.py:5: AssertionError
---------------------------- Captured stdout call -----------------------------
&
________________________________ test_func['] _________________________________

arg1 = "'"

    @pytest.mark.parametrize('arg1', "<&'", ids="<&'")
    def test_func(arg1):
        print(arg1)
>       assert 0
E       assert 0

test_failure_escape.py:5: AssertionError
---------------------------- Captured stdout call -----------------------------
'
 generated xml file: C:\Users\florian\AppData\Local\Temp\pytest-of-florian\pytest-0\testdir\test_failure_escape0\junit.xml 
========================== 3 failed in 0.14 seconds ===========================
_______________________ TestPython.test_junit_prefixing _______________________

self = <test_junitxml.TestPython object at 0x0000000002EE50F0>
testdir = <Testdir local('C:\\Users\\florian\\AppData\\Local\\Temp\\pytest-of-florian\\pytest-0\\testdir\\test_junit_prefixing0')>

    def test_junit_prefixing(self, testdir):
        testdir.makepyfile("""
                def test_func():
                    assert 0
                class TestHello:
                    def test_hello(self):
                        pass
            """)
        result, dom = runandparse(testdir, "--junitprefix=xyz")
        assert result.ret
        node = dom.getElementsByTagName("testsuite")[0]
        assert_attr(node, failures=1, tests=2)
        tnode = node.getElementsByTagName("testcase")[0]
        assert_attr(tnode,
            file="test_junit_prefixing.py",
            line="0",
            classname="xyz.test_junit_prefixing",
>           name="test_func")
E       Failed: 'xyz.AppData.Local.Temp.pytest-of-florian.pytest-0.testdir.test_junit_prefixing0.test_junit_prefixing' != 'xyz.test_junit_prefixing'

..\..\..\..\devpi-test0\targz\pytest-2.8.2\testing\test_junitxml.py:235: Failed
---------------------------- Captured stdout call -----------------------------
============================= test session starts =============================
platform win32 -- Python 3.4.3, pytest-2.8.2, py-1.4.30, pluggy-0.3.1
rootdir: C:\Users\florian, inifile: 
collected 2 items

test_junit_prefixing.py F.

================================== FAILURES ===================================
__________________________________ test_func __________________________________

    def test_func():
>       assert 0
E       assert 0

test_junit_prefixing.py:2: AssertionError
 generated xml file: C:\Users\florian\AppData\Local\Temp\pytest-of-florian\pytest-0\testdir\test_junit_prefixing0\junit.xml 
===================== 1 failed, 1 passed in 0.08 seconds ======================
______________________ TestPython.test_xfailure_function ______________________

self = <test_junitxml.TestPython object at 0x00000000040F6FD0>
testdir = <Testdir local('C:\\Users\\florian\\AppData\\Local\\Temp\\pytest-of-florian\\pytest-0\\testdir\\test_xfailure_function0')>

    def test_xfailure_function(self, testdir):
        testdir.makepyfile("""
                import pytest
                def test_xfail():
                    pytest.xfail("42")
            """)
        result, dom = runandparse(testdir)
        assert not result.ret
        node = dom.getElementsByTagName("testsuite")[0]
        assert_attr(node, skips=1, tests=0)
        tnode = node.getElementsByTagName("testcase")[0]
        assert_attr(tnode,
            file="test_xfailure_function.py",
            line="1",
            classname="test_xfailure_function",
>           name="test_xfail")
E       Failed: 'AppData.Local.Temp.pytest-of-florian.pytest-0.testdir.test_xfailure_function0.test_xfailure_function' != 'test_xfailure_function'

..\..\..\..\devpi-test0\targz\pytest-2.8.2\testing\test_junitxml.py:259: Failed
---------------------------- Captured stdout call -----------------------------
============================= test session starts =============================
platform win32 -- Python 3.4.3, pytest-2.8.2, py-1.4.30, pluggy-0.3.1
rootdir: C:\Users\florian, inifile: 
collected 1 items

test_xfailure_function.py x

 generated xml file: C:\Users\florian\AppData\Local\Temp\pytest-of-florian\pytest-0\testdir\test_xfailure_function0\junit.xml 
========================== 1 xfailed in 0.05 seconds ==========================
_______________________ TestPython.test_xfailure_xpass ________________________

self = <test_junitxml.TestPython object at 0x00000000040A7A90>
testdir = <Testdir local('C:\\Users\\florian\\AppData\\Local\\Temp\\pytest-of-florian\\pytest-0\\testdir\\test_xfailure_xpass0')>

    def test_xfailure_xpass(self, testdir):
        testdir.makepyfile("""
                import pytest
                @pytest.mark.xfail
                def test_xpass():
                    pass
            """)
        result, dom = runandparse(testdir)
        #assert result.ret
        node = dom.getElementsByTagName("testsuite")[0]
        assert_attr(node, skips=1, tests=0)
        tnode = node.getElementsByTagName("testcase")[0]
        assert_attr(tnode,
            file="test_xfailure_xpass.py",
            line="1",
            classname="test_xfailure_xpass",
>           name="test_xpass")
E       Failed: 'AppData.Local.Temp.pytest-of-florian.pytest-0.testdir.test_xfailure_xpass0.test_xfailure_xpass' != 'test_xfailure_xpass'

..\..\..\..\devpi-test0\targz\pytest-2.8.2\testing\test_junitxml.py:280: Failed
---------------------------- Captured stdout call -----------------------------
============================= test session starts =============================
platform win32 -- Python 3.4.3, pytest-2.8.2, py-1.4.30, pluggy-0.3.1
rootdir: C:\Users\florian, inifile: 
collected 1 items

test_xfailure_xpass.py X

 generated xml file: C:\Users\florian\AppData\Local\Temp\pytest-of-florian\pytest-0\testdir\test_xfailure_xpass0\junit.xml 
========================== 1 xpassed in 0.03 seconds ==========================
________________________ TestPython.test_collect_error ________________________

self = <test_junitxml.TestPython object at 0x0000000004241710>
testdir = <Testdir local('C:\\Users\\florian\\AppData\\Local\\Temp\\pytest-of-florian\\pytest-0\\testdir\\test_collect_error0')>

    def test_collect_error(self, testdir):
        testdir.makepyfile("syntax error")
        result, dom = runandparse(testdir)
        assert result.ret
        node = dom.getElementsByTagName("testsuite")[0]
        assert_attr(node, errors=1, tests=0)
        tnode = node.getElementsByTagName("testcase")[0]
        assert_attr(tnode,
            file="test_collect_error.py",
            #classname="test_collect_error",
>           name="test_collect_error")
E       Failed: 'AppData.Local.Temp.pytest-of-florian.pytest-0.testdir.test_collect_error0.test_collect_error' != 'test_collect_error'

..\..\..\..\devpi-test0\targz\pytest-2.8.2\testing\test_junitxml.py:295: Failed
---------------------------- Captured stdout call -----------------------------
============================= test session starts =============================
platform win32 -- Python 3.4.3, pytest-2.8.2, py-1.4.30, pluggy-0.3.1
rootdir: C:\Users\florian, inifile: 
collected 0 items / 1 errors

=================================== ERRORS ====================================
 ERROR collecting AppData/Local/Temp/pytest-of-florian/pytest-0/testdir/test_collect_error0/test_collect_error.py 
..\..\..\..\devpi-test0\targz\pytest-2.8.2\.tox\py34\lib\site-packages\_pytest\python.py:591: in _importtestmodule
    mod = self.fspath.pyimport(ensuresyspath=importmode)
..\..\..\..\devpi-test0\targz\pytest-2.8.2\.tox\py34\lib\site-packages\py\_path\local.py:650: in pyimport
    __import__(modname)
E     File "C:\Users\florian\AppData\Local\Temp\pytest-of-florian\pytest-0\testdir\test_collect_error0\test_collect_error.py", line 1
E       syntax error
E                  ^
E   SyntaxError: invalid syntax
 generated xml file: C:\Users\florian\AppData\Local\Temp\pytest-of-florian\pytest-0\testdir\test_collect_error0\junit.xml 
=========================== 1 error in 0.27 seconds ===========================
_______________________ TestPython.test_collect_skipped _______________________

self = <test_junitxml.TestPython object at 0x00000000048E6550>
testdir = <Testdir local('C:\\Users\\florian\\AppData\\Local\\Temp\\pytest-of-florian\\pytest-0\\testdir\\test_collect_skipped0')>

    def test_collect_skipped(self, testdir):
        testdir.makepyfile("import pytest; pytest.skip('xyz')")
        result, dom = runandparse(testdir)
        assert result.ret == EXIT_NOTESTSCOLLECTED
        node = dom.getElementsByTagName("testsuite")[0]
        assert_attr(node, skips=1, tests=0)
        tnode = node.getElementsByTagName("testcase")[0]
        assert_attr(tnode,
            file="test_collect_skipped.py",
            #classname="test_collect_error",
>           name="test_collect_skipped")
E       Failed: 'AppData.Local.Temp.pytest-of-florian.pytest-0.testdir.test_collect_skipped0.test_collect_skipped' != 'test_collect_skipped'

..\..\..\..\devpi-test0\targz\pytest-2.8.2\testing\test_junitxml.py:311: Failed
---------------------------- Captured stdout call -----------------------------
============================= test session starts =============================
platform win32 -- Python 3.4.3, pytest-2.8.2, py-1.4.30, pluggy-0.3.1
rootdir: C:\Users\florian, inifile: 
collected 0 items / 1 skipped

 generated xml file: C:\Users\florian\AppData\Local\Temp\pytest-of-florian\pytest-0\testdir\test_collect_skipped0\junit.xml 
========================== 1 skipped in 0.03 seconds ==========================
___________________ TestSessionReports.test_collect_result ____________________

self = <test_runner.TestSessionReports object at 0x0000000002EE5630>
testdir = <Testdir local('C:\\Users\\florian\\AppData\\Local\\Temp\\pytest-of-florian\\pytest-0\\testdir\\test_collect_result0')>

    def test_collect_result(self, testdir):
        col = testdir.getmodulecol("""
                def test_func1():
                    pass
                class TestClass:
                    pass
            """)
        rep = runner.collect_one_node(col)
        assert not rep.failed
        assert not rep.skipped
        assert rep.passed
        locinfo = rep.location
>       assert locinfo[0] == col.fspath.basename
E       assert 'AppData/Loca...ect_result.py' == 'test_collect_result.py'
E         - AppData/Local/Temp/pytest-of-florian/pytest-0/testdir/test_collect_result0/test_collect_result.py
E         + test_collect_result.py

..\..\..\..\devpi-test0\targz\pytest-2.8.2\testing\test_runner.py:322: AssertionError
---------------------------- Captured stdout call -----------------------------
============================= test session starts =============================
platform win32 -- Python 3.4.3, pytest-2.8.2, py-1.4.30, pluggy-0.3.1
rootdir: C:\Users\florian, inifile: 
collected 0 items

==============================  in 0.00 seconds ===============================
_________________________ TestTerminal.test_writeline _________________________

self = <test_terminal.TestTerminal object at 0x0000000004DDDB38>
testdir = <Testdir local('C:\\Users\\florian\\AppData\\Local\\Temp\\pytest-of-florian\\pytest-0\\testdir\\test_writeline0')>
linecomp = <_pytest.pytester.LineComp object at 0x0000000004EEE0F0>

    def test_writeline(self, testdir, linecomp):
        modcol = testdir.getmodulecol("def test_one(): pass")
        rep = TerminalReporter(modcol.config, file=linecomp.stringio)
        rep.write_fspath_result(modcol.nodeid, ".")
        rep.write_line("hello world")
        lines = linecomp.stringio.getvalue().split('\n')
        assert not lines[0]
>       assert lines[1].endswith(modcol.name + " .")
E       assert <built-in method endswith of str object at 0x00000000041B2D68>(('AppData/Local/Temp/pytest-of-florian/pytest-0/testdir/test_writeline0/test_writeline.py' + ' .'))
E        +  where <built-in method endswith of str object at 0x00000000041B2D68> = 'test_writeline.py .'.endswith
E        +  and   'AppData/Local/Temp/pytest-of-florian/pytest-0/testdir/test_writeline0/test_writeline.py' = <Module 'AppData/Local/Temp/pytest-of-florian/pytest-0/testdir/test_writeline0/test_writeline.py'>.name

..\..\..\..\devpi-test0\targz\pytest-2.8.2\testing\test_terminal.py:106: AssertionError
---------------------------- Captured stdout call -----------------------------
============================= test session starts =============================
platform win32 -- Python 3.4.3, pytest-2.8.2, py-1.4.30, pluggy-0.3.1
rootdir: C:\Users\florian, inifile: 
collected 0 items

==============================  in 0.00 seconds ===============================
___________________ TestCollectonly.test_collectonly_basic ____________________

self = <test_terminal.TestCollectonly object at 0x0000000002E70A20>
testdir = <Testdir local('C:\\Users\\florian\\AppData\\Local\\Temp\\pytest-of-florian\\pytest-0\\testdir\\test_collectonly_basic0')>

    def test_collectonly_basic(self, testdir):
        testdir.makepyfile("""
                def test_func():
                    pass
            """)
        result = testdir.runpytest("--collect-only",)
        result.stdout.fnmatch_lines([
           "<Module 'test_collectonly_basic.py'>",
>          "  <Function 'test_func'>",
        ])
E       Failed: remains unmatched: "<Module 'test_collectonly_basic.py'>", see stderr

..\..\..\..\devpi-test0\targz\pytest-2.8.2\testing\test_terminal.py:215: Failed
---------------------------- Captured stdout call -----------------------------
============================= test session starts =============================
platform win32 -- Python 3.4.3, pytest-2.8.2, py-1.4.30, pluggy-0.3.1
rootdir: C:\Users\florian, inifile: 
collected 1 items
<Module 'AppData/Local/Temp/pytest-of-florian/pytest-0/testdir/test_collectonly_basic0/test_collectonly_basic.py'>
  <Function 'test_func'>

==============================  in 0.02 seconds ===============================
---------------------------- Captured stderr call -----------------------------
nomatch: "<Module 'test_collectonly_basic.py'>"
    and: '============================= test session starts ============================='
    and: 'platform win32 -- Python 3.4.3, pytest-2.8.2, py-1.4.30, pluggy-0.3.1'
    and: 'rootdir: C:\\Users\\florian, inifile: '
    and: 'collected 1 items'
    and: "<Module 'AppData/Local/Temp/pytest-of-florian/pytest-0/testdir/test_collectonly_basic0/test_collectonly_basic.py'>"
    and: "  <Function 'test_func'>"
    and: ''
    and: '==============================  in 0.02 seconds ==============================='
    and: ''
___________________ TestCollectonly.test_collectonly_fatal ____________________

self = <test_terminal.TestCollectonly object at 0x000000000416F7B8>
testdir = <Testdir local('C:\\Users\\florian\\AppData\\Local\\Temp\\pytest-of-florian\\pytest-0\\testdir\\test_collectonly_fatal0')>

    def test_collectonly_fatal(self, testdir):
        testdir.makeconftest("""
                def pytest_collectstart(collector):
                    assert 0, "urgs"
            """)
        result = testdir.runpytest("--collect-only")
        result.stdout.fnmatch_lines([
>           "*INTERNAL*args*"
        ])
E       Failed: remains unmatched: '*INTERNAL*args*', see stderr

..\..\..\..\devpi-test0\targz\pytest-2.8.2\testing\test_terminal.py:244: Failed
---------------------------- Captured stdout call -----------------------------
============================= test session starts =============================
platform win32 -- Python 3.4.3, pytest-2.8.2, py-1.4.30, pluggy-0.3.1
rootdir: C:\Users\florian, inifile: 
collected 0 items

==============================  in 0.00 seconds ===============================
---------------------------- Captured stderr call -----------------------------
nomatch: '*INTERNAL*args*'
    and: '============================= test session starts ============================='
    and: 'platform win32 -- Python 3.4.3, pytest-2.8.2, py-1.4.30, pluggy-0.3.1'
    and: 'rootdir: C:\\Users\\florian, inifile: '
    and: 'collected 0 items'
    and: ''
    and: '==============================  in 0.00 seconds ==============================='
    and: ''
__________________________ test_modulecol_roundtrip ___________________________

testdir = <Testdir local('C:\\Users\\florian\\AppData\\Local\\Temp\\pytest-of-florian\\pytest-0\\testdir\\test_modulecol_roundtrip0')>

    def test_modulecol_roundtrip(testdir):
        modcol = testdir.getmodulecol("pass", withinit=True)
        trail = modcol.nodeid
>       newcol = modcol.session.perform_collect([trail], genitems=0)[0]

..\..\..\..\devpi-test0\targz\pytest-2.8.2\testing\python\collect.py:681: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
..\..\..\..\devpi-test0\targz\pytest-2.8.2\.tox\py34\lib\site-packages\_pytest\main.py:567: in perform_collect
    items = self._perform_collect(args, genitems)
..\..\..\..\devpi-test0\targz\pytest-2.8.2\.tox\py34\lib\site-packages\_pytest\main.py:585: in _perform_collect
    parts = self._parsearg(arg)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <Session 'florian'>
arg = 'AppData/Local/Temp/pytest-of-florian/pytest-0/testdir/test_modulecol_roundtrip0/test_modulecol_roundtrip.py'

    def _parsearg(self, arg):
        """ return (fspath, names) tuple after checking the file exists. """
        arg = str(arg)
        if self.config.option.pyargs:
            arg = self._tryconvertpyarg(arg)
        parts = str(arg).split("::")
        relpath = parts[0].replace("/", os.sep)
        path = self.config.invocation_dir.join(relpath, abs=True)
        if not path.check():
            if self.config.option.pyargs:
                msg = "file or package not found: "
            else:
                msg = "file not found: "
>           raise pytest.UsageError(msg + arg)
E           _pytest.config.UsageError: file not found: AppData/Local/Temp/pytest-of-florian/pytest-0/testdir/test_modulecol_roundtrip0/test_modulecol_roundtrip.py

..\..\..\..\devpi-test0\targz\pytest-2.8.2\.tox\py34\lib\site-packages\_pytest\main.py:691: UsageError
---------------------------- Captured stdout call -----------------------------
============================= test session starts =============================
platform win32 -- Python 3.4.3, pytest-2.8.2, py-1.4.30, pluggy-0.3.1
rootdir: C:\Users\florian, inifile: 
collected 0 items

==============================  in 0.00 seconds ===============================
@The-Compiler The-Compiler added plugin: cache related to the cache builtin plugin platform: windows windows platform-specific problem labels Oct 6, 2015
@nicoddemus
Copy link
Member

Here's what I get when running devpi test on my machine (Windows 7):

  flakes: commands succeeded
  py26: commands succeeded
  py27: commands succeeded
  py33: commands succeeded
  py34: commands succeeded
  py35: commands succeeded
ERROR:   pypy: InterpreterNotFound: pypy
SKIPPED:  py27-pexpect: platform mismatch
  py27-xdist: commands succeeded
  py27-trial: commands succeeded
SKIPPED:  py35-pexpect: platform mismatch
  py35-xdist: commands succeeded
SKIPPED:  py35-trial: platform mismatch
  py27-nobyte: commands succeeded
  doctesting: commands succeeded
SKIPPED:  py27-cxfreeze: platform mismatch

@RonnyPfannschmidt
Copy link
Member

At first glance it seems like there might be a special file in your home @The-Compiler

@The-Compiler
Copy link
Member Author

FWIW I tried deleting C:\Users\florian\.cache, C:\Users\florian\AppData\Local\pytest*, and C:\Users\florian\proj\pytest\.cache without anything changing.

@RonnyPfannschmidt
Copy link
Member

perhaps a conftest, or a stray tox/pytest.ini?

@nicoddemus
Copy link
Member

I'm not sure this is relevant anymore (feel free to reopen @The-Compiler if you disagree, I just stumbled on this one by chance)

@The-Compiler
Copy link
Member Author

FWIW I still can reproduce this, but I'm not really interested in investigating further to be honest.

Since things seem to be fine for other people, I'll assume this is just something being really weird on my system, so let's close this.

@nicoddemus
Copy link
Member

Is this still an issue or should we close this?

@The-Compiler
Copy link
Member Author

I'll re-check after my exams, i.e. in 3-4 weeks.

@nicoddemus
Copy link
Member

@The-Compiler sure thing, thanks!

@nicoddemus nicoddemus added plugin: junitxml related to the junitxml builtin plugin and removed plugin: junitxml related to the junitxml builtin plugin labels Feb 2, 2017
@The-Compiler
Copy link
Member Author

In that same VM, things still look the same.

I just tried in a quite clean Windows 10 VM, and I get some falures - and then an exception in pytest_runtest_logreport:

C:\build\pytest>tox -e py36 -- --color=no
GLOB sdist-make: C:\build\pytest\setup.py
py36 create: C:\build\pytest\.tox\py36
py36 installdeps: hypothesis>=3.5.2, nose, mock, requests
py36 inst: C:\build\pytest\.tox\dist\pytest-3.0.7.dev0.zip
py36 installed: colorama==0.3.7,hypothesis==3.6.1,mock==2.0.0,nose==1.3.7,pbr==1.10.0,py==1.4.32,pytest==3.0.7.dev0,requests==2.13.0,six==1.10.0
py36 runtests: PYTHONHASHSEED='290'
py36 runtests: commands[0] | pytest --lsof -rfsxX --color=no
============================= test session starts =============================
platform win32 -- Python 3.6.0, pytest-3.0.7.dev0, py-1.4.32, pluggy-0.4.0
rootdir: C:\build\pytest, inifile: tox.ini
plugins: hypothesis-3.6.1
collected 1756 items

doc\en\example\assertion\test_failures.py .
doc\en\example\assertion\test_setup_flow_example.py ..
doc\en\example\assertion\global_testmodule_config\test_hello.py .
doc\en\example\costlysetup\sub1\test_quick.py .
doc\en\example\costlysetup\sub2\test_two.py ..
doc\en\example\py2py3\test_py3.py .
testing\acceptance_test.py ...............sF...............................x...........
testing\deprecated_test.py ......
testing\test_argcomplete.py ss
testing\test_assertion.py ................................................................s.....
testing\test_assertrewrite.py ........................................ssss..........
testing\test_cache.py ...ss.............
testing\test_capture.py ...........x......................F...........s.....s.........s...........s.........s..........
testing\test_collection.py ...........x....F......................
testing\test_compat.py ...
testing\test_config.py .........x.....s...........................s.............................
testing\test_conftest.py .................................................
testing\test_doctest.py .......................................................................................
testing\test_entry_points.py ...
testing\test_helpconfig.py .......
testing\test_junitxml.py ..........F................................s.x..
testing\test_mark.py .....................................x.x.......x.........x.
testing\test_monkeypatch.py ................................
testing\test_nose.py ...................
testing\test_parseopt.py ...........................s
testing\test_pastebin.py ....
testing\test_pdb.py ....sssssssssssssss.s.
testing\test_pluginmanager.py ...........................
testing\test_pytester.py x.......
testing\test_recwarn.py ......................
testing\test_resultlog.py ...........
testing\test_runner.py ...................ssssssssssssss......x.......................
testing\test_runner_xunit.py ...............
testing\test_session.py .................
testing\test_skipping.py ...s..................................................................
testing\test_terminal.py ..........s..........................s...................................Traceback (most recent call last):
  File "c:\build\pytest\.tox\py36\lib\site-packages\_pytest\main.py", line 98, in wrap_session
    session.exitstatus = doit(config, session) or 0
  File "c:\build\pytest\.tox\py36\lib\site-packages\_pytest\main.py", line 133, in _main
    config.hook.pytest_runtestloop(session=session)
  File "c:\build\pytest\.tox\py36\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 745, in __call__
    return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
  File "c:\build\pytest\.tox\py36\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 339, in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
  File "c:\build\pytest\.tox\py36\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 334, in <lambda>
    _MultiCall(methods, kwargs, hook.spec_opts).execute()
  File "c:\build\pytest\.tox\py36\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 614, in execute
    res = hook_impl.function(*args)
  File "c:\build\pytest\.tox\py36\lib\site-packages\_pytest\main.py", line 154, in pytest_runtestloop
    item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
  File "c:\build\pytest\.tox\py36\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 745, in __call__
    return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
  File "c:\build\pytest\.tox\py36\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 339, in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
  File "c:\build\pytest\.tox\py36\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 334, in <lambda>
    _MultiCall(methods, kwargs, hook.spec_opts).execute()
  File "c:\build\pytest\.tox\py36\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 613, in execute
    return _wrapped_call(hook_impl.function(*args), self.execute)
  File "c:\build\pytest\.tox\py36\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 254, in _wrapped_call
    return call_outcome.get_result()
  File "c:\build\pytest\.tox\py36\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 279, in get_result
    raise ex[1].with_traceback(ex[2])
  File "c:\build\pytest\.tox\py36\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 265, in __init__
    self.result = func()
  File "c:\build\pytest\.tox\py36\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 614, in execute
    res = hook_impl.function(*args)
  File "c:\build\pytest\.tox\py36\lib\site-packages\_pytest\runner.py", line 66, in pytest_runtest_protocol
    runtestprotocol(item, nextitem=nextitem)
  File "c:\build\pytest\.tox\py36\lib\site-packages\_pytest\runner.py", line 79, in runtestprotocol
    reports.append(call_and_report(item, "call", log))
  File "c:\build\pytest\.tox\py36\lib\site-packages\_pytest\runner.py", line 137, in call_and_report
    hook.pytest_runtest_logreport(report=report)
  File "c:\build\pytest\.tox\py36\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 745, in __call__
    return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
  File "c:\build\pytest\.tox\py36\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 339, in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
  File "c:\build\pytest\.tox\py36\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 334, in <lambda>
    _MultiCall(methods, kwargs, hook.spec_opts).execute()
  File "c:\build\pytest\.tox\py36\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 614, in execute
    res = hook_impl.function(*args)
  File "c:\build\pytest\.tox\py36\lib\site-packages\_pytest\terminal.py", line 207, in pytest_runtest_logreport
    self.write_fspath_result(rep.nodeid, letter)
  File "c:\build\pytest\.tox\py36\lib\site-packages\_pytest\terminal.py", line 123, in write_fspath_result
    self._tw.write(res)
  File "c:\build\pytest\.tox\py36\lib\site-packages\py\_io\terminalwriter.py", line 207, in write
    write_out(self._file, markupmsg)
  File "c:\build\pytest\.tox\py36\lib\site-packages\py\_io\terminalwriter.py", line 342, in write_out
    fil.write(msg)
  File "c:\build\pytest\.tox\py36\lib\site-packages\colorama\ansitowin32.py", line 40, in write
    self.__convertor.write(text)
  File "c:\build\pytest\.tox\py36\lib\site-packages\colorama\ansitowin32.py", line 141, in write
    self.write_and_convert(text)
  File "c:\build\pytest\.tox\py36\lib\site-packages\colorama\ansitowin32.py", line 169, in write_and_convert
    self.write_plain_text(text, cursor, len(text))
  File "c:\build\pytest\.tox\py36\lib\site-packages\colorama\ansitowin32.py", line 175, in write_plain_text
    self.wrapped.flush()
OSError: [WinError 87] The parameter is incorrect

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\build\pytest\.tox\py36\lib\site-packages\_pytest\main.py", line 111, in wrap_session
    config.notify_exception(excinfo, config.option)
  File "c:\build\pytest\.tox\py36\lib\site-packages\_pytest\config.py", line 937, in notify_exception
    excinfo=excinfo)
  File "c:\build\pytest\.tox\py36\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 745, in __call__
    return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
  File "c:\build\pytest\.tox\py36\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 339, in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
  File "c:\build\pytest\.tox\py36\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 334, in <lambda>
    _MultiCall(methods, kwargs, hook.spec_opts).execute()
  File "c:\build\pytest\.tox\py36\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 614, in execute
    res = hook_impl.function(*args)
  File "c:\build\pytest\.tox\py36\lib\site-packages\_pytest\terminal.py", line 164, in pytest_internalerror
    self.write_line("INTERNALERROR> " + line)
  File "c:\build\pytest\.tox\py36\lib\site-packages\_pytest\terminal.py", line 145, in write_line
    self.ensure_newline()
  File "c:\build\pytest\.tox\py36\lib\site-packages\_pytest\terminal.py", line 136, in ensure_newline
    self._tw.line()
  File "c:\build\pytest\.tox\py36\lib\site-packages\py\_io\terminalwriter.py", line 212, in line
    self.write('\n')
  File "c:\build\pytest\.tox\py36\lib\site-packages\py\_io\terminalwriter.py", line 207, in write
    write_out(self._file, markupmsg)
  File "c:\build\pytest\.tox\py36\lib\site-packages\py\_io\terminalwriter.py", line 342, in write_out
    fil.write(msg)
  File "c:\build\pytest\.tox\py36\lib\site-packages\colorama\ansitowin32.py", line 40, in write
    self.__convertor.write(text)
  File "c:\build\pytest\.tox\py36\lib\site-packages\colorama\ansitowin32.py", line 141, in write
    self.write_and_convert(text)
  File "c:\build\pytest\.tox\py36\lib\site-packages\colorama\ansitowin32.py", line 169, in write_and_convert
    self.write_plain_text(text, cursor, len(text))
  File "c:\build\pytest\.tox\py36\lib\site-packages\colorama\ansitowin32.py", line 174, in write_plain_text
    self.wrapped.write(text[start:end])
OSError: [WinError 87] The parameter is incorrect

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Program Files\Python36\Lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "C:\Program Files\Python36\Lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\build\pytest\.tox\py36\Scripts\pytest.EXE\__main__.py", line 9, in <module>
  File "c:\build\pytest\.tox\py36\lib\site-packages\_pytest\config.py", line 57, in main
    return config.hook.pytest_cmdline_main(config=config)
  File "c:\build\pytest\.tox\py36\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 745, in __call__
    return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
  File "c:\build\pytest\.tox\py36\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 339, in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
  File "c:\build\pytest\.tox\py36\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 334, in <lambda>
    _MultiCall(methods, kwargs, hook.spec_opts).execute()
  File "c:\build\pytest\.tox\py36\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 614, in execute
    res = hook_impl.function(*args)
  File "c:\build\pytest\.tox\py36\lib\site-packages\_pytest\main.py", line 127, in pytest_cmdline_main
    return wrap_session(config, _main)
  File "c:\build\pytest\.tox\py36\lib\site-packages\_pytest\main.py", line 122, in wrap_session
    exitstatus=session.exitstatus)
  File "c:\build\pytest\.tox\py36\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 745, in __call__
    return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
  File "c:\build\pytest\.tox\py36\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 339, in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
  File "c:\build\pytest\.tox\py36\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 334, in <lambda>
    _MultiCall(methods, kwargs, hook.spec_opts).execute()
  File "c:\build\pytest\.tox\py36\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 613, in execute
    return _wrapped_call(hook_impl.function(*args), self.execute)
  File "c:\build\pytest\.tox\py36\lib\site-packages\_pytest\vendored_packages\pluggy.py", line 250, in _wrapped_call
    wrap_controller.send(call_outcome)
  File "c:\build\pytest\.tox\py36\lib\site-packages\_pytest\terminal.py", line 359, in pytest_sessionfinish
    self._tw.line("")
  File "c:\build\pytest\.tox\py36\lib\site-packages\py\_io\terminalwriter.py", line 212, in line
    self.write('\n')
  File "c:\build\pytest\.tox\py36\lib\site-packages\py\_io\terminalwriter.py", line 207, in write
    write_out(self._file, markupmsg)
  File "c:\build\pytest\.tox\py36\lib\site-packages\py\_io\terminalwriter.py", line 342, in write_out
    fil.write(msg)
  File "c:\build\pytest\.tox\py36\lib\site-packages\colorama\ansitowin32.py", line 40, in write
    self.__convertor.write(text)
  File "c:\build\pytest\.tox\py36\lib\site-packages\colorama\ansitowin32.py", line 141, in write
    self.write_and_convert(text)
  File "c:\build\pytest\.tox\py36\lib\site-packages\colorama\ansitowin32.py", line 169, in write_and_convert
    self.write_plain_text(text, cursor, len(text))
  File "c:\build\pytest\.tox\py36\lib\site-packages\colorama\ansitowin32.py", line 174, in write_plain_text
    self.wrapped.write(text[start:end])
OSError: [WinError 87] The parameter is incorrect
Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>
OSError: [WinError 87] The parameter is incorrect
ERROR: InvocationError: 'C:\\build\\pytest\\.tox\\py36\\Scripts\\pytest.EXE --lsof -rfsxX --color=no'
______________________________________________________ summary _______________________________________________________
ERROR:   py36: commands failed

@nicoddemus
Copy link
Member

@The-Compiler could you try with 3.1.2 when you have the time? I believe #2467 fixed the OSError you got there.

@The-Compiler
Copy link
Member Author

This seems to be gone - only 7 failing tests with weird collection errors left, but I can't be bothered to look into them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: windows windows platform-specific problem plugin: cache related to the cache builtin plugin plugin: junitxml related to the junitxml builtin plugin
Projects
None yet
Development

No branches or pull requests

3 participants