Closed mcepl closed 5 years ago
[ 9s] + py.test-2.7 tests [ 10s] ============================= test session starts ============================== [ 10s] platform linux2 -- Python 2.7.15, pytest-3.6.2, py-1.5.3, pluggy-0.6.0 [ 10s] rootdir: /home/abuild/rpmbuild/BUILD/line_profiler-2.1.2, inifile: [ 10s] collected 3 items / 1 errors [ 10s] [ 10s] ==================================== ERRORS ==================================== [ 10s] _________________ ERROR collecting tests/test_line_profiler.py _________________ [ 10s] ImportError while importing test module '/home/abuild/rpmbuild/BUILD/line_profiler-2.1.2/tests/test_line_profiler.py'. [ 10s] Hint: make sure your test modules/packages have valid Python names. [ 10s] Traceback: [ 10s] tests/test_line_profiler.py:3: in <module> [ 10s] from line_profiler import LineProfiler [ 10s] ../../BUILDROOT/python-line_profiler-2.1.2-0.x86_64/usr/lib64/python2.7/site-packages/line_profiler.py:20: in <module> [ 10s] from IPython.core.magic import (Magics, magics_class, line_magic) [ 10s] /usr/lib/python2.7/site-packages/IPython/__init__.py:49: in <module> [ 10s] from .terminal.embed import embed [ 10s] /usr/lib/python2.7/site-packages/IPython/terminal/embed.py:18: in <module> [ 10s] from IPython.terminal.interactiveshell import TerminalInteractiveShell [ 10s] /usr/lib/python2.7/site-packages/IPython/terminal/interactiveshell.py:20: in <module> [ 10s] from prompt_toolkit.shortcuts import create_prompt_application, create_eventloop, create_prompt_layout, create_output [ 10s] E ImportError: cannot import name create_prompt_application [ 10s] !!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!! [ 10s] =========================== 1 error in 0.32 seconds ============================ [ 10s] error: Bad exit status from /var/tmp/rpm-tmp.2HfbGo (%check)
Pretty sure this is a bug in IPython or prompt_toolkit.