From reed9999, 9 Months ago, written in Plain Text.
This paste is a reply to pytest silently crashes here from reed9999
- view diff
Embed
  1. Note: Only once does it hit the breakpoint in my test file; the other case hits the breakpoint twice.
  2.  
  3.  
  4. C:(path to qb)\qutebrowser>python.exe -bb -m pytest pjr\test_pjr.py
  5. ============================= test session starts =============================
  6. platform win32 -- Python 3.6.0, pytest-3.1.3, py-1.4.34, pluggy-0.4.0
  7. PyQt5 5.6 -- Qt runtime 5.6.2 -- Qt compiled 5.6.2
  8. benchmark: 3.1.1 (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)
  9. rootdir: C:(path to qb)\qutebrowser, inifile: pytest.ini
  10. plugins: xvfb-1.0.0, travis-fold-1.2.0, rerunfailures-2.2, repeat-0.4.1, qt-2.1.2, mock-1.6.2, instafail-0.3.0, faulthandler-1.3.1, cov-2.5.1, catchlog-1.2.2, benchmark-3.1.1, bdd-2.18.2, hypothesis-3.14.0
  11. collecting 0 items
  12. >>>>>>>>>>>>>>>>>>> PDB set_trace (IO-capturing turned off) >>>>>>>>>>>>>>>>>>>
  13. > c:(path to qb)\qutebrowser\pjr\test_pjr.py(36)<module>()
  14. -> def test_always_true(qapp, caplog):
  15. (Pdb) w
  16.   c:\programdata\anaconda3\lib\runpy.py(193)_run_module_as_main()
  17. -> "__main__", mod_spec)
  18.   c:\programdata\anaconda3\lib\runpy.py(85)_run_code()
  19. -> exec(code, run_globals)
  20.   c:\programdata\anaconda3\lib\site-packages\pytest.py(73)<module>()
  21. -> raise SystemExit(pytest.main())
  22.   c:\programdata\anaconda3\lib\site-packages\_pytest\config.py(58)main()
  23. -> return config.hook.pytest_cmdline_main(config=config)
  24.   c:\programdata\anaconda3\lib\site-packages\_pytest\vendored_packages\pluggy.py(745)__call__()
  25. -> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
  26.   c:\programdata\anaconda3\lib\site-packages\_pytest\vendored_packages\pluggy.py(339)_hookexec()
  27. -> return self._inner_hookexec(hook, methods, kwargs)
  28.   c:\programdata\anaconda3\lib\site-packages\_pytest\vendored_packages\pluggy.py(334)<lambda>()
  29. -> _MultiCall(methods, kwargs, hook.spec_opts).execute()
  30.   c:\programdata\anaconda3\lib\site-packages\_pytest\vendored_packages\pluggy.py(614)execute()
  31. -> res = hook_impl.function(*args)
  32.   c:\programdata\anaconda3\lib\site-packages\_pytest\main.py(134)pytest_cmdline_main()
  33. -> return wrap_session(config, _main)
  34.   c:\programdata\anaconda3\lib\site-packages\_pytest\main.py(105)wrap_session()
  35. -> session.exitstatus = doit(config, session) or 0
  36.   c:\programdata\anaconda3\lib\site-packages\_pytest\main.py(140)_main()
  37. -> config.hook.pytest_collection(session=session)
  38.   c:\programdata\anaconda3\lib\site-packages\_pytest\vendored_packages\pluggy.py(745)__call__()
  39. -> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
  40.   c:\programdata\anaconda3\lib\site-packages\_pytest\vendored_packages\pluggy.py(339)_hookexec()
  41. -> return self._inner_hookexec(hook, methods, kwargs)
  42.   c:\programdata\anaconda3\lib\site-packages\_pytest\vendored_packages\pluggy.py(334)<lambda>()
  43. -> _MultiCall(methods, kwargs, hook.spec_opts).execute()
  44.   c:\programdata\anaconda3\lib\site-packages\_pytest\vendored_packages\pluggy.py(614)execute()
  45. -> res = hook_impl.function(*args)
  46.   c:\programdata\anaconda3\lib\site-packages\_pytest\main.py(150)pytest_collection()
  47. -> return session.perform_collect()
  48.   c:\programdata\anaconda3\lib\site-packages\_pytest\main.py(603)perform_collect()
  49. -> items = self._perform_collect(args, genitems)
  50.   c:\programdata\anaconda3\lib\site-packages\_pytest\main.py(640)_perform_collect()
  51. -> self.items.extend(self.genitems(node))
  52.   c:\programdata\anaconda3\lib\site-packages\_pytest\main.py(779)genitems()
  53. -> rep = collect_one_node(node)
  54.   c:\programdata\anaconda3\lib\site-packages\_pytest\runner.py(457)collect_one_node()
  55. -> rep = ihook.pytest_make_collect_report(collector=collector)
  56.   c:\programdata\anaconda3\lib\site-packages\_pytest\vendored_packages\pluggy.py(745)__call__()
  57. -> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
  58.   c:\programdata\anaconda3\lib\site-packages\_pytest\vendored_packages\pluggy.py(339)_hookexec()
  59. -> return self._inner_hookexec(hook, methods, kwargs)
  60.   c:\programdata\anaconda3\lib\site-packages\_pytest\vendored_packages\pluggy.py(334)<lambda>()
  61. -> _MultiCall(methods, kwargs, hook.spec_opts).execute()
  62.   c:\programdata\anaconda3\lib\site-packages\_pytest\vendored_packages\pluggy.py(613)execute()
  63. -> return _wrapped_call(hook_impl.function(*args), self.execute)
  64.   c:\programdata\anaconda3\lib\site-packages\_pytest\vendored_packages\pluggy.py(248)_wrapped_call()
  65. -> call_outcome = _CallOutcome(func)
  66.   c:\programdata\anaconda3\lib\site-packages\_pytest\vendored_packages\pluggy.py(265)__init__()
  67. -> self.result = func()
  68.   c:\programdata\anaconda3\lib\site-packages\_pytest\vendored_packages\pluggy.py(614)execute()
  69. -> res = hook_impl.function(*args)
  70.   c:\programdata\anaconda3\lib\site-packages\_pytest\runner.py(329)pytest_make_collect_report()
  71. -> 'collect')
  72.   c:\programdata\anaconda3\lib\site-packages\_pytest\runner.py(157)__init__()
  73. -> self.result = func()
  74.   c:\programdata\anaconda3\lib\site-packages\_pytest\runner.py(328)<lambda>()
  75. -> lambda: list(collector.collect()),
  76.   c:\programdata\anaconda3\lib\site-packages\_pytest\python.py(401)collect()
  77. -> self.session._fixturemanager.parsefactories(self)
  78.   c:\programdata\anaconda3\lib\site-packages\_pytest\fixtures.py(1057)parsefactories()
  79. -> holderobj = node_or_obj.obj
  80.   c:\programdata\anaconda3\lib\site-packages\_pytest\python.py(204)fget()
  81. -> self._obj = obj = self._getobj()
  82.   c:\programdata\anaconda3\lib\site-packages\_pytest\python.py(398)_getobj()
  83. -> return self._importtestmodule()
  84.   c:\programdata\anaconda3\lib\site-packages\_pytest\python.py(408)_importtestmodule()
  85. -> mod = self.fspath.pyimport(ensuresyspath=importmode)
  86.   c:\programdata\anaconda3\lib\site-packages\py\_path\local.py(662)pyimport()
  87. -> __import__(modname)
  88.   <frozen importlib._bootstrap>(961)_find_and_load()
  89.   <frozen importlib._bootstrap>(950)_find_and_load_unlocked()
  90.   <frozen importlib._bootstrap>(646)_load_unlocked()
  91.   <frozen importlib._bootstrap>(616)_load_backward_compatible()
  92.   c:\programdata\anaconda3\lib\site-packages\_pytest\assertion\rewrite.py(211)load_module()
  93. -> py.builtin.exec_(co, mod.__dict__)
  94. > c:(path to qb)\qutebrowser\pjr\test_pjr.py(36)<module>()
  95. -> def test_always_true(qapp, caplog):
  96. collected 1 item
  97. (Pdb) c
  98. pjr\test_pjr.py .
  99.  
  100. ========================== 1 passed in 66.62 seconds ==========================
  101.  
  102. C:(path to qb)\qutebrowser>
  103.