Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 500474 Details for
Bug 635632
dev-python/pytest-shutil-1.2.11 fails tests - OSError: [Errno 9] Bad file descriptor
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
/var/log/portage/build/dev-python/pytest-shutil-1.2.11:20171027-211519.log
pytest-shutil-1.2.11:20171027-211519.log (text/x-log), 26.18 KB, created by
eroen
on 2017-10-27 21:18:50 UTC
(
hide
)
Description:
/var/log/portage/build/dev-python/pytest-shutil-1.2.11:20171027-211519.log
Filename:
MIME Type:
Creator:
eroen
Created:
2017-10-27 21:18:50 UTC
Size:
26.18 KB
patch
obsolete
> * Package: dev-python/pytest-shutil-1.2.11 > * Repository: gentoo > * Maintainer: dolsen@gentoo.org > * Upstream: eeaston@gmail.com > * USE: abi_x86_64 amd64 elibc_glibc kernel_linux python_targets_python2_7 python_targets_python3_4 python_targets_python3_5 python_targets_python3_6 test userland_GNU > * FEATURES: compressdebug installsources network-sandbox preserve-libs sandbox splitdebug test userpriv usersandbox >>>> Unpacking source... >>>> Unpacking pytest-shutil-1.2.11.tar.gz to /var/tmp/portage/dev-python/pytest-shutil-1.2.11/work >>>> Source unpacked in /var/tmp/portage/dev-python/pytest-shutil-1.2.11/work >>>> Preparing source in /var/tmp/portage/dev-python/pytest-shutil-1.2.11/work/pytest-shutil-1.2.11 ... >>>> Source prepared. >>>> Configuring source in /var/tmp/portage/dev-python/pytest-shutil-1.2.11/work/pytest-shutil-1.2.11 ... >>>> Source configured. >>>> Compiling source in /var/tmp/portage/dev-python/pytest-shutil-1.2.11/work/pytest-shutil-1.2.11 ... > * python2_7: running distutils-r1_run_phase distutils-r1_python_compile >/usr/bin/python2.7 setup.py build >running build >running build_py >creating /var/tmp/portage/dev-python/pytest-shutil-1.2.11/work/pytest-shutil-1.2.11-python2_7/lib/pytest_shutil >copying pytest_shutil/__init__.py -> /var/tmp/portage/dev-python/pytest-shutil-1.2.11/work/pytest-shutil-1.2.11-python2_7/lib/pytest_shutil >copying pytest_shutil/env.py -> /var/tmp/portage/dev-python/pytest-shutil-1.2.11/work/pytest-shutil-1.2.11-python2_7/lib/pytest_shutil >copying pytest_shutil/cmdline.py -> /var/tmp/portage/dev-python/pytest-shutil-1.2.11/work/pytest-shutil-1.2.11-python2_7/lib/pytest_shutil >copying pytest_shutil/workspace.py -> /var/tmp/portage/dev-python/pytest-shutil-1.2.11/work/pytest-shutil-1.2.11-python2_7/lib/pytest_shutil >copying pytest_shutil/run.py -> /var/tmp/portage/dev-python/pytest-shutil-1.2.11/work/pytest-shutil-1.2.11-python2_7/lib/pytest_shutil >running egg_info >writing requirements to pytest_shutil.egg-info/requires.txt >writing pytest_shutil.egg-info/PKG-INFO >writing top-level names to pytest_shutil.egg-info/top_level.txt >writing dependency_links to pytest_shutil.egg-info/dependency_links.txt >writing entry points to pytest_shutil.egg-info/entry_points.txt >reading manifest file 'pytest_shutil.egg-info/SOURCES.txt' >reading manifest template 'MANIFEST.in' >writing manifest file 'pytest_shutil.egg-info/SOURCES.txt' >warning: build_py: byte-compiling is disabled, skipping. > > * python3_4: running distutils-r1_run_phase distutils-r1_python_compile >/usr/bin/python3.4 setup.py build >running build >running build_py >creating /var/tmp/portage/dev-python/pytest-shutil-1.2.11/work/pytest-shutil-1.2.11-python3_4/lib/pytest_shutil >copying pytest_shutil/__init__.py -> /var/tmp/portage/dev-python/pytest-shutil-1.2.11/work/pytest-shutil-1.2.11-python3_4/lib/pytest_shutil >copying pytest_shutil/env.py -> /var/tmp/portage/dev-python/pytest-shutil-1.2.11/work/pytest-shutil-1.2.11-python3_4/lib/pytest_shutil >copying pytest_shutil/cmdline.py -> /var/tmp/portage/dev-python/pytest-shutil-1.2.11/work/pytest-shutil-1.2.11-python3_4/lib/pytest_shutil >copying pytest_shutil/workspace.py -> /var/tmp/portage/dev-python/pytest-shutil-1.2.11/work/pytest-shutil-1.2.11-python3_4/lib/pytest_shutil >copying pytest_shutil/run.py -> /var/tmp/portage/dev-python/pytest-shutil-1.2.11/work/pytest-shutil-1.2.11-python3_4/lib/pytest_shutil >running egg_info >writing entry points to pytest_shutil.egg-info/entry_points.txt >writing pytest_shutil.egg-info/PKG-INFO >writing dependency_links to pytest_shutil.egg-info/dependency_links.txt >writing top-level names to pytest_shutil.egg-info/top_level.txt >writing requirements to pytest_shutil.egg-info/requires.txt >reading manifest file 'pytest_shutil.egg-info/SOURCES.txt' >reading manifest template 'MANIFEST.in' >writing manifest file 'pytest_shutil.egg-info/SOURCES.txt' >warning: build_py: byte-compiling is disabled, skipping. > > * python3_5: running distutils-r1_run_phase distutils-r1_python_compile >/usr/bin/python3.5 setup.py build >running build >running build_py >creating /var/tmp/portage/dev-python/pytest-shutil-1.2.11/work/pytest-shutil-1.2.11-python3_5/lib/pytest_shutil >copying pytest_shutil/__init__.py -> /var/tmp/portage/dev-python/pytest-shutil-1.2.11/work/pytest-shutil-1.2.11-python3_5/lib/pytest_shutil >copying pytest_shutil/env.py -> /var/tmp/portage/dev-python/pytest-shutil-1.2.11/work/pytest-shutil-1.2.11-python3_5/lib/pytest_shutil >copying pytest_shutil/cmdline.py -> /var/tmp/portage/dev-python/pytest-shutil-1.2.11/work/pytest-shutil-1.2.11-python3_5/lib/pytest_shutil >copying pytest_shutil/workspace.py -> /var/tmp/portage/dev-python/pytest-shutil-1.2.11/work/pytest-shutil-1.2.11-python3_5/lib/pytest_shutil >copying pytest_shutil/run.py -> /var/tmp/portage/dev-python/pytest-shutil-1.2.11/work/pytest-shutil-1.2.11-python3_5/lib/pytest_shutil >running egg_info >writing requirements to pytest_shutil.egg-info/requires.txt >writing pytest_shutil.egg-info/PKG-INFO >writing dependency_links to pytest_shutil.egg-info/dependency_links.txt >writing entry points to pytest_shutil.egg-info/entry_points.txt >writing top-level names to pytest_shutil.egg-info/top_level.txt >reading manifest file 'pytest_shutil.egg-info/SOURCES.txt' >reading manifest template 'MANIFEST.in' >writing manifest file 'pytest_shutil.egg-info/SOURCES.txt' >warning: build_py: byte-compiling is disabled, skipping. > > * python3_6: running distutils-r1_run_phase distutils-r1_python_compile >/usr/bin/python3.6 setup.py build >running build >running build_py >creating /var/tmp/portage/dev-python/pytest-shutil-1.2.11/work/pytest-shutil-1.2.11-python3_6/lib/pytest_shutil >copying pytest_shutil/__init__.py -> /var/tmp/portage/dev-python/pytest-shutil-1.2.11/work/pytest-shutil-1.2.11-python3_6/lib/pytest_shutil >copying pytest_shutil/env.py -> /var/tmp/portage/dev-python/pytest-shutil-1.2.11/work/pytest-shutil-1.2.11-python3_6/lib/pytest_shutil >copying pytest_shutil/cmdline.py -> /var/tmp/portage/dev-python/pytest-shutil-1.2.11/work/pytest-shutil-1.2.11-python3_6/lib/pytest_shutil >copying pytest_shutil/workspace.py -> /var/tmp/portage/dev-python/pytest-shutil-1.2.11/work/pytest-shutil-1.2.11-python3_6/lib/pytest_shutil >copying pytest_shutil/run.py -> /var/tmp/portage/dev-python/pytest-shutil-1.2.11/work/pytest-shutil-1.2.11-python3_6/lib/pytest_shutil >running egg_info >writing pytest_shutil.egg-info/PKG-INFO >writing dependency_links to pytest_shutil.egg-info/dependency_links.txt >writing entry points to pytest_shutil.egg-info/entry_points.txt >writing requirements to pytest_shutil.egg-info/requires.txt >writing top-level names to pytest_shutil.egg-info/top_level.txt >reading manifest file 'pytest_shutil.egg-info/SOURCES.txt' >reading manifest template 'MANIFEST.in' >writing manifest file 'pytest_shutil.egg-info/SOURCES.txt' >warning: build_py: byte-compiling is disabled, skipping. > >>>> Source compiled. >>>> Test phase: dev-python/pytest-shutil-1.2.11 > * python2_7: running distutils-r1_run_phase python_test >/usr/bin/python2.7 setup.py test >running test >running egg_info >writing requirements to pytest_shutil.egg-info/requires.txt >writing pytest_shutil.egg-info/PKG-INFO >writing top-level names to pytest_shutil.egg-info/top_level.txt >writing dependency_links to pytest_shutil.egg-info/dependency_links.txt >writing entry points to pytest_shutil.egg-info/entry_points.txt >reading manifest file 'pytest_shutil.egg-info/SOURCES.txt' >reading manifest template 'MANIFEST.in' >writing manifest file 'pytest_shutil.egg-info/SOURCES.txt' >running build_ext >============================================== test session starts ============================================== >platform linux2 -- Python 2.7.14, pytest-3.2.2, py-1.4.34, pluggy-0.4.0 >rootdir: /var/tmp/portage/dev-python/pytest-shutil-1.2.11/work/pytest-shutil-1.2.11, inifile: setup.cfg >plugins: shutil-1.2.11, xprocess-0.9.1, xdist-1.20.0, subtesthack-0.1.1, localserver-0.3.7, isort-0.1.0, forked-0.2, flake8-0.8.1, expect-1.1.0, cov-2.3.1, hypothesis-3.31.1, betamax-0.8.0, backports.unittest-mock-1.3 >collected 49 items > >tests/integration/test_cmdline_integration.py . >tests/integration/test_env_integration.py .... >tests/integration/test_run_integration.py ..........FFFFFFFF >tests/integration/test_workspace_integration.py . >tests/unit/test_env.py ....... >tests/unit/test_run.py .................. > >--- generated xml file: /var/tmp/portage/dev-python/pytest-shutil-1.2.11/work/pytest-shutil-1.2.11/junit.xml ---- >=================================================== FAILURES ==================================================== >____________________________________________ test_run_in_subprocess _____________________________________________ > > def test_run_in_subprocess(): > def fn(): > return None > with no_cov(): >> res = run.run_in_subprocess(fn)() > >tests/integration/test_run_integration.py:174: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >pytest_shutil/run.py:200: in inner > chan.receive(None) >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <Channel id=1 closed>, timeout = None > > def receive(self, timeout=None): > """receive a data item that was sent from the other side. > timeout: None [default] blocked waiting. A positive number > indicates the number of seconds after which a channel.TimeoutError > exception will be raised if no item was received. > Note that exceptions from the remotely executing code will be > reraised as channel.RemoteError exceptions containing > a textual representation of the remote traceback. > """ > itemqueue = self._items > if itemqueue is None: > raise IOError("cannot receive(), channel has receiver callback") > try: > x = itemqueue.get(timeout=timeout) > except self.gateway.execmodel.queue.Empty: > raise self.TimeoutError("no item after %r seconds" % (timeout)) > if x is ENDMARKER: > itemqueue.put(x) # for other receivers >> raise self._getremoteerror() or EOFError() >E RemoteError: Traceback (most recent call last): >E File "<string>", line 1076, in executetask >E File "<remote exec>", line 4, in _run_in_subprocess_remote_fn >E File "pytest_shutil/run.py", line 165, in _run_in_subprocess_redirect_stdout >E os.dup2(fd, 1) >E OSError: [Errno 9] Bad file descriptor > >/usr/lib64/python2.7/site-packages/execnet/gateway_base.py:737: RemoteError >____________________________________ test_run_in_subprocess_is_a_subprocess _____________________________________ > > def test_run_in_subprocess_is_a_subprocess(): >> pid = run.run_in_subprocess(os.getpid)() > >tests/integration/test_run_integration.py:179: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >pytest_shutil/run.py:200: in inner > chan.receive(None) >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <Channel id=1 closed>, timeout = None > > def receive(self, timeout=None): > """receive a data item that was sent from the other side. > timeout: None [default] blocked waiting. A positive number > indicates the number of seconds after which a channel.TimeoutError > exception will be raised if no item was received. > Note that exceptions from the remotely executing code will be > reraised as channel.RemoteError exceptions containing > a textual representation of the remote traceback. > """ > itemqueue = self._items > if itemqueue is None: > raise IOError("cannot receive(), channel has receiver callback") > try: > x = itemqueue.get(timeout=timeout) > except self.gateway.execmodel.queue.Empty: > raise self.TimeoutError("no item after %r seconds" % (timeout)) > if x is ENDMARKER: > itemqueue.put(x) # for other receivers >> raise self._getremoteerror() or EOFError() >E RemoteError: Traceback (most recent call last): >E File "<string>", line 1076, in executetask >E File "<remote exec>", line 4, in _run_in_subprocess_remote_fn >E File "pytest_shutil/run.py", line 165, in _run_in_subprocess_redirect_stdout >E os.dup2(fd, 1) >E OSError: [Errno 9] Bad file descriptor > >/usr/lib64/python2.7/site-packages/execnet/gateway_base.py:737: RemoteError >___________________________________ test_run_in_subprocess_uses_passed_python ___________________________________ > > def test_run_in_subprocess_uses_passed_python(): > def fn(): > import sys # @Reimport > return sys.executable > with no_cov(): >> python = run.run_in_subprocess(fn, python=sys.executable)() > >tests/integration/test_run_integration.py:188: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >pytest_shutil/run.py:200: in inner > chan.receive(None) >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <Channel id=1 closed>, timeout = None > > def receive(self, timeout=None): > """receive a data item that was sent from the other side. > timeout: None [default] blocked waiting. A positive number > indicates the number of seconds after which a channel.TimeoutError > exception will be raised if no item was received. > Note that exceptions from the remotely executing code will be > reraised as channel.RemoteError exceptions containing > a textual representation of the remote traceback. > """ > itemqueue = self._items > if itemqueue is None: > raise IOError("cannot receive(), channel has receiver callback") > try: > x = itemqueue.get(timeout=timeout) > except self.gateway.execmodel.queue.Empty: > raise self.TimeoutError("no item after %r seconds" % (timeout)) > if x is ENDMARKER: > itemqueue.put(x) # for other receivers >> raise self._getremoteerror() or EOFError() >E RemoteError: Traceback (most recent call last): >E File "<string>", line 1076, in executetask >E File "<remote exec>", line 4, in _run_in_subprocess_remote_fn >E File "pytest_shutil/run.py", line 165, in _run_in_subprocess_redirect_stdout >E os.dup2(fd, 1) >E OSError: [Errno 9] Bad file descriptor > >/usr/lib64/python2.7/site-packages/execnet/gateway_base.py:737: RemoteError >___________________________________________ test_run_in_subprocess_cd ___________________________________________ > > def test_run_in_subprocess_cd(): > with workspace.Workspace() as ws: > with no_cov(): >> cwd = run.run_in_subprocess(os.getcwd, cd=ws.workspace)() > >tests/integration/test_run_integration.py:195: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >pytest_shutil/run.py:200: in inner > chan.receive(None) >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <Channel id=3 closed>, timeout = None > > def receive(self, timeout=None): > """receive a data item that was sent from the other side. > timeout: None [default] blocked waiting. A positive number > indicates the number of seconds after which a channel.TimeoutError > exception will be raised if no item was received. > Note that exceptions from the remotely executing code will be > reraised as channel.RemoteError exceptions containing > a textual representation of the remote traceback. > """ > itemqueue = self._items > if itemqueue is None: > raise IOError("cannot receive(), channel has receiver callback") > try: > x = itemqueue.get(timeout=timeout) > except self.gateway.execmodel.queue.Empty: > raise self.TimeoutError("no item after %r seconds" % (timeout)) > if x is ENDMARKER: > itemqueue.put(x) # for other receivers >> raise self._getremoteerror() or EOFError() >E RemoteError: Traceback (most recent call last): >E File "<string>", line 1076, in executetask >E File "<remote exec>", line 4, in _run_in_subprocess_remote_fn >E File "/var/tmp/portage/dev-python/pytest-shutil-1.2.11/work/pytest-shutil-1.2.11/pytest_shutil/run.py", line 165, in _run_in_subprocess_redirect_stdout >E os.dup2(fd, 1) >E OSError: [Errno 9] Bad file descriptor > >/usr/lib64/python2.7/site-packages/execnet/gateway_base.py:737: RemoteError >--------------------------------------------- Captured stderr call ---------------------------------------------- >2017-10-27 23:15:35,465 DEBUG pytest_shutil.workspace >2017-10-27 23:15:35,465 DEBUG pytest_shutil.workspace ======================================================= >2017-10-27 23:15:35,465 DEBUG pytest_shutil.workspace pytest_shutil created workspace /var/tmp/portage/dev-python/pytest-shutil-1.2.11/temp/tmplbKqIV >2017-10-27 23:15:35,465 DEBUG pytest_shutil.workspace This workspace will delete itself on teardown >2017-10-27 23:15:35,465 DEBUG pytest_shutil.workspace ======================================================= >2017-10-27 23:15:35,465 DEBUG pytest_shutil.workspace >________________________________________ test_run_in_subprocess_timeout _________________________________________ > > def test_run_in_subprocess_timeout(): > with pytest.raises(execnet.TimeoutError) as exc: # @UndefinedVariable > with no_cov(): >> run.run_in_subprocess(time.sleep, timeout=0)(1) > >tests/integration/test_run_integration.py:202: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >pytest_shutil/run.py:200: in inner > chan.receive(None) >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <Channel id=1 closed>, timeout = None > > def receive(self, timeout=None): > """receive a data item that was sent from the other side. > timeout: None [default] blocked waiting. A positive number > indicates the number of seconds after which a channel.TimeoutError > exception will be raised if no item was received. > Note that exceptions from the remotely executing code will be > reraised as channel.RemoteError exceptions containing > a textual representation of the remote traceback. > """ > itemqueue = self._items > if itemqueue is None: > raise IOError("cannot receive(), channel has receiver callback") > try: > x = itemqueue.get(timeout=timeout) > except self.gateway.execmodel.queue.Empty: > raise self.TimeoutError("no item after %r seconds" % (timeout)) > if x is ENDMARKER: > itemqueue.put(x) # for other receivers >> raise self._getremoteerror() or EOFError() >E RemoteError: Traceback (most recent call last): >E File "<string>", line 1076, in executetask >E File "<remote exec>", line 4, in _run_in_subprocess_remote_fn >E File "pytest_shutil/run.py", line 165, in _run_in_subprocess_redirect_stdout >E os.dup2(fd, 1) >E OSError: [Errno 9] Bad file descriptor > >/usr/lib64/python2.7/site-packages/execnet/gateway_base.py:737: RemoteError >_______________________________________ test_run_in_subprocess_exception ________________________________________ > > def test_run_in_subprocess_exception(): > def fn(v): > raise v > v = ValueError(uuid4()) > with pytest.raises(execnet.RemoteError) as exc: # @UndefinedVariable > with no_cov(): > run.run_in_subprocess(fn)(v) >> assert str(v) in str(exc.value) >E assert 'dc503e58-ad0a-4997-95e7-7ec60ed1e9c8' in 'Traceback (most recent call last):\n File "<string>", line 1076, in executetask\n File "<remote exec>", line 4, in ...run.py", line 165, in _run_in_subprocess_redirect_stdout\n os.dup2(fd, 1)\nOSError: [Errno 9] Bad file descriptor\n' >E + where 'dc503e58-ad0a-4997-95e7-7ec60ed1e9c8' = str(ValueError(UUID('dc503e58-ad0a-4997-95e7-7ec60ed1e9c8'),)) >E + and 'Traceback (most recent call last):\n File "<string>", line 1076, in executetask\n File "<remote exec>", line 4, in ...run.py", line 165, in _run_in_subprocess_redirect_stdout\n os.dup2(fd, 1)\nOSError: [Errno 9] Bad file descriptor\n' = str(RemoteError: Traceback (most recent call last):\n File "<string>", line 1076, ...cess_redirect_stdout\n os.dup2(fd, 1)\nOSError: [Errno 9] Bad file descriptor\n) >E + where RemoteError: Traceback (most recent call last):\n File "<string>", line 1076, ...cess_redirect_stdout\n os.dup2(fd, 1)\nOSError: [Errno 9] Bad file descriptor\n = <ExceptionInfo RemoteError tblen=3>.value > >tests/integration/test_run_integration.py:213: AssertionError >_____________________________________ test_run_in_subprocess_passes_stdout ______________________________________ > > @pytest.mark.xfail('sys.version_info >= (3, 0, 0)') > def test_run_in_subprocess_passes_stdout(): > def fn(x): > import sys # @Reimport > sys.stdout.write(x) > guid = str(uuid4()) > cmd = """from pytest_shutil.run import run_in_subprocess > run_in_subprocess(%r)(%r) > """ % (textwrap.dedent(inspect.getsource(fn)), guid) > with no_cov(): > p = subprocess.Popen([sys.executable, '-c', cmd], stdout=subprocess.PIPE) > (out, _) = p.communicate() >> assert out == guid >E AssertionError: assert '' == 'bb2f081d-746a-4fcc-ab4f-fd0378b50666' >E + bb2f081d-746a-4fcc-ab4f-fd0378b50666 > >tests/integration/test_run_integration.py:228: AssertionError >--------------------------------------------- Captured stderr call ---------------------------------------------- >Traceback (most recent call last): > File "<string>", line 2, in <module> > File "pytest_shutil/run.py", line 200, in inner > chan.receive(None) > File "/usr/lib64/python2.7/site-packages/execnet/gateway_base.py", line 737, in receive > raise self._getremoteerror() or EOFError() >execnet.gateway_base.RemoteError: Traceback (most recent call last): > File "<string>", line 1076, in executetask > File "<remote exec>", line 4, in _run_in_subprocess_remote_fn > File "pytest_shutil/run.py", line 165, in _run_in_subprocess_redirect_stdout > os.dup2(fd, 1) >OSError: [Errno 9] Bad file descriptor > >_____________________________________ test_run_in_subprocess_passes_stderr ______________________________________ > > def test_run_in_subprocess_passes_stderr(): > def fn(x): > import sys # @Reimport > sys.stderr.write(x) > guid = str(uuid4()) > cmd = """from pytest_shutil.run import run_in_subprocess > run_in_subprocess(%r)(%r) > """ % (textwrap.dedent(inspect.getsource(fn)), guid) > with no_cov(): > p = subprocess.Popen([sys.executable, '-c', cmd], stderr=subprocess.PIPE) > (_, err) = p.communicate() >> assert guid in err.decode('ascii') >E assert '3f74ef21-f416-4463-a67e-16bc351a2a3a' in 'Traceback (most recent call last):\n File "<string>", line 2, in <module>\n File "pytest_shutil/run.py", line 200, in...l/run.py", line 165, in _run_in_subprocess_redirect_stdout\n os.dup2(fd, 1)\nOSError: [Errno 9] Bad file descriptor\n\n' >E + where 'Traceback (most recent call last):\n File "<string>", line 2, in <module>\n File "pytest_shutil/run.py", line 200, in...l/run.py", line 165, in _run_in_subprocess_redirect_stdout\n os.dup2(fd, 1)\nOSError: [Errno 9] Bad file descriptor\n\n' = <built-in method decode of str object at 0x5559caf47260>('ascii') >E + where <built-in method decode of str object at 0x5559caf47260> = 'Traceback (most recent call last):\n File "<string>", line 2, in <module>\n File "pytest_shutil/run.py", line 200, ...n.py", line 165, in _run_in_subprocess_redirect_stdout\n os.dup2(fd, 1)\nOSError: [Errno 9] Bad file descriptor\n\n'.decode > >tests/integration/test_run_integration.py:242: AssertionError >=============================================== warnings summary ================================================ >None > Module already imported so can not be re-written: common_setup > >-- Docs: http://doc.pytest.org/en/latest/warnings.html >=============================== 8 failed, 41 passed, 1 warnings in 12.05 seconds ================================ > * ERROR: dev-python/pytest-shutil-1.2.11::gentoo failed (test phase): > * (no error message) > * > * Call stack: > * ebuild.sh, line 124: Called src_test > * environment, line 2759: Called distutils-r1_src_test > * environment, line 917: Called _distutils-r1_run_foreach_impl 'python_test' > * environment, line 363: Called python_foreach_impl 'distutils-r1_run_phase' 'python_test' > * environment, line 2282: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' > * environment, line 1571: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' > * environment, line 1569: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_test' > * environment, line 587: Called distutils-r1_run_phase 'python_test' > * environment, line 848: Called python_test > * environment, line 2639: Called esetup.py 'test' > * environment, line 1116: Called die > * The specific snippet of code: > * "${@}" || die "${die_args[@]}"; > * > * If you need support, post the output of `emerge --info '=dev-python/pytest-shutil-1.2.11::gentoo'`, > * the complete build log and the output of `emerge -pqv '=dev-python/pytest-shutil-1.2.11::gentoo'`. > * The complete build log is located at '/var/log/portage/build/dev-python/pytest-shutil-1.2.11:20171027-211519.log'. > * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-python/pytest-shutil-1.2.11/temp/build.log'. > * The ebuild environment file is located at '/var/tmp/portage/dev-python/pytest-shutil-1.2.11/temp/environment'. > * Working directory: '/var/tmp/portage/dev-python/pytest-shutil-1.2.11/work/pytest-shutil-1.2.11' > * S: '/var/tmp/portage/dev-python/pytest-shutil-1.2.11/work/pytest-shutil-1.2.11'
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 635632
: 500474