From Krystian Dowolski, 1 Month ago, written in Plain Text.
Embed
  1. ###### ENV AND VIRTUALENV SETUP ######
  2.  
  3.  
  4. export QUTE_BDD_WEBENGINE=true
  5. export LINK_PYQT_SKIP=true
  6.  
  7. pip install -r requirements.txt
  8. pip install -r misc/requirements/requirements-tests.txt
  9. pip install -r misc/requirements/requirements-pyqt-5.14.txt
  10.  
  11.  
  12.  
  13. ##### QUTEBROWSER VERSION ######
  14.  
  15.  
  16. kosciej@semantive-Lenovo-Legion-Y530-15ICH ~ $ qutebrowser --version
  17. qutebrowser v1.10.1
  18. Git commit: c4e6f24bc (2020-04-09 18:09:02 +0200)
  19. Backend: QtWebEngine (Chromium 77.0.3865.129)
  20. Qt: 5.14.1
  21.  
  22. CPython: 3.6.9
  23. PyQt: 5.14.1
  24.  
  25. sip: 5.1.1
  26. colorama: 0.4.3
  27. pypeg2: 2.15
  28. jinja2: 2.11.1
  29. pygments: 2.6.1
  30. yaml: 5.3.1
  31. cssutils: 1.0.2 $Id$
  32. attr: 19.3.0
  33. PyQt5.QtWebEngineWidgets: yes
  34. PyQt5.QtWebEngine: 5.14.0
  35. PyQt5.QtWebKitWidgets: no
  36. pdf.js: 1.5.188 (/usr/share/javascript/pdf/build/pdf.js)
  37. sqlite: 3.30.1
  38. QtNetwork SSL: OpenSSL 1.1.1  11 Sep 2018
  39.  
  40. Style: QFusionStyle
  41. Platform plugin: xcb
  42. Platform: Linux-5.3.0-26-generic-x86_64-with-Ubuntu-18.04-bionic, 64bit
  43. Linux distribution: Ubuntu 18.04.4 LTS (ubuntu)
  44. Frozen: False
  45. Imported from /home/kosciej/repos/qutebrowser/qutebrowser
  46. Using Python from /home/kosciej/repos/qutebrowser/.venv/bin/python
  47. Qt library executable path: /home/kosciej/repos/qutebrowser/.venv/lib/python3.6/site-packages/PyQt5/Qt/libexec, data path: /home/kosciej/repos/qutebrowser/.venv/lib/python3.6/site-packages/PyQt5/Qt
  48.  
  49. Paths:
  50. cache: /home/kosciej/.cache/qutebrowser
  51. config: /home/kosciej/.config/qutebrowser
  52. data: /home/kosciej/.local/share/qutebrowser
  53. runtime: /run/user/1000/qutebrowser
  54.  
  55. Autoconfig loaded: no
  56. Config.py: /home/kosciej/.config/qutebrowser/config.py has been loaded
  57. Uptime: 0:00:00
  58.  
  59.  
  60.  
  61. ###### PYTEST INVOCATION ######
  62.  
  63.  
  64. (venv) kosciej@semantive-Lenovo-Legion-Y530-15ICH ~/repos/qutebrowser (master) $ python -m pytest --lf
  65. pytest-xvfb could not find Xvfb. You can install it to prevent windows from being shown.
  66. =========================================================================================== test session starts ============================================================================================
  67. platform linux -- Python 3.7.5, pytest-5.4.1, py-1.8.1, pluggy-0.13.1
  68. PyQt5 5.14.2 -- Qt runtime 5.14.2 -- Qt compiled 5.14.2
  69. 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)
  70. rootdir: /home/kosciej/repos/qutebrowser, inifile: pytest.ini, testpaths: tests
  71. plugins: rerunfailures-9.0, qt-3.3.0, benchmark-3.2.3, cov-2.8.1, repeat-0.8.0, mock-2.0.0, instafail-0.4.1.post0, bdd-3.2.1, hypothesis-5.8.0, xvfb-1.2.0, travis-fold-1.3.0
  72. collected 8202 items / 8200 deselected / 6 skipped                                                                                                                                                        
  73. run-last-failure: rerun previous 2 failures
  74.  
  75. tests/unit/browser/test_caret.py F
  76.  
  77. ____________________________________________________________________________ TestSearch.test_yanking_a_searched_line[webengine] ____________________________________________________________________________
  78.  
  79. self = <test_caret.TestSearch object at 0x7fc9ec03cb50>, caret = <qutebrowser.browser.webengine.webenginetab.WebEngineCaret object at 0x7fc9e7f31410>
  80. selection = <test_caret.Selection object at 0x7fc9e7c2b950>, mode_manager = <qutebrowser.keyinput.modeman.ModeManager mode=<KeyMode.normal: 1>>
  81. web_tab = <qutebrowser.browser.webengine.webenginetab.WebEngineTab tab_id=0 url='qute://testdata/data/caret.html'>, qtbot = <pytestqt.qtbot.QtBot object at 0x7fc9e7f4aed0>
  82.  
  83.     @pytest.mark.qtbug60673
  84.     @pytest.mark.no_xvfb
  85.     def test_yanking_a_searched_line(self, caret, selection, mode_manager, web_tab, qtbot):
  86.         mode_manager.leave(usertypes.KeyMode.caret)
  87.    
  88.         with qtbot.wait_callback() as callback:
  89.             web_tab.search.search('fiv', result_cb=callback)
  90. >       callback.assert_called_with(True)
  91.  
  92. tests/unit/browser/test_caret.py:310:
  93. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  94.  
  95. self = <pytestqt.wait_signal.CallbackBlocker object at 0x7fc9e7c2bd10>, args = (True,), kwargs = {}, @py_assert1 = [False], @py_assert6 = [True], @py_assert3 = False
  96. @py_format8 = '[False] == [True]\n~At index 0 diff: False != True\n~Use -v to get the full diff', @py_format10 = 'assert [False] == [True]\n~At index 0 diff: False != True\n~Use -v to get the full diff'
  97.  
  98.     def assert_called_with(self, *args, **kwargs):
  99.         """
  100.         Check that the callback was called with the same arguments as this
  101.         function.
  102.         """
  103.         assert self.called
  104. >       assert self.args == list(args)
  105. E       assert [False] == [True]
  106. E         At index 0 diff: False != True
  107. E         Use -v to get the full diff
  108.  
  109. venv/lib/python3.7/site-packages/pytestqt/wait_signal.py:681: AssertionError
  110. -------------------------------------------------------------------------------------------- Captured log setup --------------------------------------------------------------------------------------------
  111. DEBUG    greasemonkey:greasemonkey.py:284 Reading scripts from: /tmp/pytest-of-kosciej/pytest-6/test_yanking_a_searched_line_w0/data/greasemonkey
  112. DEBUG    config:config.py:324 Config option changed: content.javascript.log = {'info': 'info', 'error': 'error', 'unknown': 'error', 'warning': 'error'}
  113. DEBUG    webview:browsertab.py:961 Going to start loading: qute://testdata/data/caret.html
  114. DEBUG    webview:browsertab.py:961 Going to start loading: qute://testdata/data/caret.html
  115. DEBUG    misc:eventfilter.py:56 <qutebrowser.browser.webengine.webview.WebEngineView object at 0x7fc9e7f310f0> got new child <PyQt5.QtWidgets.QWidget object at 0x7fc9e7f31d70>, installing filter
  116. DEBUG    webview:browsertab.py:927 load status for <qutebrowser.browser.webengine.webenginetab.WebEngineTab tab_id=0 url='qute://testdata/data/caret.html'>: LoadStatus.loading
  117. DEBUG    webview:browsertab.py:989 navigation request: url qute://testdata/data/caret.html, type Type.typed, is_main_frame True
  118. DEBUG    misc:webenginequtescheme.py:122 Got request for qute://testdata/data/caret.html
  119. DEBUG    misc:qutescheme.py:147 url: qute://testdata/data/caret.html, path: /data/caret.html, host testdata
  120. DEBUG    misc:webenginequtescheme.py:146 Returning text/html data
  121. DEBUG    webview:browsertab.py:927 load status for <qutebrowser.browser.webengine.webenginetab.WebEngineTab tab_id=0 url='qute://testdata/data/caret.html'>: LoadStatus.success
  122. DEBUG    modes:modeman.py:318 Entering mode KeyMode.caret
  123. -------------------------------------------------------------------------------------------- Captured log call ---------------------------------------------------------------------------------------------
  124. DEBUG    modes:modeman.py:385 Leaving mode KeyMode.caret
  125. DEBUG    webview:webenginetab.py:280 Ignoring selection cb due to mode change.
  126. DEBUG    webview:webenginetab.py:203 search didn't find fiv with flags FindCaseSensitively
  127.  
  128. tests/unit/browser/test_caret.py F
  129.  
  130. _________________________________________________________________ TestSearch.test_yanking_a_searched_line_with_multiple_matches[webengine] _________________________________________________________________
  131.  
  132. self = <test_caret.TestSearch object at 0x7fc9e7ff6a10>, caret = <qutebrowser.browser.webengine.webenginetab.WebEngineCaret object at 0x7fc9e7c8d050>
  133. selection = <test_caret.Selection object at 0x7fc9cc190190>, mode_manager = <qutebrowser.keyinput.modeman.ModeManager mode=<KeyMode.normal: 1>>
  134. web_tab = <qutebrowser.browser.webengine.webenginetab.WebEngineTab tab_id=1 url='qute://testdata/data/caret.html'>, qtbot = <pytestqt.qtbot.QtBot object at 0x7fc9e7c2bfd0>
  135.  
  136.     @pytest.mark.qtbug60673
  137.     @pytest.mark.no_xvfb
  138.     def test_yanking_a_searched_line_with_multiple_matches(self, caret, selection, mode_manager, web_tab, qtbot):
  139.         mode_manager.leave(usertypes.KeyMode.caret)
  140.    
  141.         with qtbot.wait_callback() as callback:
  142.             web_tab.search.search('w', result_cb=callback)
  143. >       callback.assert_called_with(True)
  144.  
  145. tests/unit/browser/test_caret.py:323:
  146. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  147.  
  148. self = <pytestqt.wait_signal.CallbackBlocker object at 0x7fc9cc18b210>, args = (True,), kwargs = {}, @py_assert1 = [False], @py_assert6 = [True], @py_assert3 = False
  149. @py_format8 = '[False] == [True]\n~At index 0 diff: False != True\n~Use -v to get the full diff', @py_format10 = 'assert [False] == [True]\n~At index 0 diff: False != True\n~Use -v to get the full diff'
  150.  
  151.     def assert_called_with(self, *args, **kwargs):
  152.         """
  153.         Check that the callback was called with the same arguments as this
  154.         function.
  155.         """
  156.         assert self.called
  157. >       assert self.args == list(args)
  158. E       assert [False] == [True]
  159. E         At index 0 diff: False != True
  160. E         Use -v to get the full diff
  161.  
  162. venv/lib/python3.7/site-packages/pytestqt/wait_signal.py:681: AssertionError
  163. -------------------------------------------------------------------------------------------- Captured log setup --------------------------------------------------------------------------------------------
  164. DEBUG    greasemonkey:greasemonkey.py:284 Reading scripts from: /tmp/pytest-of-kosciej/pytest-6/test_yanking_a_searched_line_w1/data/greasemonkey
  165. DEBUG    config:config.py:324 Config option changed: content.javascript.log = {'info': 'info', 'error': 'error', 'unknown': 'error', 'warning': 'error'}
  166. DEBUG    webview:browsertab.py:961 Going to start loading: qute://testdata/data/caret.html
  167. DEBUG    webview:browsertab.py:961 Going to start loading: qute://testdata/data/caret.html
  168. DEBUG    misc:eventfilter.py:56 <qutebrowser.browser.webengine.webview.WebEngineView object at 0x7fc9c57becd0> got new child <PyQt5.QtWidgets.QWidget object at 0x7fc9e7c8d7d0>, installing filter
  169. DEBUG    destroy:objreg.py:125 schedule removal: 0
  170. DEBUG    destroy:objreg.py:125 schedule removal: tab
  171. DEBUG    misc:eventfilter.py:80 <PyQt5.QtWidgets.QWidget object at 0x7fc9e7c8d5f0>: removed child <PyQt5.QtCore.QObject object at 0x7fc9e7c8d910>
  172. DEBUG    misc:eventfilter.py:80 <PyQt5.QtWidgets.QWidget object at 0x7fc9e7c8d5f0>: removed child <PyQt5.QtWidgets.QWidget object at 0x7fc9e7f31d70>
  173. DEBUG    destroy:objreg.py:130 removed: 0
  174. DEBUG    destroy:objreg.py:130 removed: tab
  175. DEBUG    webview:browsertab.py:927 load status for <qutebrowser.browser.webengine.webenginetab.WebEngineTab tab_id=1 url='qute://testdata/data/caret.html'>: LoadStatus.loading
  176. DEBUG    webview:browsertab.py:989 navigation request: url qute://testdata/data/caret.html, type Type.typed, is_main_frame True
  177. DEBUG    misc:webenginequtescheme.py:122 Got request for qute://testdata/data/caret.html
  178. DEBUG    misc:qutescheme.py:147 url: qute://testdata/data/caret.html, path: /data/caret.html, host testdata
  179. DEBUG    misc:webenginequtescheme.py:146 Returning text/html data
  180. DEBUG    webview:browsertab.py:927 load status for <qutebrowser.browser.webengine.webenginetab.WebEngineTab tab_id=1 url='qute://testdata/data/caret.html'>: LoadStatus.success
  181. DEBUG    modes:modeman.py:318 Entering mode KeyMode.caret
  182. -------------------------------------------------------------------------------------------- Captured log call ---------------------------------------------------------------------------------------------
  183. DEBUG    modes:modeman.py:385 Leaving mode KeyMode.caret
  184. DEBUG    webview:webenginetab.py:280 Ignoring selection cb due to mode change.
  185. DEBUG    webview:webenginetab.py:203 search didn't find w with flags FindCaseSensitively
  186.                                                                                                                                                                                                      [100%]
  187. ========================================================================================= short test summary info ==========================================================================================
  188. FAILED tests/unit/browser/test_caret.py::TestSearch::test_yanking_a_searched_line[webengine] - assert [False] == [True]
  189. FAILED tests/unit/browser/test_caret.py::TestSearch::test_yanking_a_searched_line_with_multiple_matches[webengine] - assert [False] == [True]
  190. ============================================================================== 2 failed, 6 skipped, 8200 deselected in 3.83s ===============================================================================
  191. Fatal Python error: Segmentation fault
  192.  
  193. Current thread 0x00007fca1076e740 (most recent call first):
  194. Segmentation fault (core dumped)
  195.