From Marc Jauvin, 1 Year ago, written in Plain Text.
This paste will join the choir invisible in 1 Second.
Embed
  1. ___________________________ test_removing_a_download ___________________________
  2.  
  3. request = <FixtureRequest for <Function 'test_removing_a_download'>>
  4.  
  5. >   ???
  6.  
  7. tests/end2end/features/test_downloads_bdd.py:209:
  8. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  9. .tox/py36-pyqt59/lib/python3.6/site-packages/pytest_bdd/scenario.py:195: in _execute_scenario
  10.     _execute_step_function(request, scenario, step, step_func)
  11. .tox/py36-pyqt59/lib/python3.6/site-packages/pytest_bdd/scenario.py:137: in _execute_step_function
  12.     step_func(**kwargs)
  13. .tox/py36-pyqt59/lib/python3.6/site-packages/pytest_bdd/steps.py:165: in step_func
  14.     result = get_fixture_value(request, func.__name__)
  15. .tox/py36-pyqt59/lib/python3.6/site-packages/pytest_bdd/utils.py:36: in get_fixture_value
  16.     return getfixturevalue(name)
  17. .tox/py36-pyqt59/lib/python3.6/site-packages/_pytest/fixtures.py:427: in getfixturevalue
  18.     return self._get_active_fixturedef(argname).cached_result[0]
  19. .tox/py36-pyqt59/lib/python3.6/site-packages/_pytest/fixtures.py:453: in _get_active_fixturedef
  20.     result = self._getfixturevalue(fixturedef)
  21. .tox/py36-pyqt59/lib/python3.6/site-packages/_pytest/fixtures.py:518: in _getfixturevalue
  22.     val = fixturedef.execute(request=subrequest)
  23. .tox/py36-pyqt59/lib/python3.6/site-packages/_pytest/fixtures.py:772: in execute
  24.     fixturedef = request._get_active_fixturedef(argname)
  25. .tox/py36-pyqt59/lib/python3.6/site-packages/_pytest/fixtures.py:453: in _get_active_fixturedef
  26.     result = self._getfixturevalue(fixturedef)
  27. .tox/py36-pyqt59/lib/python3.6/site-packages/_pytest/fixtures.py:518: in _getfixturevalue
  28.     val = fixturedef.execute(request=subrequest)
  29. .tox/py36-pyqt59/lib/python3.6/site-packages/_pytest/fixtures.py:791: in execute
  30.     return hook.pytest_fixture_setup(fixturedef=self, request=request)
  31. .tox/py36-pyqt59/lib/python3.6/site-packages/pluggy/__init__.py:617: in __call__
  32.     return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
  33. .tox/py36-pyqt59/lib/python3.6/site-packages/pluggy/__init__.py:222: in _hookexec
  34.     return self._inner_hookexec(hook, methods, kwargs)
  35. .tox/py36-pyqt59/lib/python3.6/site-packages/pluggy/__init__.py:216: in <lambda>
  36.     firstresult=hook.spec_opts.get('firstresult'),
  37. .tox/py36-pyqt59/lib/python3.6/site-packages/_pytest/fixtures.py:822: in pytest_fixture_setup
  38.     result = call_fixture_func(fixturefunc, request, kwargs)
  39. .tox/py36-pyqt59/lib/python3.6/site-packages/_pytest/fixtures.py:701: in call_fixture_func
  40.     res = next(it)
  41. tests/end2end/fixtures/quteprocess.py:844: in quteproc
  42.     quteproc_process.before_test()
  43. tests/end2end/fixtures/quteprocess.py:529: in before_test
  44.     self._init_settings()
  45. tests/end2end/fixtures/quteprocess.py:543: in _init_settings
  46.     self.set_setting(opt, value)
  47. tests/end2end/fixtures/quteprocess.py:625: in set_setting
  48.     self.send_cmd(':set "{}" "{}"'.format(option, value), escape=False)
  49. tests/end2end/fixtures/quteprocess.py:609: in send_cmd
  50.     self.send_ipc([command])
  51. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  52.  
  53. self = <end2end.fixtures.quteprocess.QuteProc object at 0x7ffaae779ca8>
  54. commands = [':set "messages.timeout" "0"'], target_arg = ''
  55.  
  56.     def send_ipc(self, commands, target_arg=''):
  57.         """Send a raw command to the running IPC socket."""
  58.         delay = self.request.config.getoption('--qute-delay')
  59.         time.sleep(delay / 1000)
  60.    
  61.         assert self._ipc_socket is not None
  62.         ipc.send_to_running_instance(self._ipc_socket, commands, target_arg)
  63.         self.wait_for(category='ipc', module='ipc', function='on_ready_read',
  64. >                     message='Read from socket *')
  65. E       end2end.fixtures.testprocess.WaitForTimeout: Timed out after 500.0ms waiting for {'category': 'ipc', 'module': 'ipc', 'function': 'on_ready_read', 'message': 'Read from socket *'}.
  66.  
  67. tests/end2end/fixtures/quteprocess.py:580: WaitForTimeout
  68. ============================== :config-clear ==============================
  69.  
  70.  
  71. ----> Waiting for 'Read from socket *' in the log
  72. ESC[32m10:53:37.674ESC[0m ESC[37mDEBUG   ESC[0m ESC[36mipc        ipc:handle_connection:259ESC[0m ESC[37mClient connected (socket 0x7f54f0055558).ESC[0m
  73. ESC[32m10:53:37.674ESC[0m ESC[37mDEBUG   ESC[0m ESC[36mipc        ipc:on_ready_read:362ESC[0m ESC[37mRead from socket 0x7f54f0055558: b'{"args": [":config-clear"], "target_arg": "", "version": "1.1.1", "protocol_version": 1, "cwd": "/home/marc/src/qutebrowser"}\n'ESC[0m
  74. ESC[32m10:53:37.675ESC[0m ESC[37mDEBUG   ESC[0m ESC[36mipc        ipc:_handle_data:304ESC[0m ESC[37mProcessing: {"args": [":config-clear"], "target_arg": "", "version": "1.1.1", "protocol_version": 1, "cwd": "/home/marc/src/qutebrowser"}
  75. ESC[0m
  76. ----> found it
  77.  
  78. ----> Waiting for 'command called: *' in the log
  79. ESC[32m10:53:37.676ESC[0m ESC[37mDEBUG   ESC[0m ESC[36minit       app:process_pos_args:281ESC[0m ESC[37mStartup cmd ':config-clear'ESC[0m
  80. ESC[32m10:53:37.676ESC[0m ESC[37mDEBUG   ESC[0m ESC[36mcommands   command:run:485ESC[0m ESC[37mcommand called: config-clearESC[0m
  81. ----> found it
  82.  
  83. ============================== :set "messages.timeout" "0" ==============================
  84.  
  85.  
  86. ----> Waiting for 'Read from socket *' in the log
  87. ESC[32m10:53:37.677ESC[0m ESC[37mDEBUG   ESC[0m ESC[36mcommands   command:run:500ESC[0m ESC[37mCalling qutebrowser.config.configcommands.ConfigCommands.config_clear(<qutebrowser.config.configcommands.ConfigCommands object at 0x7f5542e6b6d8>, False)ESC[0m
  88. -------------------------------- server output ---------------------------------
  89.  
  90. --------------------------------- BDD scenario ---------------------------------
  91. Feature: Downloading things from a website.
  92.   Scenario: Removing a download (features/downloads.feature:347)
  93.     Given I set up a temporary download dir (0.48s)
  94.     And I clean old downloads (0.00s)
  95.     And I set downloads.remove_finished to -1 (0.00s)
  96.     When I open data/downloads/download.bin without waiting (0.00s)
  97.     And I wait until the download is finished (0.00s)
  98.     And I run :download-remove (0.00s)
  99.     Then "Removed download *" should be logged (0.00s)
  100. ------------------------------ Captured log call -------------------------------
  101. ipc.py                     435 DEBUG    Connecting to /tmp/qutebrowser-basedir-1fj4unrk/runtime/ipc-3661be24b3541f7944202cb248d0986d
  102. ipc.py                     440 INFO     Opening in existing instance
  103. ipc.py                     452 DEBUG    Writing: b'{"args": [":config-clear"], "target_arg": "", "version": "1.1.1", "protocol_version": 1, "cwd": "/home/marc/src/qutebrowser"}\n'
  104. ipc.py                     435 DEBUG    Connecting to /tmp/qutebrowser-basedir-1fj4unrk/runtime/ipc-3661be24b3541f7944202cb248d0986d
  105. ipc.py                     440 INFO     Opening in existing instance
  106. ipc.py                     452 DEBUG    Writing: b'{"args": [":set \\"messages.timeout\\" \\"0\\""], "target_arg": "", "version": "1.1.1", "protocol_version": 1, "cwd": "/home/marc/src/qutebrowser"}\n'
  107.  
  108. tests/end2end/features/test_downloads_bdd.py ........................... [ 82%]
  109. ..........sF
  110.  
  111. ____________ test_answering_a_question_for_a_cancelled_download_415 ____________
  112.  
  113. request = <FixtureRequest for <Function 'test_answering_a_question_for_a_cancelled_download_415'>>
  114.  
  115. >   ???
  116.  
  117. tests/end2end/features/test_downloads_bdd.py:365:
  118. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  119. .tox/py36-pyqt59/lib/python3.6/site-packages/pytest_bdd/scenario.py:195: in _execute_scenario
  120.     _execute_step_function(request, scenario, step, step_func)
  121. .tox/py36-pyqt59/lib/python3.6/site-packages/pytest_bdd/scenario.py:137: in _execute_step_function
  122.     step_func(**kwargs)
  123. .tox/py36-pyqt59/lib/python3.6/site-packages/pytest_bdd/steps.py:165: in step_func
  124.     result = get_fixture_value(request, func.__name__)
  125. .tox/py36-pyqt59/lib/python3.6/site-packages/pytest_bdd/utils.py:36: in get_fixture_value
  126.     return getfixturevalue(name)
  127. .tox/py36-pyqt59/lib/python3.6/site-packages/_pytest/fixtures.py:427: in getfixturevalue
  128.     return self._get_active_fixturedef(argname).cached_result[0]
  129. .tox/py36-pyqt59/lib/python3.6/site-packages/_pytest/fixtures.py:453: in _get_active_fixturedef
  130.     result = self._getfixturevalue(fixturedef)
  131. .tox/py36-pyqt59/lib/python3.6/site-packages/_pytest/fixtures.py:518: in _getfixturevalue
  132.     val = fixturedef.execute(request=subrequest)
  133. .tox/py36-pyqt59/lib/python3.6/site-packages/_pytest/fixtures.py:772: in execute
  134.     fixturedef = request._get_active_fixturedef(argname)
  135. .tox/py36-pyqt59/lib/python3.6/site-packages/_pytest/fixtures.py:453: in _get_active_fixturedef
  136.     result = self._getfixturevalue(fixturedef)
  137. .tox/py36-pyqt59/lib/python3.6/site-packages/_pytest/fixtures.py:518: in _getfixturevalue
  138.     val = fixturedef.execute(request=subrequest)
  139. .tox/py36-pyqt59/lib/python3.6/site-packages/_pytest/fixtures.py:791: in execute
  140.     return hook.pytest_fixture_setup(fixturedef=self, request=request)
  141. .tox/py36-pyqt59/lib/python3.6/site-packages/pluggy/__init__.py:617: in __call__
  142.     return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
  143. .tox/py36-pyqt59/lib/python3.6/site-packages/pluggy/__init__.py:222: in _hookexec
  144.     return self._inner_hookexec(hook, methods, kwargs)
  145. .tox/py36-pyqt59/lib/python3.6/site-packages/pluggy/__init__.py:216: in <lambda>
  146.     firstresult=hook.spec_opts.get('firstresult'),
  147. .tox/py36-pyqt59/lib/python3.6/site-packages/_pytest/fixtures.py:822: in pytest_fixture_setup
  148.     result = call_fixture_func(fixturefunc, request, kwargs)
  149. .tox/py36-pyqt59/lib/python3.6/site-packages/_pytest/fixtures.py:701: in call_fixture_func
  150.     res = next(it)
  151. tests/end2end/fixtures/quteprocess.py:844: in quteproc
  152.     quteproc_process.before_test()
  153. tests/end2end/fixtures/quteprocess.py:529: in before_test
  154.     self._init_settings()
  155. tests/end2end/fixtures/quteprocess.py:543: in _init_settings
  156.     self.set_setting(opt, value)
  157. tests/end2end/fixtures/quteprocess.py:625: in set_setting
  158.     self.send_cmd(':set "{}" "{}"'.format(option, value), escape=False)
  159. tests/end2end/fixtures/quteprocess.py:609: in send_cmd
  160.     self.send_ipc([command])
  161. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  162.  
  163. self = <end2end.fixtures.quteprocess.QuteProc object at 0x7ffaae779ca8>
  164. commands = [':set "messages.timeout" "0"'], target_arg = ''
  165.  
  166.     def send_ipc(self, commands, target_arg=''):
  167.         """Send a raw command to the running IPC socket."""
  168.         delay = self.request.config.getoption('--qute-delay')
  169.         time.sleep(delay / 1000)
  170.    
  171.         assert self._ipc_socket is not None
  172.         ipc.send_to_running_instance(self._ipc_socket, commands, target_arg)
  173.         self.wait_for(category='ipc', module='ipc', function='on_ready_read',
  174. >                     message='Read from socket *')
  175. E       end2end.fixtures.testprocess.WaitForTimeout: Timed out after 500.0ms waiting for {'category': 'ipc', 'module': 'ipc', 'function': 'on_ready_read', 'message': 'Read from socket *'}.
  176. tests/end2end/fixtures/quteprocess.py:580: WaitForTimeout
  177. ------------------------------ qutebrowser output ------------------------------
  178. ESC[32m10:54:41.785ESC[0m ESC[37mDEBUG   ESC[0m ESC[36mipc        ipc:on_error:241ESC[0m ESC[37mSocket 0x7f54f0055678: error 1: QLocalSocket: Remote closedESC[0m
  179. ESC[32m10:54:41.785ESC[0m ESC[37mDEBUG   ESC[0m ESC[36mipc        ipc:on_disconnected:280ESC[0m ESC[37mClient disconnected from socket 0x7f54f0055678.ESC[0m
  180. ESC[32m10:54:41.786ESC[0m ESC[37mDEBUG   ESC[0m ESC[36mipc        ipc:handle_connection:257ESC[0m ESC[37mNo new connection to handle.ESC[0m
  181.  
  182. ============================== :config-clear ==============================
  183.  
  184.  
  185. ----> Waiting for 'Read from socket *' in the log
  186. ESC[32m10:54:41.792ESC[0m ESC[37mDEBUG   ESC[0m ESC[36mipc        ipc:handle_connection:259ESC[0m ESC[37mClient connected (socket 0x7f54f0055948).ESC[0m
  187. ESC[32m10:54:41.793ESC[0m ESC[37mDEBUG   ESC[0m ESC[36mipc        ipc:on_ready_read:362ESC[0m ESC[37mRead from socket 0x7f54f0055948: b'{"args": [":config-clear"], "target_arg": "", "version": "1.1.1", "protocol_version": 1, "cwd": "/home/marc/src/qutebrowser"}\n'ESC[0m
  188. ESC[32m10:54:41.793ESC[0m ESC[37mDEBUG   ESC[0m ESC[36mipc        ipc:_handle_data:304ESC[0m ESC[37mProcessing: {"args": [":config-clear"], "target_arg": "", "version": "1.1.1", "protocol_version": 1, "cwd": "/home/marc/src/qutebrowser"}
  189. ESC[0m
  190. ----> found it
  191.  
  192. ----> Waiting for 'command called: *' in the log
  193. ESC[32m10:54:41.795ESC[0m ESC[37mDEBUG   ESC[0m ESC[36minit       app:process_pos_args:281ESC[0m ESC[37mStartup cmd ':config-clear'ESC[0m
  194. ESC[32m10:54:41.797ESC[0m ESC[37mDEBUG   ESC[0m ESC[36mcommands   command:run:485ESC[0m ESC[37mcommand called: config-clearESC[0m
  195. ESC[32m10:54:41.797ESC[0m ESC[37mDEBUG   ESC[0m ESC[36mcommands   command:run:500ESC[0m ESC[37mCalling qutebrowser.config.configcommands.ConfigCommands.config_clear(<qutebrowser.config.configcommands.ConfigCommands object at 0x7f5542e6b6d8>, False)ESC[0m
  196. ----> found it
  197.  
  198. ============================== :set "messages.timeout" "0" ==============================
  199.  
  200.  
  201. ----> Waiting for 'Read from socket *' in the log
  202. -------------------------------- server output ---------------------------------
  203.  
  204. --------------------------------- BDD scenario ---------------------------------
  205. Feature: Downloading things from a website.
  206.   Scenario: Answering a question for a cancelled download (#415) (features/downloads.feature:637)
  207.     Given I set up a temporary download dir (0.49s)
  208.     And I clean old downloads (0.00s)
  209.     And I set downloads.remove_finished to -1 (0.00s)
  210.     When I set downloads.location.prompt to true (0.00s)
  211.     And I run :download http://localhost:(port)/data/downloads/download.bin (0.00s)
  212.     And I wait for "Asking question <qutebrowser.utils.usertypes.Question default='*' mode=<PromptMode.download: 5> text=* title='Save file to:'>, *" in the log (0.00s)
  213.     And I run :download http://localhost:(port)/data/downloads/download2.bin (0.00s)
  214.     And I wait for "Asking question <qutebrowser.utils.usertypes.Question default='*' mode=<PromptMode.download: 5> text=* title='Save file to:'>, *" in the log (0.00s)
  215.     And I run :download-cancel with count 2 (0.00s)
  216.     And I run :prompt-accept (0.00s)
  217.     And I wait until the download is finished (0.00s)
  218.     Then the downloaded file download.bin should exist (0.00s)
  219.     And the downloaded file download2.bin should not exist (0.00s)
  220. ------------------------------ Captured log call -------------------------------
  221. ipc.py                     435 DEBUG    Connecting to /tmp/qutebrowser-basedir-1fj4unrk/runtime/ipc-3661be24b3541f7944202cb248d0986d
  222. ipc.py                     440 INFO     Opening in existing instance
  223. ipc.py                     452 DEBUG    Writing: b'{"args": [":config-clear"], "target_arg": "", "version": "1.1.1", "protocol_version": 1, "cwd": "/home/marc/src/qutebrowser"}\n'
  224. ipc.py                     435 DEBUG    Connecting to /tmp/qutebrowser-basedir-1fj4unrk/runtime/ipc-3661be24b3541f7944202cb248d0986d
  225. ipc.py                     440 INFO     Opening in existing instance
  226. ipc.py                     452 DEBUG    Writing: b'{"args": [":set \\"messages.timeout\\" \\"0\\""], "target_arg": "", "version": "1.1.1", "protocol_version": 1, "cwd": "/home/marc/src/qutebrowser"}\n'
  227.  
  228. tests/end2end/features/test_downloads_bdd.py sss                         [100%]
  229. =========================== short test summary info ============================
  230. FAIL tests/end2end/features/test_downloads_bdd.py::test_removing_a_download
  231. FAIL tests/end2end/features/test_downloads_bdd.py::test_answering_a_question_for_a_cancelled_download_415
  232.  
  233. ============================== 0 tests deselected ==============================
  234. ========= 2 failed, 68 passed, 14 skipped, 1 xfailed in 128.94 seconds =========
  235. ERROR: InvocationError: '/home/marc/src/qutebrowser/.tox/py36-pyqt59/bin/python -bb -m pytest tests/end2end/features/test_downloads_bdd.py'
  236. ___________________________________ summary ____________________________________
  237. ERROR:   py36-pyqt59: commands failed
  238.  
  239.  
  240.  
  241.  
  242.  
  243.