FailedOk

th/SRPMS[OK]
th/x32[OK]
th/i686[OK]
th/x86_64[OK]

ac/SRPMS[OK]
ac/i386[OK]
ac/i586[OK]
ac/i686[OK]
ac/alpha[OK]
ac/amd64[OK]
ac/athlon[OK]
ac/ppc[OK]
ac/sparc[OK]
ac/sparc64[OK]

Advanced Search
main()
Powered by PLD Linux
(c) 2002-2020 PLD Team
$Revision: 1.37 $
Powered by X.
Your IP: 3.235.137.159

python-ipykernel 606232c3-644d-4081-b660-45e8bf1a11f5

Status:Failed
Source URL:https://buildlogs.pld-linux.org/pld/th/x86_64/FAIL/python-ipykernel,606232c3-644d-4081-b660-45e8bf1a11f5.bz2
text/plain URL:View!
rpm -qa of builder:View!
Date:2020/09/15 21:19:52
Runtime:0:01:06.915007

Toc:

  • prep
  • Executing(%prep): /bin/sh -e /tmp/B.G9wh9i/BUILD/tmp/rpm-tmp.43398
  • build
  • Executing(%build): /bin/sh -e /tmp/B.G9wh9i/BUILD/tmp/rpm-tmp.43398
  • error 1
  • Exception AttributeError: "'NoneType' object has no attribute 'ref'" in <bound method Socket.__del__ of <zmq.sugar.socket.Socket object at 0x7f29603e43d0>> ignored
  • error 2
  • Exception AttributeError: "'NoneType' object has no attribute 'ref'" in <bound method Socket.__del__ of <zmq.sugar.socket.Socket object at 0x7f29604450c0>> ignored
  • error 3
  • E AssertionError: assert None == 'foobar'
  • error 4
  • E KeyError: 'foo'
  • error 5
  • E AssertionError: assert 'error' == 'ok'
  • error 6
  • E AssertionError: {'ename': 'TypeError', 'engine_info': {'engine_id': -1, 'engine_uuid': 'bef7f029-8583-4b97-a9cb-03d51a98b767', 'method': 'execute'}, 'evalue': 'required field "type_ignores" missing from Module', 'execution_count': 2, ...}
  • error 7
  • E AssertionError: assert '' == 'True'
  • error 8
  • E AssertionError: assert '' == 'True'
  • error 9
  • E AssertionError: assert '' == 'True'
  • error 10
  • E AssertionError: assert 'ValueError' in ''
  • error 11
  • E AssertionError: 'error' != 'ok'
  • error 12
  • E AssertionError: 0 not greater than 0
  • error 13
  • E AssertionError:
  • error 14
  • E AssertionError: assert 'error' == 'status'
  • error 15
  • E AssertionError: {} != {'foo': {'status': 'ok', 'data': {'text/plain': '2'}, 'metadata': {}}}
  • error 16
  • E KeyError: 'foo'
  • error 17
  • E AssertionError: assert 'alpha' in ['%alias', '%alias_magic', 'all']
  • error 18
  • E AssertionError: assert 'error' == 'display_data'
  • error 19
  • E TypeError: an integer is required (got type bytes)
  • error 20
  • E TypeError: an integer is required (got type bytes)
  • error 21
  • E TypeError: an integer is required (got type bytes)
  • error 22
  • E TypeError: an integer is required (got type bytes)
  • error 23
  • E TypeError: an integer is required (got type bytes)
  • error 24
  • E TypeError: an integer is required (got type bytes)
  • error 25
  • E AssertionError: assert 'error' == 'ok'
  • error 26
  • E AssertionError: assert 'error' == 'ok'
  • error 27
  • error: Bad exit status from /tmp/B.G9wh9i/BUILD/tmp/rpm-tmp.43398 (%build)
  • error 28
  • RPM build errors:
  • error 29
  • error: No files produced.

Content:

request from: qboosh
checking if we should skip the build
started at: Tue Sep 15 21:18:42 2020
killing old processes on a builder
sending signal 9 to pid -1
Killed
cleaning up /tmp
fetching https://srcbuilder.pld-linux.org/th//srpms/606232c3-644d-4081-b660-45e8bf1a11f5/python-ipykernel-4.10.1-3.src.rpm
fetched 109147 bytes, 317.0 K/s
installing srpm: python-ipykernel-4.10.1-3.src.rpm
+ install -d /tmp/B.G9wh9i/BUILD /tmp/B.G9wh9i/RPMS
+ LC_ALL=en_US.UTF-8
+ rpm -qp --changelog python-ipykernel-4.10.1-3.src.rpm
* Tue Sep 15 2020 PLD Linux Team <feedback@pld-linux.org>
- For complete changelog see: http://git.pld-linux.org/?p=packages/python-ipykernel.git;a=log;h=master
* Tue Sep 15 2020 Jakub Bogusz <qboosh@pld-linux.org> 9826e57
- jupyter_client is required also for setup; added ipykernel 5.x note * Mon Oct 28 2019 Jan Rękorajski <baggins@pld-linux.org> 03a054a
- rebuild with python 3.8 - release 3 (by relup.sh) * Mon Sep 30 2019 Jakub Bogusz <qboosh@pld-linux.org> ac19c3b
- added use_setuptools patch: force use of setuptools to autogenerate pythonegg dependencies; release 2 * Mon Sep 30 2019 Jakub Bogusz <qboosh@pld-linux.org> 84f5d5f
- typo * Mon Sep 30 2019 Jakub Bogusz <qboosh@pld-linux.org> 0eac7f5
- new; there is also 5.x for python 3.4+, will be packaged later + rpm -Uhv --nodeps --define '_topdir /tmp/B.G9wh9i' --define '_specdir %{_topdir}' --define '_sourcedir %{_specdir}' --define '_rpmdir %{_topdir}/RPMS' --define '_builddir %{_topdir}/BUILD' python-ipykernel-4.10.1-3.src.rpm Preparing... ################################################## python-ipykernel ################################################## + rm -f python-ipykernel-4.10.1-3.src.rpm + install -m 700 -d /tmp/B.G9wh9i/BUILD/tmp + TMPDIR=/tmp/B.G9wh9i/BUILD/tmp + exec nice -n 0 rpmbuild -bp --short-circuit --nodeps --define '_topdir /tmp/B.G9wh9i' --define '_specdir %{_topdir}' --define '_sourcedir %{_specdir}' --define '_rpmdir %{_topdir}/RPMS' --define '_builddir %{_topdir}/BUILD' --target x86_64-pld-linux --define 'prep exit 0' /tmp/B.G9wh9i/python-ipykernel.spec Building target platforms: x86_64-pld-linux checking BuildConflict-ing packages no BuildConflicts found checking BR rpm: Building target platforms: x86_64-pld-linux no BR needed building RPM using: set -ex; : build-id: 606232c3-644d-4081-b660-45e8bf1a11f5; TMPDIR=/tmp/B.G9wh9i/BUILD/tmp exec nice -n 0 rpmbuild -bb --define '_smp_mflags -j9' --define '_make_opts -Otarget' --define '_pld_builder 1' --define '_topdir /tmp/B.G9wh9i' --define '_specdir %{_topdir}' --define '_sourcedir %{_specdir}' --define '_rpmdir %{_topdir}/RPMS' --define '_builddir %{_topdir}/BUILD' --target x86_64-pld-linux /tmp/B.G9wh9i/python-ipykernel.spec + : build-id: 606232c3-644d-4081-b660-45e8bf1a11f5 + TMPDIR=/tmp/B.G9wh9i/BUILD/tmp + exec nice -n 0 rpmbuild -bb --define '_smp_mflags -j9' --define '_make_opts -Otarget' --define '_pld_builder 1' --define '_topdir /tmp/B.G9wh9i' --define '_specdir %{_topdir}' --define '_sourcedir %{_specdir}' --define '_rpmdir %{_topdir}/RPMS' --define '_builddir %{_topdir}/BUILD' --target x86_64-pld-linux /tmp/B.G9wh9i/python-ipykernel.spec Building target platforms: x86_64-pld-linux Executing(%prep): /bin/sh -e /tmp/B.G9wh9i/BUILD/tmp/rpm-tmp.43398 + umask 022 + cd /tmp/B.G9wh9i/BUILD + cd /tmp/B.G9wh9i/BUILD + rm -rf ipykernel-4.10.1 + /bin/gzip -dc /tmp/B.G9wh9i/ipykernel-4.10.1.tar.gz + /bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd ipykernel-4.10.1 + /bin/id -u + '[' 1000 '=' 0 ']' + /bin/id -u + '[' 1000 '=' 0 ']' + /bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (python-ipykernel-use_setuptools.patch):' Patch #0 (python-ipykernel-use_setuptools.patch): + '[' -f /tmp/B.G9wh9i/python-ipykernel-use_setuptools.patch ']' + /bin/cat /tmp/B.G9wh9i/python-ipykernel-use_setuptools.patch + /usr/bin/patch -s -p1 + exit 0 Executing(%build): /bin/sh -e /tmp/B.G9wh9i/BUILD/tmp/rpm-tmp.43398 TMP=/home/users/builder/tmp HOME=/home/users/builder PATH=/home/users/builder/GNUstep/Tools:/bin:/usr/bin:/usr/local/bin:/home/users/builder/bin TMPDIR=/tmp/B.G9wh9i/BUILD/tmp + umask 022 + cd /tmp/B.G9wh9i/BUILD + cd ipykernel-4.10.1 + LDFLAGS='-Wl,--as-needed -Wl,--no-copy-dt-needed-entries -Wl,-z,relro -Wl,-z,combreloc ' + export LDFLAGS + CFLAGS=' -O2 -fwrapv -pipe -Wformat -Werror=format-security -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 ' + export CFLAGS + CXXFLAGS=' -O2 -fwrapv -pipe -Wformat -Werror=format-security -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 ' + export CXXFLAGS + CC=x86_64-pld-linux-gcc + export CC + CXX=x86_64-pld-linux-g++ + export CXX + /usr/bin/python2 setup.py build '--build-base=build-2' running build running build_py creating build-2 creating build-2/lib copying ipykernel_launcher.py -> build-2/lib creating build-2/lib/ipykernel copying ipykernel/__init__.py -> build-2/lib/ipykernel copying ipykernel/__main__.py -> build-2/lib/ipykernel copying ipykernel/_eventloop_macos.py -> build-2/lib/ipykernel copying ipykernel/_version.py -> build-2/lib/ipykernel copying ipykernel/codeutil.py -> build-2/lib/ipykernel copying ipykernel/connect.py -> build-2/lib/ipykernel copying ipykernel/datapub.py -> build-2/lib/ipykernel copying ipykernel/displayhook.py -> build-2/lib/ipykernel copying ipykernel/embed.py -> build-2/lib/ipykernel copying ipykernel/eventloops.py -> build-2/lib/ipykernel copying ipykernel/heartbeat.py -> build-2/lib/ipykernel copying ipykernel/iostream.py -> build-2/lib/ipykernel copying ipykernel/ipkernel.py -> build-2/lib/ipykernel copying ipykernel/jsonutil.py -> build-2/lib/ipykernel copying ipykernel/kernelapp.py -> build-2/lib/ipykernel copying ipykernel/kernelbase.py -> build-2/lib/ipykernel copying ipykernel/kernelspec.py -> build-2/lib/ipykernel copying ipykernel/log.py -> build-2/lib/ipykernel copying ipykernel/parentpoller.py -> build-2/lib/ipykernel copying ipykernel/pickleutil.py -> build-2/lib/ipykernel copying ipykernel/serialize.py -> build-2/lib/ipykernel copying ipykernel/zmqshell.py -> build-2/lib/ipykernel creating build-2/lib/ipykernel/comm copying ipykernel/comm/__init__.py -> build-2/lib/ipykernel/comm copying ipykernel/comm/comm.py -> build-2/lib/ipykernel/comm copying ipykernel/comm/manager.py -> build-2/lib/ipykernel/comm creating build-2/lib/ipykernel/gui copying ipykernel/gui/__init__.py -> build-2/lib/ipykernel/gui copying ipykernel/gui/gtk3embed.py -> build-2/lib/ipykernel/gui copying ipykernel/gui/gtkembed.py -> build-2/lib/ipykernel/gui creating build-2/lib/ipykernel/inprocess copying ipykernel/inprocess/__init__.py -> build-2/lib/ipykernel/inprocess copying ipykernel/inprocess/blocking.py -> build-2/lib/ipykernel/inprocess copying ipykernel/inprocess/channels.py -> build-2/lib/ipykernel/inprocess copying ipykernel/inprocess/client.py -> build-2/lib/ipykernel/inprocess copying ipykernel/inprocess/constants.py -> build-2/lib/ipykernel/inprocess copying ipykernel/inprocess/ipkernel.py -> build-2/lib/ipykernel/inprocess copying ipykernel/inprocess/manager.py -> build-2/lib/ipykernel/inprocess copying ipykernel/inprocess/socket.py -> build-2/lib/ipykernel/inprocess creating build-2/lib/ipykernel/inprocess/tests copying ipykernel/inprocess/tests/__init__.py -> build-2/lib/ipykernel/inprocess/tests copying ipykernel/inprocess/tests/test_kernel.py -> build-2/lib/ipykernel/inprocess/tests copying ipykernel/inprocess/tests/test_kernelmanager.py -> build-2/lib/ipykernel/inprocess/tests creating build-2/lib/ipykernel/pylab copying ipykernel/pylab/__init__.py -> build-2/lib/ipykernel/pylab copying ipykernel/pylab/backend_inline.py -> build-2/lib/ipykernel/pylab copying ipykernel/pylab/config.py -> build-2/lib/ipykernel/pylab creating build-2/lib/ipykernel/tests copying ipykernel/tests/__init__.py -> build-2/lib/ipykernel/tests copying ipykernel/tests/_asyncio.py -> build-2/lib/ipykernel/tests copying ipykernel/tests/test_connect.py -> build-2/lib/ipykernel/tests copying ipykernel/tests/test_embed_kernel.py -> build-2/lib/ipykernel/tests copying ipykernel/tests/test_eventloop.py -> build-2/lib/ipykernel/tests copying ipykernel/tests/test_io.py -> build-2/lib/ipykernel/tests copying ipykernel/tests/test_jsonutil.py -> build-2/lib/ipykernel/tests copying ipykernel/tests/test_kernel.py -> build-2/lib/ipykernel/tests copying ipykernel/tests/test_kernelspec.py -> build-2/lib/ipykernel/tests copying ipykernel/tests/test_message_spec.py -> build-2/lib/ipykernel/tests copying ipykernel/tests/test_pickleutil.py -> build-2/lib/ipykernel/tests copying ipykernel/tests/test_serialize.py -> build-2/lib/ipykernel/tests copying ipykernel/tests/test_start_kernel.py -> build-2/lib/ipykernel/tests copying ipykernel/tests/test_zmq_shell.py -> build-2/lib/ipykernel/tests copying ipykernel/tests/utils.py -> build-2/lib/ipykernel/tests creating build-2/lib/ipykernel/resources copying ipykernel/resources/logo-32x32.png -> build-2/lib/ipykernel/resources copying ipykernel/resources/logo-64x64.png -> build-2/lib/ipykernel/resources + pwd + PYTHONPATH=/tmp/B.G9wh9i/BUILD/ipykernel-4.10.1 /usr/bin/python2 -m pytest -k 'not test_oinfo_detail' ipykernel /usr/share/python2.7/site-packages/hypothesis/extra/pytestplugin.py:61: HypothesisWarning: You are using Pytest version 3.10.1. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... ============================= test session starts ============================== platform linux2 -- Python 2.7.18, pytest-3.10.1, py-1.8.1, pluggy-0.13.1 benchmark: 3.2.3 (defaults: timer=time.time disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000) rootdir: /tmp/B.G9wh9i/BUILD/ipykernel-4.10.1, inifile: plugins: benchmark-3.2.3, xdist-1.27.0, forked-1.1.3, pyfakefs-3.7.2, hypothesis-4.57.1, expect-1.1.0, cov-2.8.1, backports.unittest-mock-1.2.1, flake8-1.0.4, mock-1.10.3, timeout-1.3.4 collected 95 items / 1 deselected ipykernel/inprocess/tests/test_kernel.py .... [ 4%] ipykernel/inprocess/tests/test_kernelmanager.py ..... [ 9%] ipykernel/tests/test_connect.py .. [ 11%] ipykernel/tests/test_embed_kernel.py ... [ 14%] ipykernel/tests/test_eventloop.py s [ 15%] ipykernel/tests/test_io.py . [ 17%] ipykernel/tests/test_jsonutil.py ..... [ 22%] ipykernel/tests/test_kernel.py .........s..... [ 38%] ipykernel/tests/test_kernelspec.py .......... [ 48%] ipykernel/tests/test_message_spec.py ..................... [ 71%] ipykernel/tests/test_pickleutil.py ..... [ 76%] ipykernel/tests/test_serialize.py .............. [ 91%] ipykernel/tests/test_start_kernel.py .. [ 93%] ipykernel/tests/test_zmq_shell.py ...... [100%] =============================== warnings summary =============================== /usr/share/python2.7/site-packages/_pytest/assertion/rewrite.py:272 /usr/share/python2.7/site-packages/_pytest/assertion/rewrite.py:272: PytestWarning: Module already imported so cannot be rewritten: backports /usr/share/python2.7/site-packages/IPython/external/decorators/__init__.py:2 /usr/share/python2.7/site-packages/IPython/external/decorators/__init__.py:2: DeprecationWarning: Importing from numpy.testing.decorators is deprecated since numpy 1.15.0, import from numpy.testing instead. /usr/share/python2.7/site-packages/IPython/external/decorators/__init__.py:3 /usr/share/python2.7/site-packages/IPython/external/decorators/__init__.py:3: DeprecationWarning: Importing from numpy.testing.noseclasses is deprecated since 1.15.0, import from numpy.testing instead ipykernel/pickleutil.py:8 /tmp/B.G9wh9i/BUILD/ipykernel-4.10.1/ipykernel/pickleutil.py:8: DeprecationWarning: ipykernel.pickleutil is deprecated. It has moved to ipyparallel. warnings.warn("ipykernel.pickleutil is deprecated. It has moved to ipyparallel.", DeprecationWarning) ipykernel/codeutil.py:17 /tmp/B.G9wh9i/BUILD/ipykernel-4.10.1/ipykernel/codeutil.py:17: DeprecationWarning: ipykernel.codeutil is deprecated since IPykernel 4.3.1. It has moved to ipyparallel.serialize warnings.warn("ipykernel.codeutil is deprecated since IPykernel 4.3.1. It has moved to ipyparallel.serialize", DeprecationWarning) ipykernel/serialize.py:7 /tmp/B.G9wh9i/BUILD/ipykernel-4.10.1/ipykernel/serialize.py:7: DeprecationWarning: ipykernel.serialize is deprecated. It has moved to ipyparallel.serialize warnings.warn("ipykernel.serialize is deprecated. It has moved to ipyparallel.serialize", DeprecationWarning) ipykernel/inprocess/tests/test_kernel.py::InProcessKernelTestCase::test_getpass_stream /usr/share/python2.7/site-packages/traitlets/traitlets.py:144: DeprecationWarning: Session._key_changed is deprecated in traitlets 4.1: use @observe and @unobserve instead. (inspection failed) source code not available /tmp/B.G9wh9i/BUILD/ipykernel-4.10.1/ipykernel/datapub.py:5: DeprecationWarning: ipykernel.datapub is deprecated. It has moved to ipyparallel.datapub warnings.warn("ipykernel.datapub is deprecated. It has moved to ipyparallel.datapub", DeprecationWarning) /tmp/B.G9wh9i/BUILD/ipykernel-4.10.1/ipykernel/iostream.py:66: DeprecationWarning: zmq.eventloop.ioloop is deprecated in pyzmq 17. pyzmq now works with default tornado and asyncio eventloops. self.io_loop = IOLoop(make_current=False) /usr/share/python2.7/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket /usr/share/python2.7/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket /tmp/B.G9wh9i/BUILD/ipykernel-4.10.1/ipykernel/inprocess/tests/test_kernel.py:76: UserWarning: The `stream` parameter of `getpass.getpass` will have no effect when using ipykernel kernel.getpass(stream='non empty') ipykernel/inprocess/tests/test_kernel.py::InProcessKernelTestCase::test_pylab /usr/share/python2.7/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket /usr/share/python2.7/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket /usr/share/python2.7/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket /usr/share/python2.7/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket /usr/share/python2.7/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket /usr/share/python2.7/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket ipykernel/inprocess/tests/test_kernel.py::InProcessKernelTestCase::test_raw_input /usr/share/python2.7/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket /usr/share/python2.7/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket /usr/share/python2.7/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket /usr/share/python2.7/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket /usr/share/python2.7/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket ipykernel/inprocess/tests/test_kernel.py::InProcessKernelTestCase::test_stdout /usr/share/python2.7/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket /usr/share/python2.7/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket /usr/share/python2.7/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket /usr/share/python2.7/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket /usr/share/python2.7/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket /usr/share/python2.7/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket ipykernel/inprocess/tests/test_kernelmanager.py::InProcessKernelManagerTestCase::test_complete /usr/share/python2.7/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket /usr/share/python2.7/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket /usr/share/python2.7/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket /usr/share/python2.7/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket ipykernel/inprocess/tests/test_kernelmanager.py::InProcessKernelManagerTestCase::test_execute /usr/share/python2.7/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket /usr/share/python2.7/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket /usr/share/python2.7/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket /usr/share/python2.7/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket /usr/share/python2.7/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket ipykernel/inprocess/tests/test_kernelmanager.py::InProcessKernelManagerTestCase::test_history /usr/share/python2.7/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket /usr/share/python2.7/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket /usr/share/python2.7/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket /usr/share/python2.7/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket /usr/share/python2.7/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket /usr/share/python2.7/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket /usr/share/python2.7/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket /usr/share/python2.7/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket ipykernel/inprocess/tests/test_kernelmanager.py::InProcessKernelManagerTestCase::test_inspect /usr/share/python2.7/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket /usr/share/python2.7/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket /usr/share/python2.7/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket /usr/share/python2.7/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket ipykernel/inprocess/tests/test_kernelmanager.py::InProcessKernelManagerTestCase::test_interface /usr/share/python2.7/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket /usr/share/python2.7/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket ipykernel/tests/test_message_spec.py::test_oinfo /tmp/B.G9wh9i/BUILD/ipykernel-4.10.1/ipykernel/tests/test_message_spec.py:101: DeprecationWarning: InspectReply._data_changed is deprecated in traitlets 4.1: use @observe and @unobserve instead. def _data_changed(self, name, old, new): -- Docs: https://docs.pytest.org/en/latest/warnings.html ======= 92 passed, 2 skipped, 1 deselected, 53 warnings in 32.18 seconds ======= Exception AttributeError: "'NoneType' object has no attribute 'ref'" in <bound method Socket.__del__ of <zmq.sugar.socket.Socket object at 0x7f29603e43d0>> ignored Exception AttributeError: "'NoneType' object has no attribute 'ref'" in <bound method Socket.__del__ of <zmq.sugar.socket.Socket object at 0x7f29604450c0>> ignored + LDFLAGS='-Wl,--as-needed -Wl,--no-copy-dt-needed-entries -Wl,-z,relro -Wl,-z,combreloc ' + export LDFLAGS + CFLAGS=' -O2 -fwrapv -pipe -Wformat -Werror=format-security -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 ' + export CFLAGS + CXXFLAGS=' -O2 -fwrapv -pipe -Wformat -Werror=format-security -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 ' + export CXXFLAGS + CC=x86_64-pld-linux-gcc + export CC + CXX=x86_64-pld-linux-g++ + export CXX + /usr/bin/python3 setup.py build '--build-base=build-3' running build running build_py creating build-3 creating build-3/lib copying ipykernel_launcher.py -> build-3/lib creating build-3/lib/ipykernel copying ipykernel/__init__.py -> build-3/lib/ipykernel copying ipykernel/__main__.py -> build-3/lib/ipykernel copying ipykernel/_eventloop_macos.py -> build-3/lib/ipykernel copying ipykernel/_version.py -> build-3/lib/ipykernel copying ipykernel/codeutil.py -> build-3/lib/ipykernel copying ipykernel/connect.py -> build-3/lib/ipykernel copying ipykernel/datapub.py -> build-3/lib/ipykernel copying ipykernel/displayhook.py -> build-3/lib/ipykernel copying ipykernel/embed.py -> build-3/lib/ipykernel copying ipykernel/eventloops.py -> build-3/lib/ipykernel copying ipykernel/heartbeat.py -> build-3/lib/ipykernel copying ipykernel/iostream.py -> build-3/lib/ipykernel copying ipykernel/ipkernel.py -> build-3/lib/ipykernel copying ipykernel/jsonutil.py -> build-3/lib/ipykernel copying ipykernel/kernelapp.py -> build-3/lib/ipykernel copying ipykernel/kernelbase.py -> build-3/lib/ipykernel copying ipykernel/kernelspec.py -> build-3/lib/ipykernel copying ipykernel/log.py -> build-3/lib/ipykernel copying ipykernel/parentpoller.py -> build-3/lib/ipykernel copying ipykernel/pickleutil.py -> build-3/lib/ipykernel copying ipykernel/serialize.py -> build-3/lib/ipykernel copying ipykernel/zmqshell.py -> build-3/lib/ipykernel creating build-3/lib/ipykernel/comm copying ipykernel/comm/__init__.py -> build-3/lib/ipykernel/comm copying ipykernel/comm/comm.py -> build-3/lib/ipykernel/comm copying ipykernel/comm/manager.py -> build-3/lib/ipykernel/comm creating build-3/lib/ipykernel/gui copying ipykernel/gui/__init__.py -> build-3/lib/ipykernel/gui copying ipykernel/gui/gtk3embed.py -> build-3/lib/ipykernel/gui copying ipykernel/gui/gtkembed.py -> build-3/lib/ipykernel/gui creating build-3/lib/ipykernel/inprocess copying ipykernel/inprocess/__init__.py -> build-3/lib/ipykernel/inprocess copying ipykernel/inprocess/blocking.py -> build-3/lib/ipykernel/inprocess copying ipykernel/inprocess/channels.py -> build-3/lib/ipykernel/inprocess copying ipykernel/inprocess/client.py -> build-3/lib/ipykernel/inprocess copying ipykernel/inprocess/constants.py -> build-3/lib/ipykernel/inprocess copying ipykernel/inprocess/ipkernel.py -> build-3/lib/ipykernel/inprocess copying ipykernel/inprocess/manager.py -> build-3/lib/ipykernel/inprocess copying ipykernel/inprocess/socket.py -> build-3/lib/ipykernel/inprocess creating build-3/lib/ipykernel/inprocess/tests copying ipykernel/inprocess/tests/__init__.py -> build-3/lib/ipykernel/inprocess/tests copying ipykernel/inprocess/tests/test_kernel.py -> build-3/lib/ipykernel/inprocess/tests copying ipykernel/inprocess/tests/test_kernelmanager.py -> build-3/lib/ipykernel/inprocess/tests creating build-3/lib/ipykernel/pylab copying ipykernel/pylab/__init__.py -> build-3/lib/ipykernel/pylab copying ipykernel/pylab/backend_inline.py -> build-3/lib/ipykernel/pylab copying ipykernel/pylab/config.py -> build-3/lib/ipykernel/pylab creating build-3/lib/ipykernel/tests copying ipykernel/tests/__init__.py -> build-3/lib/ipykernel/tests copying ipykernel/tests/_asyncio.py -> build-3/lib/ipykernel/tests copying ipykernel/tests/test_connect.py -> build-3/lib/ipykernel/tests copying ipykernel/tests/test_embed_kernel.py -> build-3/lib/ipykernel/tests copying ipykernel/tests/test_eventloop.py -> build-3/lib/ipykernel/tests copying ipykernel/tests/test_io.py -> build-3/lib/ipykernel/tests copying ipykernel/tests/test_jsonutil.py -> build-3/lib/ipykernel/tests copying ipykernel/tests/test_kernel.py -> build-3/lib/ipykernel/tests copying ipykernel/tests/test_kernelspec.py -> build-3/lib/ipykernel/tests copying ipykernel/tests/test_message_spec.py -> build-3/lib/ipykernel/tests copying ipykernel/tests/test_pickleutil.py -> build-3/lib/ipykernel/tests copying ipykernel/tests/test_serialize.py -> build-3/lib/ipykernel/tests copying ipykernel/tests/test_start_kernel.py -> build-3/lib/ipykernel/tests copying ipykernel/tests/test_zmq_shell.py -> build-3/lib/ipykernel/tests copying ipykernel/tests/utils.py -> build-3/lib/ipykernel/tests creating build-3/lib/ipykernel/resources copying ipykernel/resources/logo-32x32.png -> build-3/lib/ipykernel/resources copying ipykernel/resources/logo-64x64.png -> build-3/lib/ipykernel/resources + pwd + PYTHONPATH=/tmp/B.G9wh9i/BUILD/ipykernel-4.10.1 /usr/bin/python3 -m pytest ipykernel ============================= test session starts ============================== platform linux -- Python 3.8.5, pytest-3.10.1, py-1.8.1, pluggy-0.13.1 benchmark: 3.2.3 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000) rootdir: /tmp/B.G9wh9i/BUILD/ipykernel-4.10.1, inifile: plugins: xdist-1.27.0, mock-1.10.3, expect-1.1.0, forked-1.1.3, flaky-3.6.1, benchmark-3.2.3, hypothesis-4.57.1, timeout-1.3.4, cov-2.8.1, pyfakefs-4.0.2 collected 95 items ipykernel/inprocess/tests/test_kernel.py ..F. [ 4%] ipykernel/inprocess/tests/test_kernelmanager.py .F... [ 9%] ipykernel/tests/test_connect.py .. [ 11%] ipykernel/tests/test_embed_kernel.py F.. [ 14%] ipykernel/tests/test_eventloop.py F [ 15%] ipykernel/tests/test_io.py . [ 16%] ipykernel/tests/test_jsonutil.py ..... [ 22%] ipykernel/tests/test_kernel.py FFFFFF.s.F..FF. [ 37%] ipykernel/tests/test_kernelspec.py .......... [ 48%] ipykernel/tests/test_message_spec.py .F...FF.FF.F...F.....F [ 71%] ipykernel/tests/test_pickleutil.py FFFF. [ 76%] ipykernel/tests/test_serialize.py ..........F.F. [ 91%] ipykernel/tests/test_start_kernel.py FF [ 93%] ipykernel/tests/test_zmq_shell.py ...... [100%] =================================== FAILURES =================================== ____________________ InProcessKernelTestCase.test_raw_input ____________________ self = <ipykernel.inprocess.tests.test_kernel.InProcessKernelTestCase testMethod=test_raw_input> def test_raw_input(self): """ Does the in-process kernel handle raw_input correctly? """ io = StringIO('foobar\n') sys_stdin = sys.stdin sys.stdin = io try: if py3compat.PY3: self.kc.execute('x = input()') else: self.kc.execute('x = raw_input()') finally: sys.stdin = sys_stdin > assert self.km.kernel.shell.user_ns.get('x') == 'foobar' E AssertionError: assert None == 'foobar' E + where None = <built-in method get of dict object at 0x7faac83ec900>('x') E + where <built-in method get of dict object at 0x7faac83ec900> = {'ALLOW_THREADS': 1, 'Annotation': <class 'matplotlib.text.Annotation'>, 'Arrow': <class 'matplotlib.patches.Arrow'>, 'Artist': <class 'matplotlib.artist.Artist'>, ...}.get E + where {'ALLOW_THREADS': 1, 'Annotation': <class 'matplotlib.text.Annotation'>, 'Arrow': <class 'matplotlib.patches.Arrow'>, 'Artist': <class 'matplotlib.artist.Artist'>, ...} = <ipykernel.inprocess.ipkernel.InProcessInteractiveShell object at 0x7faac8497cd0>.user_ns E + where <ipykernel.inprocess.ipkernel.InProcessInteractiveShell object at 0x7faac8497cd0> = <ipykernel.inprocess.ipkernel.InProcessKernel object at 0x7faac4946250>.shell E + where <ipykernel.inprocess.ipkernel.InProcessKernel object at 0x7faac4946250> = <ipykernel.inprocess.manager.InProcessKernelManager object at 0x7faac49460a0>.kernel E + where <ipykernel.inprocess.manager.InProcessKernelManager object at 0x7faac49460a0> = <ipykernel.inprocess.tests.test_kernel.InProcessKernelTestCase testMethod=test_raw_input>.km ipykernel/inprocess/tests/test_kernel.py:53: AssertionError ----------------------------- Captured stdout call ----------------------------- status _________________ InProcessKernelManagerTestCase.test_execute __________________ self = <ipykernel.inprocess.tests.test_kernelmanager.InProcessKernelManagerTestCase testMethod=test_execute> def test_execute(self): """ Does executing code in an in-process kernel work? """ km = self.km km.start_kernel() kc = km.client() kc.start_channels() kc.wait_for_ready() kc.execute('foo = 1') > assert km.kernel.shell.user_ns['foo'] == 1 E KeyError: 'foo' ipykernel/inprocess/tests/test_kernelmanager.py:63: KeyError ___________________________ test_embed_kernel_basic ____________________________ def test_embed_kernel_basic(): """IPython.embed_kernel() is basically functional""" cmd = '\n'.join([ 'from IPython import embed_kernel', 'def go():', ' a=5', ' b="hi there"', ' embed_kernel()', 'go()', '', ]) with setup_kernel(cmd) as client: # oinfo a (int) msg_id = client.inspect('a') msg = client.get_shell_msg(block=True, timeout=TIMEOUT) content = msg['content'] assert content['found'] msg_id = client.execute("c=a*2") msg = client.get_shell_msg(block=True, timeout=TIMEOUT) content = msg['content'] > assert content['status'] == u'ok' E AssertionError: assert 'error' == 'ok' E - error E + ok ipykernel/tests/test_embed_kernel.py:86: AssertionError ____________________________ test_asyncio_interrupt ____________________________ args = (), kwargs = {} def skipper_func(*args, **kwargs): """Skipper for normal test functions.""" if skip_val(): raise nose.SkipTest(get_msg(f,msg)) else: > return f(*args, **kwargs) /usr/share/python3.8/site-packages/IPython/testing/decorators.py:213: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @dec.skipif(sys.version_info < (3, 5), "async/await syntax required") def test_asyncio_interrupt(): flush_channels(KC) msg_id, content = execute('%gui asyncio', KC) assert content['status'] == 'ok', content flush_channels(KC) msg_id, content = execute(async_code, KC) > assert content['status'] == 'ok', content E AssertionError: {'ename': 'TypeError', 'engine_info': {'engine_id': -1, 'engine_uuid': 'bef7f029-8583-4b97-a9cb-03d51a98b767', 'method': 'execute'}, 'evalue': 'required field "type_ignores" missing from Module', 'execution_count': 2, ...} E assert 'error' == 'ok' E - error E + ok ipykernel/tests/test_eventloop.py:38: AssertionError ----------------------------- Captured stderr call ----------------------------- --------------------------------------------------------------------------- TypeError Traceback (most recent call last) /usr/lib64/python3.8/codeop.py in __call__(self, source, filename, symbol)  139   140 def __call__(self, source, filename, symbol): --> 141 codeob = compile(source, filename, symbol, self.flags, 1)  142 for feature in _features:  143 if codeob.co_flags & feature.compiler_flag: TypeError: required field "type_ignores" missing from Module ______________________________ test_simple_print _______________________________ def test_simple_print(): """simple print statement in kernel""" with kernel() as kc: iopub = kc.iopub_channel msg_id, content = execute(kc=kc, code="print ('hi')") stdout, stderr = assemble_output(iopub) assert stdout == 'hi\n' assert stderr == '' > _check_master(kc, expected=True) ipykernel/tests/test_kernel.py:48: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ kc = <jupyter_client.blocking.client.BlockingKernelClient object at 0x7faac4442520> expected = True, stream = 'stdout' def _check_master(kc, expected=True, stream="stdout"): execute(kc=kc, code="import sys") flush_channels(kc) msg_id, content = execute(kc=kc, code="print (sys.%s._is_master_process())" % stream) stdout, stderr = assemble_output(kc.iopub_channel) > assert stdout.strip() == repr(expected) E AssertionError: assert '' == 'True' E + True ipykernel/tests/test_kernel.py:29: AssertionError ----------------------------- Captured stderr call ----------------------------- --------------------------------------------------------------------------- TypeError Traceback (most recent call last) /usr/lib64/python3.8/codeop.py in __call__(self, source, filename, symbol)  139   140 def __call__(self, source, filename, symbol): --> 141 codeob = compile(source, filename, symbol, self.flags, 1)  142 for feature in _features:  143 if codeob.co_flags & feature.compiler_flag: TypeError: required field "type_ignores" missing from Module --------------------------------------------------------------------------- NameError Traceback (most recent call last) <ipython-input-3-09b77848b8c7> in <module>() ----> 1 print (sys.stdout._is_master_process())  NameError: name 'sys' is not defined ________________________________ test_sys_path _________________________________ def test_sys_path(): """test that sys.path doesn't get messed up by default""" with kernel() as kc: msg_id, content = execute(kc=kc, code="import sys; print (repr(sys.path[0]))") stdout, stderr = assemble_output(kc.iopub_channel) > assert stdout == "''\n" E assert '' == "''\n" E + '' ipykernel/tests/test_kernel.py:56: AssertionError ----------------------------- Captured stderr call ----------------------------- --------------------------------------------------------------------------- TypeError Traceback (most recent call last) /usr/lib64/python3.8/codeop.py in __call__(self, source, filename, symbol)  139   140 def __call__(self, source, filename, symbol): --> 141 codeob = compile(source, filename, symbol, self.flags, 1)  142 for feature in _features:  143 if codeob.co_flags & feature.compiler_flag: TypeError: required field "type_ignores" missing from Module __________________________ test_sys_path_profile_dir ___________________________ def test_sys_path_profile_dir(): """test that sys.path doesn't get messed up when `--profile-dir` is specified""" with new_kernel(['--profile-dir', locate_profile('default')]) as kc: msg_id, content = execute(kc=kc, code="import sys; print (repr(sys.path[0]))") stdout, stderr = assemble_output(kc.iopub_channel) > assert stdout == "''\n" E assert '' == "''\n" E + '' ipykernel/tests/test_kernel.py:64: AssertionError ----------------------------- Captured stderr call ----------------------------- --------------------------------------------------------------------------- TypeError Traceback (most recent call last) /usr/lib64/python3.8/codeop.py in __call__(self, source, filename, symbol)  139   140 def __call__(self, source, filename, symbol): --> 141 codeob = compile(source, filename, symbol, self.flags, 1)  142 for feature in _features:  143 if codeob.co_flags & feature.compiler_flag: TypeError: required field "type_ignores" missing from Module ____________________________ test_subprocess_print _____________________________ args = (), kwargs = {} def skipper_func(*args, **kwargs): """Skipper for normal test functions.""" if skip_val(): raise nose.SkipTest(get_msg(f,msg)) else: > return f(*args, **kwargs) /usr/share/python3.8/site-packages/IPython/testing/decorators.py:213: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ipykernel/tests/test_kernel.py:72: in test_subprocess_print _check_master(kc, expected=True) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ kc = <jupyter_client.blocking.client.BlockingKernelClient object at 0x7faac439c8e0> expected = True, stream = 'stdout' def _check_master(kc, expected=True, stream="stdout"): execute(kc=kc, code="import sys") flush_channels(kc) msg_id, content = execute(kc=kc, code="print (sys.%s._is_master_process())" % stream) stdout, stderr = assemble_output(kc.iopub_channel) > assert stdout.strip() == repr(expected) E AssertionError: assert '' == 'True' E + True ipykernel/tests/test_kernel.py:29: AssertionError ----------------------------- Captured stderr call ----------------------------- --------------------------------------------------------------------------- TypeError Traceback (most recent call last) /usr/lib64/python3.8/codeop.py in __call__(self, source, filename, symbol)  139   140 def __call__(self, source, filename, symbol): --> 141 codeob = compile(source, filename, symbol, self.flags, 1)  142 for feature in _features:  143 if codeob.co_flags & feature.compiler_flag: TypeError: required field "type_ignores" missing from Module --------------------------------------------------------------------------- NameError Traceback (most recent call last) <ipython-input-2-09b77848b8c7> in <module>() ----> 1 print (sys.stdout._is_master_process())  NameError: name 'sys' is not defined ___________________________ test_subprocess_noprint ____________________________ def test_subprocess_noprint(): """mp.Process without print doesn't trigger iostream mp_mode""" with kernel() as kc: iopub = kc.iopub_channel np = 5 code = '\n'.join([ "import multiprocessing as mp", "pool = [mp.Process(target=range, args=(i,)) for i in range(%i)]" % np, "for p in pool: p.start()", "for p in pool: p.join()" ]) msg_id, content = execute(kc=kc, code=code) stdout, stderr = assemble_output(iopub) assert stdout == '' assert stderr == '' > _check_master(kc, expected=True) ipykernel/tests/test_kernel.py:113: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ kc = <jupyter_client.blocking.client.BlockingKernelClient object at 0x7faac4442520> expected = True, stream = 'stdout' def _check_master(kc, expected=True, stream="stdout"): execute(kc=kc, code="import sys") flush_channels(kc) msg_id, content = execute(kc=kc, code="print (sys.%s._is_master_process())" % stream) stdout, stderr = assemble_output(kc.iopub_channel) > assert stdout.strip() == repr(expected) E AssertionError: assert '' == 'True' E + True ipykernel/tests/test_kernel.py:29: AssertionError ----------------------------- Captured stderr call ----------------------------- --------------------------------------------------------------------------- TypeError Traceback (most recent call last) /usr/lib64/python3.8/codeop.py in __call__(self, source, filename, symbol)  139   140 def __call__(self, source, filename, symbol): --> 141 codeob = compile(source, filename, symbol, self.flags, 1)  142 for feature in _features:  143 if codeob.co_flags & feature.compiler_flag: TypeError: required field "type_ignores" missing from Module --------------------------------------------------------------------------- TypeError Traceback (most recent call last) /usr/lib64/python3.8/codeop.py in __call__(self, source, filename, symbol)  139   140 def __call__(self, source, filename, symbol): --> 141 codeob = compile(source, filename, symbol, self.flags, 1)  142 for feature in _features:  143 if codeob.co_flags & feature.compiler_flag: TypeError: required field "type_ignores" missing from Module --------------------------------------------------------------------------- NameError Traceback (most recent call last) <ipython-input-7-09b77848b8c7> in <module>() ----> 1 print (sys.stdout._is_master_process())  NameError: name 'sys' is not defined ____________________________ test_subprocess_error _____________________________ args = (), kwargs = {} def skipper_func(*args, **kwargs): """Skipper for normal test functions.""" if skip_val(): raise nose.SkipTest(get_msg(f,msg)) else: > return f(*args, **kwargs) /usr/share/python3.8/site-packages/IPython/testing/decorators.py:213: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @dec.skipif(sys.platform == 'win32', "subprocess prints fail on Windows") def test_subprocess_error(): """error in mp.Process doesn't crash""" with new_kernel() as kc: iopub = kc.iopub_channel code = '\n'.join([ "import multiprocessing as mp", "p = mp.Process(target=int, args=('hi',))", "p.start()", "p.join()", ]) msg_id, content = execute(kc=kc, code=code) stdout, stderr = assemble_output(iopub) assert stdout == '' > assert "ValueError" in stderr E AssertionError: assert 'ValueError' in '' ipykernel/tests/test_kernel.py:133: AssertionError ----------------------------- Captured stderr call ----------------------------- --------------------------------------------------------------------------- TypeError Traceback (most recent call last) /usr/lib64/python3.8/codeop.py in __call__(self, source, filename, symbol)  139   140 def __call__(self, source, filename, symbol): --> 141 codeob = compile(source, filename, symbol, self.flags, 1)  142 for feature in _features:  143 if codeob.co_flags & feature.compiler_flag: TypeError: required field "type_ignores" missing from Module ___________________________ test_smoke_faulthandler ____________________________ args = (), kwargs = {} def skipper_func(*args, **kwargs): """Skipper for normal test functions.""" if skip_val(): raise nose.SkipTest(get_msg(f,msg)) else: > return f(*args, **kwargs) /usr/share/python3.8/site-packages/IPython/testing/decorators.py:213: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ipykernel/tests/test_kernel.py:211: in test_smoke_faulthandler nt.assert_equal(reply['status'], 'ok', reply.get('traceback', '')) /usr/lib64/python3.8/unittest/case.py:912: in assertEqual assertion_func(first, second, msg=msg) /usr/lib64/python3.8/unittest/case.py:1292: in assertMultiLineEqual self.fail(self._formatMessage(msg, standardMsg)) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <nose.tools.trivial.Dummy testMethod=nop> msg = '\'error\' != \'ok\'\n- error\n+ ok\n : [\'\\x1b[0;31m----------------------------------------------------------------...\\x1b[0;34m\\x1b[0m\\x1b[0m\\n\', \'\\x1b[0;31mTypeError\\x1b[0m: required field "type_ignores" missing from Module\']' def fail(self, msg=None): """Fail immediately, with the given message.""" > raise self.failureException(msg) E AssertionError: 'error' != 'ok' E - error E + ok E : ['\x1b[0;31m---------------------------------------------------------------------------\x1b[0m', '\x1b[0;31mTypeError\x1b[0m Traceback (most recent call last)', '\x1b[0;32m/usr/lib64/python3.8/codeop.py\x1b[0m in \x1b[0;36m__call__\x1b[0;34m(self, source, filename, symbol)\x1b[0m\n\x1b[1;32m 139\x1b[0m \x1b[0;34m\x1b[0m\x1b[0m\n\x1b[1;32m 140\x1b[0m \x1b[0;32mdef\x1b[0m \x1b[0m__call__\x1b[0m\x1b[0;34m(\x1b[0m\x1b[0mself\x1b[0m\x1b[0;34m,\x1b[0m \x1b[0msource\x1b[0m\x1b[0;34m,\x1b[0m \x1b[0mfilename\x1b[0m\x1b[0;34m,\x1b[0m \x1b[0msymbol\x1b[0m\x1b[0;34m)\x1b[0m\x1b[0;34m:\x1b[0m\x1b[0;34m\x1b[0m\x1b[0;34m\x1b[0m\x1b[0m\n\x1b[0;32m--> 141\x1b[0;31m \x1b[0mcodeob\x1b[0m \x1b[0;34m=\x1b[0m \x1b[0mcompile\x1b[0m\x1b[0;34m(\x1b[0m\x1b[0msource\x1b[0m\x1b[0;34m,\x1b[0m \x1b[0mfilename\x1b[0m\x1b[0;34m,\x1b[0m \x1b[0msymbol\x1b[0m\x1b[0;34m,\x1b[0m \x1b[0mself\x1b[0m\x1b[0;34m.\x1b[0m\x1b[0mflags\x1b[0m\x1b[0;34m,\x1b[0m \x1b[0;36m1\x1b[0m\x1b[0;34m)\x1b[0m\x1b[0;34m\x1b[0m\x1b[0;34m\x1b[0m\x1b[0m\n\x1b[0m\x1b[1;32m 142\x1b[0m \x1b[0;32mfor\x1b[0m \x1b[0mfeature\x1b[0m \x1b[0;32min\x1b[0m \x1b[0m_features\x1b[0m\x1b[0;34m:\x1b[0m\x1b[0;34m\x1b[0m\x1b[0;34m\x1b[0m\x1b[0m\n\x1b[1;32m 143\x1b[0m \x1b[0;32mif\x1b[0m \x1b[0mcodeob\x1b[0m\x1b[0;34m.\x1b[0m\x1b[0mco_flags\x1b[0m \x1b[0;34m&\x1b[0m \x1b[0mfeature\x1b[0m\x1b[0;34m.\x1b[0m\x1b[0mcompiler_flag\x1b[0m\x1b[0;34m:\x1b[0m\x1b[0;34m\x1b[0m\x1b[0;34m\x1b[0m\x1b[0m\n', '\x1b[0;31mTypeError\x1b[0m: required field "type_ignores" missing from Module'] /usr/lib64/python3.8/unittest/case.py:753: AssertionError ----------------------------- Captured stderr call ----------------------------- --------------------------------------------------------------------------- TypeError Traceback (most recent call last) /usr/lib64/python3.8/codeop.py in __call__(self, source, filename, symbol)  139   140 def __call__(self, source, filename, symbol): --> 141 codeob = compile(source, filename, symbol, self.flags, 1)  142 for feature in _features:  143 if codeob.co_flags & feature.compiler_flag: TypeError: required field "type_ignores" missing from Module ________________________________ test_complete _________________________________ def test_complete(): with kernel() as kc: execute(u'a = 1', kc=kc) wait_for_idle(kc) cell = 'import IPython\nb = a.' kc.complete(cell) reply = kc.get_shell_msg(block=True, timeout=TIMEOUT) c = reply['content'] assert c['status'] == 'ok' assert c['cursor_start'] == cell.find('a.') assert c['cursor_end'] == cell.find('a.') + 2 matches = c['matches'] > nt.assert_greater(len(matches), 0) ipykernel/tests/test_kernel.py:255: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.8/unittest/case.py:1310: in assertGreater self.fail(self._formatMessage(msg, standardMsg)) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <nose.tools.trivial.Dummy testMethod=nop>, msg = '0 not greater than 0' def fail(self, msg=None): """Fail immediately, with the given message.""" > raise self.failureException(msg) E AssertionError: 0 not greater than 0 /usr/lib64/python3.8/unittest/case.py:753: AssertionError ----------------------------- Captured stderr call ----------------------------- --------------------------------------------------------------------------- TypeError Traceback (most recent call last) /usr/lib64/python3.8/codeop.py in __call__(self, source, filename, symbol)  139   140 def __call__(self, source, filename, symbol): --> 141 codeob = compile(source, filename, symbol, self.flags, 1)  142 for feature in _features:  143 if codeob.co_flags & feature.compiler_flag: TypeError: required field "type_ignores" missing from Module _______________________ test_matplotlib_inline_on_import _______________________ args = (), kwargs = {} def skipper_func(*args, **kwargs): """Skipper for normal test functions.""" if skip_val(): raise nose.SkipTest(get_msg(f,msg)) else: > return f(*args, **kwargs) /usr/share/python3.8/site-packages/IPython/testing/decorators.py:213: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ipykernel/tests/test_kernel.py:270: in test_matplotlib_inline_on_import _check_status(reply) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ content = {'ename': 'TypeError', 'engine_info': {'engine_id': -1, 'engine_uuid': '2ad6c61b-856f-40e4-a1ce-33fe062c8a89', 'method': 'execute'}, 'evalue': 'required field "type_ignores" missing from Module', 'execution_count': 14, ...} def _check_status(content): """If status=error, show the traceback""" if content['status'] == 'error': > assert False, ''.join(['\n'] + content['traceback']) E AssertionError: E ---------------------------------------------------------------------------TypeError Traceback (most recent call last)/usr/lib64/python3.8/codeop.py in __call__(self, source, filename, symbol) E  139  E  140 def __call__(self, source, filename, symbol): E --> 141 codeob = compile(source, filename, symbol, self.flags, 1) E  142 for feature in _features: E  143 if codeob.co_flags & feature.compiler_flag: E TypeError: required field "type_ignores" missing from Module E assert False ipykernel/tests/test_kernel.py:35: AssertionError ----------------------------- Captured stderr call ----------------------------- --------------------------------------------------------------------------- TypeError Traceback (most recent call last) /usr/lib64/python3.8/codeop.py in __call__(self, source, filename, symbol)  139   140 def __call__(self, source, filename, symbol): --> 141 codeob = compile(source, filename, symbol, self.flags, 1)  142 for feature in _features:  143 if codeob.co_flags & feature.compiler_flag: TypeError: required field "type_ignores" missing from Module _____________________________ test_execute_silent ______________________________ def test_execute_silent(): flush_channels() msg_id, reply = execute(code='x=1', silent=True) # flush status=idle status = KC.iopub_channel.get_msg(timeout=TIMEOUT) > validate_message(status, 'status', msg_id) ipykernel/tests/test_message_spec.py:288: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ msg = {'buffers': [], 'content': {'ename': 'TypeError', 'evalue': 'required field "type_ignores" missing from Module', 'trac...e5abe38c2045ffeed51e3', 'msg_type': 'error', 'session': '9872db7e-b8c53b901f848fdbad9f1209', ...}, 'metadata': {}, ...} msg_type = 'status', parent = '2a216732-6854360c731cdd709ae40530' def validate_message(msg, msg_type=None, parent=None): """validate a message This is a generator, and must be iterated through to actually trigger each test. If msg_type and/or parent are given, the msg_type and/or parent msg_id are compared with the given values. """ RMessage().check(msg) if msg_type: > assert msg['msg_type'] == msg_type E AssertionError: assert 'error' == 'status' E - error E + status ipykernel/tests/test_message_spec.py:260: AssertionError ----------------------------- Captured stderr call ----------------------------- --------------------------------------------------------------------------- TypeError Traceback (most recent call last) /usr/lib64/python3.8/codeop.py in __call__(self, source, filename, symbol)  139   140 def __call__(self, source, filename, symbol): --> 141 codeob = compile(source, filename, symbol, self.flags, 1)  142 for feature in _features:  143 if codeob.co_flags & feature.compiler_flag: TypeError: required field "type_ignores" missing from Module ____________________________ test_user_expressions _____________________________ def test_user_expressions(): flush_channels() msg_id, reply = execute(code='x=1', user_expressions=dict(foo='x+1')) user_expressions = reply['user_expressions'] > nt.assert_equal(user_expressions, {u'foo': { u'status': u'ok', u'data': {u'text/plain': u'2'}, u'metadata': {}, }}) ipykernel/tests/test_message_spec.py:360: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.8/unittest/case.py:912: in assertEqual assertion_func(first, second, msg=msg) /usr/lib64/python3.8/unittest/case.py:1211: in assertDictEqual self.fail(self._formatMessage(msg, standardMsg)) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <nose.tools.trivial.Dummy testMethod=nop> msg = "{} != {'foo': {'status': 'ok', 'data': {'text/plain': '2'}, 'metadata': {}}}\n- {}\n+ {'foo': {'data': {'text/plain': '2'}, 'metadata': {}, 'status': 'ok'}}" def fail(self, msg=None): """Fail immediately, with the given message.""" > raise self.failureException(msg) E AssertionError: {} != {'foo': {'status': 'ok', 'data': {'text/plain': '2'}, 'metadata': {}}} E - {} E + {'foo': {'data': {'text/plain': '2'}, 'metadata': {}, 'status': 'ok'}} /usr/lib64/python3.8/unittest/case.py:753: AssertionError ----------------------------- Captured stderr call ----------------------------- --------------------------------------------------------------------------- TypeError Traceback (most recent call last) /usr/lib64/python3.8/codeop.py in __call__(self, source, filename, symbol)  139   140 def __call__(self, source, filename, symbol): --> 141 codeob = compile(source, filename, symbol, self.flags, 1)  142 for feature in _features:  143 if codeob.co_flags & feature.compiler_flag: TypeError: required field "type_ignores" missing from Module __________________________ test_user_expressions_fail __________________________ def test_user_expressions_fail(): flush_channels() msg_id, reply = execute(code='x=0', user_expressions=dict(foo='nosuchname')) user_expressions = reply['user_expressions'] > foo = user_expressions['foo'] E KeyError: 'foo' ipykernel/tests/test_message_spec.py:372: KeyError ----------------------------- Captured stderr call ----------------------------- --------------------------------------------------------------------------- TypeError Traceback (most recent call last) /usr/lib64/python3.8/codeop.py in __call__(self, source, filename, symbol)  139   140 def __call__(self, source, filename, symbol): --> 141 codeob = compile(source, filename, symbol, self.flags, 1)  142 for feature in _features:  143 if codeob.co_flags & feature.compiler_flag: TypeError: required field "type_ignores" missing from Module _______________________________ test_oinfo_found _______________________________ def test_oinfo_found(): flush_channels() msg_id, reply = execute(code='a=5') msg_id = KC.inspect('a') reply = KC.get_shell_msg(timeout=TIMEOUT) validate_message(reply, 'inspect_reply', msg_id) content = reply['content'] > assert content['found'] E assert False ipykernel/tests/test_message_spec.py:394: AssertionError ----------------------------- Captured stderr call ----------------------------- --------------------------------------------------------------------------- TypeError Traceback (most recent call last) /usr/lib64/python3.8/codeop.py in __call__(self, source, filename, symbol)  139   140 def __call__(self, source, filename, symbol): --> 141 codeob = compile(source, filename, symbol, self.flags, 1)  142 for feature in _features:  143 if codeob.co_flags & feature.compiler_flag: TypeError: required field "type_ignores" missing from Module ______________________________ test_oinfo_detail _______________________________ def test_oinfo_detail(): flush_channels() msg_id, reply = execute(code='ip=get_ipython()') msg_id = KC.inspect('ip.object_inspect', cursor_pos=10, detail_level=1) reply = KC.get_shell_msg(timeout=TIMEOUT) validate_message(reply, 'inspect_reply', msg_id) content = reply['content'] > assert content['found'] E assert False ipykernel/tests/test_message_spec.py:409: AssertionError ----------------------------- Captured stderr call ----------------------------- --------------------------------------------------------------------------- TypeError Traceback (most recent call last) /usr/lib64/python3.8/codeop.py in __call__(self, source, filename, symbol)  139   140 def __call__(self, source, filename, symbol): --> 141 codeob = compile(source, filename, symbol, self.flags, 1)  142 for feature in _features:  143 if codeob.co_flags & feature.compiler_flag: TypeError: required field "type_ignores" missing from Module ________________________________ test_complete _________________________________ def test_complete(): flush_channels() msg_id, reply = execute(code="alpha = albert = 5") msg_id = KC.complete('al', 2) reply = KC.get_shell_msg(timeout=TIMEOUT) validate_message(reply, 'complete_reply', msg_id) matches = reply['content']['matches'] for name in ('alpha', 'albert'): > assert name in matches E AssertionError: assert 'alpha' in ['%alias', '%alias_magic', 'all'] ipykernel/tests/test_message_spec.py:435: AssertionError ----------------------------- Captured stderr call ----------------------------- --------------------------------------------------------------------------- TypeError Traceback (most recent call last) /usr/lib64/python3.8/codeop.py in __call__(self, source, filename, symbol)  139   140 def __call__(self, source, filename, symbol): --> 141 codeob = compile(source, filename, symbol, self.flags, 1)  142 for feature in _features:  143 if codeob.co_flags & feature.compiler_flag: TypeError: required field "type_ignores" missing from Module _____________________________ test_single_payload ______________________________ def test_single_payload(): flush_channels() msg_id, reply = execute(code="ip = get_ipython()\n" "for i in range(3):\n" " ip.set_next_input('Hello There')\n") payload = reply['payload'] next_input_pls = [pl for pl in payload if pl["source"] == "set_next_input"] > assert len(next_input_pls) == 1 E assert 0 == 1 E + where 0 = len([]) ipykernel/tests/test_message_spec.py:473: AssertionError ----------------------------- Captured stderr call ----------------------------- --------------------------------------------------------------------------- TypeError Traceback (most recent call last) /usr/lib64/python3.8/codeop.py in __call__(self, source, filename, symbol)  139   140 def __call__(self, source, filename, symbol): --> 141 codeob = compile(source, filename, symbol, self.flags, 1)  142 for feature in _features:  143 if codeob.co_flags & feature.compiler_flag: TypeError: required field "type_ignores" missing from Module ______________________________ test_display_data _______________________________ def test_display_data(): flush_channels() msg_id, reply = execute("from IPython.core.display import display; display(1)") display = KC.iopub_channel.get_msg(timeout=TIMEOUT) > validate_message(display, 'display_data', parent=msg_id) ipykernel/tests/test_message_spec.py:538: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ msg = {'buffers': [], 'content': {'ename': 'TypeError', 'evalue': 'required field "type_ignores" missing from Module', 'trac...87957edbb642165737a71', 'msg_type': 'error', 'session': '9872db7e-b8c53b901f848fdbad9f1209', ...}, 'metadata': {}, ...} msg_type = 'display_data', parent = '5dd557f4-c4f134b4b1ed9ebf8bfe8bd8' def validate_message(msg, msg_type=None, parent=None): """validate a message This is a generator, and must be iterated through to actually trigger each test. If msg_type and/or parent are given, the msg_type and/or parent msg_id are compared with the given values. """ RMessage().check(msg) if msg_type: > assert msg['msg_type'] == msg_type E AssertionError: assert 'error' == 'display_data' E - error E + display_data ipykernel/tests/test_message_spec.py:260: AssertionError ----------------------------- Captured stderr call ----------------------------- --------------------------------------------------------------------------- TypeError Traceback (most recent call last) /usr/lib64/python3.8/codeop.py in __call__(self, source, filename, symbol)  139   140 def __call__(self, source, filename, symbol): --> 141 codeob = compile(source, filename, symbol, self.flags, 1)  142 for feature in _features:  143 if codeob.co_flags & feature.compiler_flag: TypeError: required field "type_ignores" missing from Module _______________________________ test_no_closure ________________________________ def test_no_closure(): @interactive def foo(): a = 5 return a pfoo = dumps(foo) > bar = loads(pfoo) ipykernel/tests/test_pickleutil.py:23: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ipykernel/tests/test_pickleutil.py:14: in loads return uncan(pickle.loads(obj)) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ args = (0, 0, 1, 1, 83, b'd\x01}\x00|\x00S\x00', ...) def code_ctor(*args): > return types.CodeType(*args) E TypeError: an integer is required (got type bytes) ipykernel/codeutil.py:27: TypeError ____________________________ test_generator_closure ____________________________ def test_generator_closure(): # this only creates a closure on Python 3 @interactive def foo(): i = 'i' r = [ i for j in (1,2) ] return r pfoo = dumps(foo) > bar = loads(pfoo) ipykernel/tests/test_pickleutil.py:35: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ipykernel/tests/test_pickleutil.py:14: in loads return uncan(pickle.loads(obj)) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ args = (1, 0, 2, 3, 19, b'g\x00|\x00]\x08}\x01\x88\x00\x91\x02q\x04S\x00', ...) def code_ctor(*args): > return types.CodeType(*args) E TypeError: an integer is required (got type bytes) ipykernel/codeutil.py:27: TypeError _____________________________ test_nested_closure ______________________________ def test_nested_closure(): @interactive def foo(): i = 'i' def g(): return i return g() pfoo = dumps(foo) > bar = loads(pfoo) ipykernel/tests/test_pickleutil.py:47: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ipykernel/tests/test_pickleutil.py:14: in loads return uncan(pickle.loads(obj)) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ args = (0, 0, 0, 1, 19, b'\x88\x00S\x00', ...) def code_ctor(*args): > return types.CodeType(*args) E TypeError: an integer is required (got type bytes) ipykernel/codeutil.py:27: TypeError _________________________________ test_closure _________________________________ def test_closure(): i = 'i' @interactive def foo(): return i pfoo = dumps(foo) > bar = loads(pfoo) ipykernel/tests/test_pickleutil.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ipykernel/tests/test_pickleutil.py:14: in loads return uncan(pickle.loads(obj)) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ args = (0, 0, 0, 1, 19, b'\x88\x00S\x00', ...) def code_ctor(*args): > return types.CodeType(*args) E TypeError: an integer is required (got type bytes) ipykernel/codeutil.py:27: TypeError __________________________________ test_tuple __________________________________ def test_tuple(): tup = (lambda x:x, 1) bufs = serialize_object(tup) > canned = pickle.loads(bufs[0]) ipykernel/tests/test_serialize.py:162: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ args = (1, 0, 1, 1, 83, b'|\x00S\x00', ...) def code_ctor(*args): > return types.CodeType(*args) E TypeError: an integer is required (got type bytes) ipykernel/codeutil.py:27: TypeError __________________________________ test_list ___________________________________ def test_list(): lis = [lambda x:x, 1] bufs = serialize_object(lis) > canned = pickle.loads(bufs[0]) ipykernel/tests/test_serialize.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ args = (1, 0, 1, 1, 83, b'|\x00S\x00', ...) def code_ctor(*args): > return types.CodeType(*args) E TypeError: an integer is required (got type bytes) ipykernel/codeutil.py:27: TypeError _______________________ test_ipython_start_kernel_userns _______________________ def test_ipython_start_kernel_userns(): cmd = ('from IPython import start_kernel\n' 'ns = {"tre": 123}\n' 'start_kernel(user_ns=ns)') with setup_kernel(cmd) as client: msg_id = client.inspect('tre') msg = client.get_shell_msg(block=True, timeout=TIMEOUT) content = msg['content'] assert content['found'] text = content['data']['text/plain'] assert u'123' in text # user_module should be an instance of DummyMod msg_id = client.execute("usermod = get_ipython().user_module") msg = client.get_shell_msg(block=True, timeout=TIMEOUT) content = msg['content'] > assert content['status'] == u'ok' E AssertionError: assert 'error' == 'ok' E - error E + ok ipykernel/tests/test_start_kernel.py:22: AssertionError _____________________ test_ipython_start_kernel_no_userns ______________________ def test_ipython_start_kernel_no_userns(): # Issue #4188 - user_ns should be passed to shell as None, not {} cmd = ('from IPython import start_kernel\n' 'start_kernel()') with setup_kernel(cmd) as client: # user_module should not be an instance of DummyMod msg_id = client.execute("usermod = get_ipython().user_module") msg = client.get_shell_msg(block=True, timeout=TIMEOUT) content = msg['content'] > assert content['status'] == u'ok' E AssertionError: assert 'error' == 'ok' E - error E + ok ipykernel/tests/test_start_kernel.py:40: AssertionError =============================== warnings summary =============================== ipykernel/pickleutil.py:8 /tmp/B.G9wh9i/BUILD/ipykernel-4.10.1/ipykernel/pickleutil.py:8: DeprecationWarning: ipykernel.pickleutil is deprecated. It has moved to ipyparallel. warnings.warn("ipykernel.pickleutil is deprecated. It has moved to ipyparallel.", DeprecationWarning) ipykernel/codeutil.py:17 /tmp/B.G9wh9i/BUILD/ipykernel-4.10.1/ipykernel/codeutil.py:17: DeprecationWarning: ipykernel.codeutil is deprecated since IPykernel 4.3.1. It has moved to ipyparallel.serialize warnings.warn("ipykernel.codeutil is deprecated since IPykernel 4.3.1. It has moved to ipyparallel.serialize", DeprecationWarning) ipykernel/serialize.py:7 /tmp/B.G9wh9i/BUILD/ipykernel-4.10.1/ipykernel/serialize.py:7: DeprecationWarning: ipykernel.serialize is deprecated. It has moved to ipyparallel.serialize warnings.warn("ipykernel.serialize is deprecated. It has moved to ipyparallel.serialize", DeprecationWarning) ipykernel/inprocess/tests/test_kernel.py::InProcessKernelTestCase::test_getpass_stream /usr/share/python3.8/site-packages/jupyter_client/session.py:371: DeprecationWarning: Session._key_changed is deprecated in traitlets 4.1: use @observe and @unobserve instead. def _key_changed(self): /tmp/B.G9wh9i/BUILD/ipykernel-4.10.1/ipykernel/datapub.py:5: DeprecationWarning: ipykernel.datapub is deprecated. It has moved to ipyparallel.datapub warnings.warn("ipykernel.datapub is deprecated. It has moved to ipyparallel.datapub", DeprecationWarning) /tmp/B.G9wh9i/BUILD/ipykernel-4.10.1/ipykernel/iostream.py:66: DeprecationWarning: zmq.eventloop.ioloop is deprecated in pyzmq 17. pyzmq now works with default tornado and asyncio eventloops. self.io_loop = IOLoop(make_current=False) /usr/share/python3.8/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket msg_list = socket.recv_multipart(mode, copy=copy) /usr/share/python3.8/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket msg_list = socket.recv_multipart(mode, copy=copy) /tmp/B.G9wh9i/BUILD/ipykernel-4.10.1/ipykernel/inprocess/tests/test_kernel.py:76: UserWarning: The `stream` parameter of `getpass.getpass` will have no effect when using ipykernel kernel.getpass(stream='non empty') ipykernel/inprocess/tests/test_kernel.py::InProcessKernelTestCase::test_pylab /usr/share/python3.8/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket msg_list = socket.recv_multipart(mode, copy=copy) /usr/share/python3.8/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket msg_list = socket.recv_multipart(mode, copy=copy) /usr/share/python3.8/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket msg_list = socket.recv_multipart(mode, copy=copy) /usr/share/python3.8/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket msg_list = socket.recv_multipart(mode, copy=copy) /usr/share/python3.8/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket msg_list = socket.recv_multipart(mode, copy=copy) /usr/share/python3.8/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket msg_list = socket.recv_multipart(mode, copy=copy) ipykernel/inprocess/tests/test_kernel.py::InProcessKernelTestCase::test_raw_input /usr/share/python3.8/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket msg_list = socket.recv_multipart(mode, copy=copy) /usr/share/python3.8/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket msg_list = socket.recv_multipart(mode, copy=copy) /usr/share/python3.8/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket msg_list = socket.recv_multipart(mode, copy=copy) /usr/share/python3.8/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket msg_list = socket.recv_multipart(mode, copy=copy) /usr/share/python3.8/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket msg_list = socket.recv_multipart(mode, copy=copy) /usr/share/python3.8/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket msg_list = socket.recv_multipart(mode, copy=copy) ipykernel/inprocess/tests/test_kernel.py::InProcessKernelTestCase::test_stdout /usr/share/python3.8/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket msg_list = socket.recv_multipart(mode, copy=copy) /usr/share/python3.8/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket msg_list = socket.recv_multipart(mode, copy=copy) /usr/share/python3.8/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket msg_list = socket.recv_multipart(mode, copy=copy) /usr/share/python3.8/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket msg_list = socket.recv_multipart(mode, copy=copy) /usr/share/python3.8/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket msg_list = socket.recv_multipart(mode, copy=copy) /usr/share/python3.8/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket msg_list = socket.recv_multipart(mode, copy=copy) ipykernel/inprocess/tests/test_kernelmanager.py::InProcessKernelManagerTestCase::test_complete /usr/share/python3.8/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket msg_list = socket.recv_multipart(mode, copy=copy) /usr/share/python3.8/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket msg_list = socket.recv_multipart(mode, copy=copy) /usr/share/python3.8/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket msg_list = socket.recv_multipart(mode, copy=copy) /usr/share/python3.8/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket msg_list = socket.recv_multipart(mode, copy=copy) ipykernel/inprocess/tests/test_kernelmanager.py::InProcessKernelManagerTestCase::test_execute /usr/share/python3.8/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket msg_list = socket.recv_multipart(mode, copy=copy) /usr/share/python3.8/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket msg_list = socket.recv_multipart(mode, copy=copy) /usr/share/python3.8/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket msg_list = socket.recv_multipart(mode, copy=copy) /usr/share/python3.8/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket msg_list = socket.recv_multipart(mode, copy=copy) /usr/share/python3.8/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket msg_list = socket.recv_multipart(mode, copy=copy) /usr/share/python3.8/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket msg_list = socket.recv_multipart(mode, copy=copy) ipykernel/inprocess/tests/test_kernelmanager.py::InProcessKernelManagerTestCase::test_history /usr/share/python3.8/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket msg_list = socket.recv_multipart(mode, copy=copy) /usr/share/python3.8/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket msg_list = socket.recv_multipart(mode, copy=copy) /usr/share/python3.8/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket msg_list = socket.recv_multipart(mode, copy=copy) /usr/share/python3.8/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket msg_list = socket.recv_multipart(mode, copy=copy) /usr/share/python3.8/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket msg_list = socket.recv_multipart(mode, copy=copy) /usr/share/python3.8/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket msg_list = socket.recv_multipart(mode, copy=copy) /usr/share/python3.8/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket msg_list = socket.recv_multipart(mode, copy=copy) /usr/share/python3.8/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket msg_list = socket.recv_multipart(mode, copy=copy) ipykernel/inprocess/tests/test_kernelmanager.py::InProcessKernelManagerTestCase::test_inspect /usr/share/python3.8/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket msg_list = socket.recv_multipart(mode, copy=copy) /usr/share/python3.8/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket msg_list = socket.recv_multipart(mode, copy=copy) /usr/share/python3.8/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket msg_list = socket.recv_multipart(mode, copy=copy) /usr/share/python3.8/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket msg_list = socket.recv_multipart(mode, copy=copy) ipykernel/inprocess/tests/test_kernelmanager.py::InProcessKernelManagerTestCase::test_interface /usr/share/python3.8/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket msg_list = socket.recv_multipart(mode, copy=copy) /usr/share/python3.8/site-packages/jupyter_client/session.py:803: DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket msg_list = socket.recv_multipart(mode, copy=copy) ipykernel/tests/test_message_spec.py::test_oinfo /tmp/B.G9wh9i/BUILD/ipykernel-4.10.1/ipykernel/tests/test_message_spec.py:101: DeprecationWarning: InspectReply._data_changed is deprecated in traitlets 4.1: use @observe and @unobserve instead. def _data_changed(self, name, old, new): ipykernel/tests/test_serialize.py::test_numpy /tmp/B.G9wh9i/BUILD/ipykernel-4.10.1/ipykernel/tests/test_serialize.py:72: DeprecationWarning: Importing from numpy.testing.utils is deprecated since 1.15.0, import from numpy.testing instead. from numpy.testing.utils import assert_array_equal -- Docs: https://docs.pytest.org/en/latest/warnings.html ======== 29 failed, 65 passed, 1 skipped, 53 warnings in 27.31 seconds ========= /usr/share/python3.8/site-packages/hypothesis/extra/pytestplugin.py:61: HypothesisWarning: You are using Pytest version 3.10.1. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) error: Bad exit status from /tmp/B.G9wh9i/BUILD/tmp/rpm-tmp.43398 (%build) RPM build errors: Bad exit status from /tmp/B.G9wh9i/BUILD/tmp/rpm-tmp.43398 (%build) ended at: Tue Sep 15 21:19:52 2020, done in 0:01:06.915007 error: No files produced. + chmod -R u+rwX /tmp/B.G9wh9i/BUILD + rm -rf /tmp/B.G9wh9i/tmp /tmp/B.G9wh9i/BUILD + rm -rf /tmp/B.G9wh9i Begin-PLD-Builder-Info Build-Time: user:23.06s sys:3.75s real:70.28s (faults io:145 non-io:674284) End-PLD-Builder-Info
[Back to list of logs] [View rpm -qa of builder]