{"action":"created","issue":{"url":"https://api.github.com/repos/pytest-dev/pytest-html/issues/185","repository_url":"https://api.github.com/repos/pytest-dev/pytest-html","labels_url":"https://api.github.com/repos/pytest-dev/pytest-html/issues/185/labels{/name}","comments_url":"https://api.github.com/repos/pytest-dev/pytest-html/issues/185/comments","events_url":"https://api.github.com/repos/pytest-dev/pytest-html/issues/185/events","html_url":"https://github.com/pytest-dev/pytest-html/issues/185","id":383501136,"node_id":"MDU6SXNzdWUzODM1MDExMzY=","number":185,"title":"Multiple testsuite failures with pytest-3.10.1 and python-3.6","user":{"login":"glaubitz","id":1647645,"node_id":"MDQ6VXNlcjE2NDc2NDU=","avatar_url":"https://avatars1.githubusercontent.com/u/1647645?v=4","gravatar_id":"","url":"https://api.github.com/users/glaubitz","html_url":"https://github.com/glaubitz","followers_url":"https://api.github.com/users/glaubitz/followers","following_url":"https://api.github.com/users/glaubitz/following{/other_user}","gists_url":"https://api.github.com/users/glaubitz/gists{/gist_id}","starred_url":"https://api.github.com/users/glaubitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glaubitz/subscriptions","organizations_url":"https://api.github.com/users/glaubitz/orgs","repos_url":"https://api.github.com/users/glaubitz/repos","events_url":"https://api.github.com/users/glaubitz/events{/privacy}","received_events_url":"https://api.github.com/users/glaubitz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-11-22T11:49:21Z","updated_at":"2019-10-27T13:18:09Z","closed_at":"2019-10-27T13:18:09Z","author_association":"NONE","body":"I'm currently packaging ```pytest-html``` for openSUSE and I'm running into multiple testsuite failures:\r\n\r\n<details>\r\n<summary> output </summary>\r\n\r\n```\r\n[    5s] ============================= test session starts ==============================\r\n[    5s] platform linux -- Python 3.6.5, pytest-3.10.1, py-1.7.0, pluggy-0.8.0 -- /usr/bin/python3\r\n[    5s] cachedir: .pytest_cache\r\n[    5s] metadata: {'Python': '3.6.5', 'Platform': 'Linux-4.19.1-1-default-x86_64-with-glibc2.3.4', 'Packages': {'pytest': '3.10.1', 'py': '1.7.0', 'pluggy': '0.8.0'}, 'Plugins': {'html': '1.19.0', 'mock': '1.10.0', 'metadata': '1.7.0'}}\r\n[    5s] rootdir: /home/abuild/rpmbuild/BUILD/pytest-html-1.19.0, inifile:\r\n[    5s] plugins: html-1.19.0, mock-1.10.0, metadata-1.7.0\r\n[    5s] collecting ... collected 59 items\r\n[    5s] \r\n[    6s] testing/test_pytest_html.py::TestHTML::test_durations FAILED             [  1%]\r\n[    6s] testing/test_pytest_html.py::TestHTML::test_pass FAILED                  [  3%]\r\n[    6s] testing/test_pytest_html.py::TestHTML::test_skip FAILED                  [  5%]\r\n[    6s] testing/test_pytest_html.py::TestHTML::test_fail FAILED                  [  6%]\r\n[    6s] testing/test_pytest_html.py::TestHTML::test_rerun FAILED                 [  8%]\r\n[    6s] testing/test_pytest_html.py::TestHTML::test_no_rerun PASSED              [ 10%]\r\n[    7s] testing/test_pytest_html.py::TestHTML::test_conditional_xfails FAILED    [ 11%]\r\n[    7s] testing/test_pytest_html.py::TestHTML::test_setup_error FAILED           [ 13%]\r\n[    7s] testing/test_pytest_html.py::TestHTML::test_xfail FAILED                 [ 15%]\r\n[    7s] testing/test_pytest_html.py::TestHTML::test_xpass FAILED                 [ 16%]\r\n[    7s] testing/test_pytest_html.py::TestHTML::test_create_report_path FAILED    [ 18%]\r\n[    7s] testing/test_pytest_html.py::TestHTML::test_report_title[] PASSED        [ 20%]\r\n[    7s] testing/test_pytest_html.py::TestHTML::test_report_title[directory] PASSED [ 22%]\r\n[    8s] testing/test_pytest_html.py::TestHTML::test_resources_inline_css PASSED  [ 23%]\r\n[    8s] testing/test_pytest_html.py::TestHTML::test_resources PASSED             [ 25%]\r\n[    8s] testing/test_pytest_html.py::TestHTML::test_stdout[pass] PASSED          [ 27%]\r\n[    8s] testing/test_pytest_html.py::TestHTML::test_stdout[fail] PASSED          [ 28%]\r\n[    8s] testing/test_pytest_html.py::TestHTML::test_custom_content_in_summary PASSED [ 30%]\r\n[    8s] testing/test_pytest_html.py::TestHTML::test_extra_html PASSED            [ 32%]\r\n[    8s] testing/test_pytest_html.py::TestHTML::test_extra_text[u'\\x81'-woE=] PASSED [ 33%]\r\n[    8s] testing/test_pytest_html.py::TestHTML::test_extra_text['foo'-Zm9v] PASSED [ 35%]\r\n[    8s] testing/test_pytest_html.py::TestHTML::test_extra_text[b'\\\\xe2\\\\x80\\\\x93'-4oCT] PASSED [ 37%]\r\n[    8s] testing/test_pytest_html.py::TestHTML::test_extra_json PASSED            [ 38%]\r\n[    8s] testing/test_pytest_html.py::TestHTML::test_extra_url PASSED             [ 40%]\r\n[    8s] testing/test_pytest_html.py::TestHTML::test_extra_image[image/png-png] PASSED [ 42%]\r\n[    9s] testing/test_pytest_html.py::TestHTML::test_extra_image[image/png-image] PASSED [ 44%]\r\n[    9s] testing/test_pytest_html.py::TestHTML::test_extra_image[image/jpeg-jpg] PASSED [ 45%]\r\n[    9s] testing/test_pytest_html.py::TestHTML::test_extra_image[image/svg+xml-svg] PASSED [ 47%]\r\n[    9s] testing/test_pytest_html.py::TestHTML::test_extra_image_windows PASSED   [ 49%]\r\n[    9s] testing/test_pytest_html.py::TestHTML::test_extra_text_separated[u'\\x81'] PASSED [ 50%]\r\n[    9s] testing/test_pytest_html.py::TestHTML::test_extra_text_separated['foo'] PASSED [ 52%]\r\n[    9s] testing/test_pytest_html.py::TestHTML::test_extra_text_separated[b'\\\\xe2\\\\x80\\\\x93'] PASSED [ 54%]\r\n[    9s] testing/test_pytest_html.py::TestHTML::test_extra_image_separated[png-image] PASSED [ 55%]\r\n[    9s] testing/test_pytest_html.py::TestHTML::test_extra_image_separated[png-png] PASSED [ 57%]\r\n[    9s] testing/test_pytest_html.py::TestHTML::test_extra_image_separated[svg-svg] PASSED [ 59%]\r\n[   10s] testing/test_pytest_html.py::TestHTML::test_extra_image_separated[jpg-jpg] PASSED [ 61%]\r\n[   10s] testing/test_pytest_html.py::TestHTML::test_extra_image_separated_rerun[png-image] FAILED [ 62%]\r\n[   10s] testing/test_pytest_html.py::TestHTML::test_extra_image_separated_rerun[png-png] FAILED [ 64%]\r\n[   10s] testing/test_pytest_html.py::TestHTML::test_extra_image_separated_rerun[svg-svg] FAILED [ 66%]\r\n[   10s] testing/test_pytest_html.py::TestHTML::test_extra_image_separated_rerun[jpg-jpg] FAILED [ 67%]\r\n[   10s] testing/test_pytest_html.py::TestHTML::test_extra_image_non_b64[https://] PASSED [ 69%]\r\n[   10s] testing/test_pytest_html.py::TestHTML::test_extra_image_non_b64[file://] PASSED [ 71%]\r\n[   10s] testing/test_pytest_html.py::TestHTML::test_extra_image_non_b64[image.png] PASSED [ 72%]\r\n[   10s] testing/test_pytest_html.py::TestHTML::test_no_environment PASSED        [ 74%]\r\n[   11s] testing/test_pytest_html.py::TestHTML::test_environment PASSED           [ 76%]\r\n[   11s] testing/test_pytest_html.py::TestHTML::test_environment_xdist FAILED     [ 77%]\r\n[   11s] testing/test_pytest_html.py::TestHTML::test_environment_xdist_reruns FAILED [ 79%]\r\n[   11s] testing/test_pytest_html.py::TestHTML::test_environment_list_value PASSED [ 81%]\r\n[   11s] testing/test_pytest_html.py::TestHTML::test_environment_ordered PASSED   [ 83%]\r\n[   11s] testing/test_pytest_html.py::TestHTML::test_xdist_crashing_slave FAILED  [ 84%]\r\n[   11s] testing/test_pytest_html.py::TestHTML::test_utf8_surrogate FAILED        [ 86%]\r\n[   11s] testing/test_pytest_html.py::TestHTML::test_ansi_color PASSED            [ 88%]\r\n[   11s] testing/test_pytest_html.py::TestHTML::test_utf8_longrepr['foo'] PASSED  [ 89%]\r\n[   12s] testing/test_pytest_html.py::TestHTML::test_utf8_longrepr[u'\\x81'] FAILED [ 91%]\r\n[   12s] testing/test_pytest_html.py::TestHTML::test_collect_error FAILED         [ 93%]\r\n[   12s] testing/test_pytest_html.py::TestHTML::test_css[colors0] PASSED          [ 94%]\r\n[   12s] testing/test_pytest_html.py::TestHTML::test_css[colors1] PASSED          [ 96%]\r\n[   12s] testing/test_pytest_html.py::TestHTML::test_css_invalid PASSED           [ 98%]\r\n[   12s] testing/test_pytest_html.py::TestHTML::test_css_invalid_no_html PASSED   [100%]\r\n[   12s] \r\n[   12s] =================================== FAILURES ===================================\r\n[   12s] ___________________________ TestHTML.test_durations ____________________________\r\n[   12s] \r\n[   12s] self = <test_pytest_html.TestHTML object at 0x7f4e1a516278>\r\n[   12s] testdir = <Testdir local('/tmp/pytest-of-abuild/pytest-2/test_durations0')>\r\n[   12s] \r\n[   12s]     def test_durations(self, testdir):\r\n[   12s]         sleep = float(0.2)\r\n[   12s]         testdir.makepyfile(\"\"\"\r\n[   12s]             import time\r\n[   12s]             def test_sleep():\r\n[   12s]                 time.sleep({0:f})\r\n[   12s]         \"\"\".format(sleep * 2))\r\n[   12s]         result, html = run(testdir)\r\n[   12s]         assert result.ret == 0\r\n[   12s] >       assert_results(html, duration=sleep)\r\n[   12s] \r\n[   12s] /home/abuild/rpmbuild/BUILD/pytest-html-1.19.0/testing/test_pytest_html.py:78: \r\n[   12s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \r\n[   12s] /home/abuild/rpmbuild/BUILD/pytest-html-1.19.0/testing/test_pytest_html.py:65: in assert_results\r\n[   12s]     assert_results_by_outcome(html, 'rerun', rerun)\r\n[   12s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \r\n[   12s] \r\n[   12s] html = '<!DOCTYPE html>\\n<html>\\n  <head>\\n    <meta charset=\"utf-8\"/>\\n    <title>Test Report</title>\\n    <link href=\"asset...colspan=\"4\">\\n            <div class=\"empty log\">No log output captured.</div></td></tr></tbody></table></body></html>'\r\n[   12s] test_outcome = 'rerun', test_outcome_number = 0, label = None\r\n[   12s] \r\n[   12s]     def assert_results_by_outcome(html, test_outcome, test_outcome_number,\r\n[   12s]                                   label=None):\r\n[   12s]         # Asserts if the test number of this outcome in the summary is correct\r\n[   12s]         regex_summary = '(\\d)+ {0}'.format(label or test_outcome)\r\n[   12s] >       assert int(re.search(regex_summary, html).group(1)) == test_outcome_number\r\n[   12s] E       AttributeError: 'NoneType' object has no attribute 'group'\r\n[   12s] \r\n[   12s] /home/abuild/rpmbuild/BUILD/pytest-html-1.19.0/testing/test_pytest_html.py:33: AttributeError\r\n[   12s] ----------------------------- Captured stdout call -----------------------------\r\n[   12s] ============================= test session starts ==============================\r\n[   12s] platform linux -- Python 3.6.5, pytest-3.10.1, py-1.7.0, pluggy-0.8.0\r\n[   12s] rootdir: /tmp/pytest-of-abuild/pytest-2/test_durations0, inifile:\r\n[   12s] plugins: html-1.19.0, mock-1.10.0, metadata-1.7.0\r\n[   12s] collected 1 item\r\n[   12s] \r\n[   12s] test_durations.py .                                                      [100%]\r\n[   12s] \r\n[   12s]  generated html file: /tmp/pytest-of-abuild/pytest-2/test_durations0/report.html \r\n[   12s] =========================== 1 passed in 0.44 seconds ===========================\r\n[   12s] ______________________________ TestHTML.test_pass ______________________________\r\n[   12s] \r\n[   12s] self = <test_pytest_html.TestHTML object at 0x7f4e1a5fbf98>\r\n[   12s] testdir = <Testdir local('/tmp/pytest-of-abuild/pytest-2/test_pass0')>\r\n[   12s] \r\n[   12s]     def test_pass(self, testdir):\r\n[   12s]         testdir.makepyfile('def test_pass(): pass')\r\n[   12s]         result, html = run(testdir)\r\n[   12s]         assert result.ret == 0\r\n[   12s] >       assert_results(html)\r\n[   12s] \r\n[   12s] /home/abuild/rpmbuild/BUILD/pytest-html-1.19.0/testing/test_pytest_html.py:87: \r\n[   12s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \r\n[   12s] /home/abuild/rpmbuild/BUILD/pytest-html-1.19.0/testing/test_pytest_html.py:65: in assert_results\r\n[   12s]     assert_results_by_outcome(html, 'rerun', rerun)\r\n[   12s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \r\n[   12s] \r\n[   12s] html = '<!DOCTYPE html>\\n<html>\\n  <head>\\n    <meta charset=\"utf-8\"/>\\n    <title>Test Report</title>\\n    <link href=\"asset...colspan=\"4\">\\n            <div class=\"empty log\">No log output captured.</div></td></tr></tbody></table></body></html>'\r\n[   12s] test_outcome = 'rerun', test_outcome_number = 0, label = None\r\n[   12s] \r\n[   12s]     def assert_results_by_outcome(html, test_outcome, test_outcome_number,\r\n[   12s]                                   label=None):\r\n[   12s]         # Asserts if the test number of this outcome in the summary is correct\r\n[   12s]         regex_summary = '(\\d)+ {0}'.format(label or test_outcome)\r\n[   12s] >       assert int(re.search(regex_summary, html).group(1)) == test_outcome_number\r\n[   12s] E       AttributeError: 'NoneType' object has no attribute 'group'\r\n[   12s] \r\n[   12s] /home/abuild/rpmbuild/BUILD/pytest-html-1.19.0/testing/test_pytest_html.py:33: AttributeError\r\n[   12s] ----------------------------- Captured stdout call -----------------------------\r\n[   12s] ============================= test session starts ==============================\r\n[   12s] platform linux -- Python 3.6.5, pytest-3.10.1, py-1.7.0, pluggy-0.8.0\r\n[   12s] rootdir: /tmp/pytest-of-abuild/pytest-2/test_pass0, inifile:\r\n[   12s] plugins: html-1.19.0, mock-1.10.0, metadata-1.7.0\r\n[   12s] collected 1 item\r\n[   12s] \r\n[   12s] test_pass.py .                                                           [100%]\r\n[   12s] \r\n[   12s] -- generated html file: /tmp/pytest-of-abuild/pytest-2/test_pass0/report.html --\r\n[   12s] =========================== 1 passed in 0.02 seconds ===========================\r\n[   12s] ______________________________ TestHTML.test_skip ______________________________\r\n[   12s] \r\n[   12s] self = <test_pytest_html.TestHTML object at 0x7f4e1a6a0c50>\r\n[   12s] testdir = <Testdir local('/tmp/pytest-of-abuild/pytest-2/test_skip0')>\r\n[   12s] \r\n[   12s]     def test_skip(self, testdir):\r\n[   12s]         reason = str(random.random())\r\n[   12s]         testdir.makepyfile(\"\"\"\r\n[   12s]             import pytest\r\n[   12s]             def test_skip():\r\n[   12s]                 pytest.skip('{0}')\r\n[   12s]         \"\"\".format(reason))\r\n[   12s]         result, html = run(testdir)\r\n[   12s]         assert result.ret == 0\r\n[   12s] >       assert_results(html, tests=0, passed=0, skipped=1)\r\n[   12s] \r\n[   12s] /home/abuild/rpmbuild/BUILD/pytest-html-1.19.0/testing/test_pytest_html.py:98: \r\n[   12s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \r\n[   12s] /home/abuild/rpmbuild/BUILD/pytest-html-1.19.0/testing/test_pytest_html.py:65: in assert_results\r\n[   12s]     assert_results_by_outcome(html, 'rerun', rerun)\r\n[   12s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \r\n[   12s] \r\n[   12s] html = '<!DOCTYPE html>\\n<html>\\n  <head>\\n    <meta charset=\"utf-8\"/>\\n    <title>Test Report</title>\\n    <link href=\"asset...ip0/test_skip.py&#x27;, 3, &#x27;Skipped: 0.8108015298760467&#x27;)<br/></div></td></tr></tbody></table></body></html>'\r\n[   12s] test_outcome = 'rerun', test_outcome_number = 0, label = None\r\n[   12s] \r\n[   12s]     def assert_results_by_outcome(html, test_outcome, test_outcome_number,\r\n[   12s]                                   label=None):\r\n[   12s]         # Asserts if the test number of this outcome in the summary is correct\r\n[   12s]         regex_summary = '(\\d)+ {0}'.format(label or test_outcome)\r\n[   12s] >       assert int(re.search(regex_summary, html).group(1)) == test_outcome_number\r\n[   12s] E       AttributeError: 'NoneType' object has no attribute 'group'\r\n[   12s] \r\n[   12s] /home/abuild/rpmbuild/BUILD/pytest-html-1.19.0/testing/test_pytest_html.py:33: AttributeError\r\n[   12s] ----------------------------- Captured stdout call -----------------------------\r\n[   12s] ============================= test session starts ==============================\r\n[   12s] platform linux -- Python 3.6.5, pytest-3.10.1, py-1.7.0, pluggy-0.8.0\r\n[   12s] rootdir: /tmp/pytest-of-abuild/pytest-2/test_skip0, inifile:\r\n[   12s] plugins: html-1.19.0, mock-1.10.0, metadata-1.7.0\r\n[   12s] collected 1 item\r\n[   12s] \r\n[   12s] test_skip.py s                                                           [100%]\r\n[   12s] \r\n[   12s] -- generated html file: /tmp/pytest-of-abuild/pytest-2/test_skip0/report.html --\r\n[   12s] ========================== 1 skipped in 0.03 seconds ===========================\r\n[   12s] ______________________________ TestHTML.test_fail ______________________________\r\n[   12s] \r\n[   12s] self = <test_pytest_html.TestHTML object at 0x7f4e1a7f32e8>\r\n[   12s] testdir = <Testdir local('/tmp/pytest-of-abuild/pytest-2/test_fail0')>\r\n[   12s] \r\n[   12s]     def test_fail(self, testdir):\r\n[   12s]         testdir.makepyfile('def test_fail(): assert False')\r\n[   12s]         result, html = run(testdir)\r\n[   12s]         assert result.ret\r\n[   12s] >       assert_results(html, passed=0, failed=1)\r\n[   12s] \r\n[   12s] /home/abuild/rpmbuild/BUILD/pytest-html-1.19.0/testing/test_pytest_html.py:105: \r\n[   12s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \r\n[   12s] /home/abuild/rpmbuild/BUILD/pytest-html-1.19.0/testing/test_pytest_html.py:65: in assert_results\r\n[   12s]     assert_results_by_outcome(html, 'rerun', rerun)\r\n[   12s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \r\n[   12s] \r\n[   12s] html = '<!DOCTYPE html>\\n<html>\\n  <head>\\n    <meta charset=\"utf-8\"/>\\n    <title>Test Report</title>\\n    <link href=\"asset...or\">E   assert False</span><br/><br/>test_fail.py:1: AssertionError<br/></div></td></tr></tbody></table></body></html>'\r\n[   12s] test_outcome = 'rerun', test_outcome_number = 0, label = None\r\n[   12s] \r\n[   12s]     def assert_results_by_outcome(html, test_outcome, test_outcome_number,\r\n[   12s]                                   label=None):\r\n[   12s]         # Asserts if the test number of this outcome in the summary is correct\r\n[   12s]         regex_summary = '(\\d)+ {0}'.format(label or test_outcome)\r\n[   12s] >       assert int(re.search(regex_summary, html).group(1)) == test_outcome_number\r\n[   12s] E       AttributeError: 'NoneType' object has no attribute 'group'\r\n[   12s] \r\n[   12s] /home/abuild/rpmbuild/BUILD/pytest-html-1.19.0/testing/test_pytest_html.py:33: AttributeError\r\n[   12s] ----------------------------- Captured stdout call -----------------------------\r\n[   12s] ============================= test session starts ==============================\r\n[   12s] platform linux -- Python 3.6.5, pytest-3.10.1, py-1.7.0, pluggy-0.8.0\r\n[   12s] rootdir: /tmp/pytest-of-abuild/pytest-2/test_fail0, inifile:\r\n[   12s] plugins: html-1.19.0, mock-1.10.0, metadata-1.7.0\r\n[   12s] collected 1 item\r\n[   12s] \r\n[   12s] test_fail.py F                                                           [100%]\r\n[   12s] \r\n[   12s] =================================== FAILURES ===================================\r\n[   12s] __________________________________ test_fail ___________________________________\r\n[   12s] \r\n[   12s] >   def test_fail(): assert False\r\n[   12s] E   assert False\r\n[   12s] \r\n[   12s] test_fail.py:1: AssertionError\r\n[   12s] -- generated html file: /tmp/pytest-of-abuild/pytest-2/test_fail0/report.html --\r\n[   12s] =========================== 1 failed in 0.03 seconds ===========================\r\n[   12s] _____________________________ TestHTML.test_rerun ______________________________\r\n[   12s] \r\n[   12s] self = <test_pytest_html.TestHTML object at 0x7f4e1a3ae198>\r\n[   12s] testdir = <Testdir local('/tmp/pytest-of-abuild/pytest-2/test_rerun0')>\r\n[   12s] \r\n[   12s]     def test_rerun(self, testdir):\r\n[   12s]         testdir.makepyfile(\"\"\"\r\n[   12s]             import pytest\r\n[   12s]             @pytest.mark.flaky(reruns=5)\r\n[   12s]             def test_example():\r\n[   12s]                 assert False\r\n[   12s]         \"\"\")\r\n[   12s]         result, html = run(testdir)\r\n[   12s]         assert result.ret\r\n[   12s] >       assert_results(html, passed=0, failed=1, rerun=5)\r\n[   12s] \r\n[   12s] /home/abuild/rpmbuild/BUILD/pytest-html-1.19.0/testing/test_pytest_html.py:117: \r\n[   12s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \r\n[   12s] /home/abuild/rpmbuild/BUILD/pytest-html-1.19.0/testing/test_pytest_html.py:65: in assert_results\r\n[   12s]     assert_results_by_outcome(html, 'rerun', rerun)\r\n[   12s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \r\n[   12s] \r\n[   12s] html = '<!DOCTYPE html>\\n<html>\\n  <head>\\n    <meta charset=\"utf-8\"/>\\n    <title>Test Report</title>\\n    <link href=\"asset...       assert False</span><br/><br/>test_rerun.py:4: AssertionError<br/></div></td></tr></tbody></table></body></html>'\r\n[   12s] test_outcome = 'rerun', test_outcome_number = 5, label = None\r\n[   12s] \r\n[   12s]     def assert_results_by_outcome(html, test_outcome, test_outcome_number,\r\n[   12s]                                   label=None):\r\n[   12s]         # Asserts if the test number of this outcome in the summary is correct\r\n[   12s]         regex_summary = '(\\d)+ {0}'.format(label or test_outcome)\r\n[   12s] >       assert int(re.search(regex_summary, html).group(1)) == test_outcome_number\r\n[   12s] E       AttributeError: 'NoneType' object has no attribute 'group'\r\n[   12s] \r\n[   12s] /home/abuild/rpmbuild/BUILD/pytest-html-1.19.0/testing/test_pytest_html.py:33: AttributeError\r\n[   12s] ----------------------------- Captured stdout call -----------------------------\r\n[   12s] ============================= test session starts ==============================\r\n[   12s] platform linux -- Python 3.6.5, pytest-3.10.1, py-1.7.0, pluggy-0.8.0\r\n[   12s] rootdir: /tmp/pytest-of-abuild/pytest-2/test_rerun0, inifile:\r\n[   12s] plugins: html-1.19.0, mock-1.10.0, metadata-1.7.0\r\n[   12s] collected 1 item\r\n[   12s] \r\n[   12s] test_rerun.py F                                                          [100%]\r\n[   12s] \r\n[   12s] =================================== FAILURES ===================================\r\n[   12s] _________________________________ test_example _________________________________\r\n[   12s] \r\n[   12s]     @pytest.mark.flaky(reruns=5)\r\n[   12s]     def test_example():\r\n[   12s] >       assert False\r\n[   12s] E       assert False\r\n[   12s] \r\n[   12s] test_rerun.py:4: AssertionError\r\n[   12s] - generated html file: /tmp/pytest-of-abuild/pytest-2/test_rerun0/report.html --\r\n[   12s] =========================== 1 failed in 0.03 seconds ===========================\r\n[   12s] _______________________ TestHTML.test_conditional_xfails _______________________\r\n[   12s] \r\n[   12s] self = <test_pytest_html.TestHTML object at 0x7f4e1a383668>\r\n[   12s] testdir = <Testdir local('/tmp/pytest-of-abuild/pytest-2/test_conditional_xfails0')>\r\n[   12s] \r\n[   12s]     def test_conditional_xfails(self, testdir):\r\n[   12s]         testdir.makepyfile(\"\"\"\r\n[   12s]             import pytest\r\n[   12s]             @pytest.mark.xfail(False, reason='reason')\r\n[   12s]             def test_fail(): assert False\r\n[   12s]             @pytest.mark.xfail(False, reason='reason')\r\n[   12s]             def test_pass(): pass\r\n[   12s]             @pytest.mark.xfail(True, reason='reason')\r\n[   12s]             def test_xfail(): assert False\r\n[   12s]             @pytest.mark.xfail(True, reason='reason')\r\n[   12s]             def test_xpass(): pass\r\n[   12s]         \"\"\")\r\n[   12s]         result, html = run(testdir)\r\n[   12s]         assert result.ret\r\n[   12s] >       assert_results(html, tests=4, passed=1, failed=1, xfailed=1, xpassed=1)\r\n[   12s] \r\n[   12s] /home/abuild/rpmbuild/BUILD/pytest-html-1.19.0/testing/test_pytest_html.py:139: \r\n[   12s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \r\n[   12s] /home/abuild/rpmbuild/BUILD/pytest-html-1.19.0/testing/test_pytest_html.py:65: in assert_results\r\n[   12s]     assert_results_by_outcome(html, 'rerun', rerun)\r\n[   12s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \r\n[   12s] \r\n[   12s] html = '<!DOCTYPE html>\\n<html>\\n  <head>\\n    <meta charset=\"utf-8\"/>\\n    <title>Test Report</title>\\n    <link href=\"asset...colspan=\"4\">\\n            <div class=\"empty log\">No log output captured.</div></td></tr></tbody></table></body></html>'\r\n[   12s] test_outcome = 'rerun', test_outcome_number = 0, label = None\r\n[   12s] \r\n[   12s]     def assert_results_by_outcome(html, test_outcome, test_outcome_number,\r\n[   12s]                                   label=None):\r\n[   12s]         # Asserts if the test number of this outcome in the summary is correct\r\n[   12s]         regex_summary = '(\\d)+ {0}'.format(label or test_outcome)\r\n[   12s] >       assert int(re.search(regex_summary, html).group(1)) == test_outcome_number\r\n[   12s] E       AttributeError: 'NoneType' object has no attribute 'group'\r\n[   12s] \r\n[   12s] /home/abuild/rpmbuild/BUILD/pytest-html-1.19.0/testing/test_pytest_html.py:33: AttributeError\r\n[   12s] ----------------------------- Captured stdout call -----------------------------\r\n[   12s] ============================= test session starts ==============================\r\n[   12s] platform linux -- Python 3.6.5, pytest-3.10.1, py-1.7.0, pluggy-0.8.0\r\n[   12s] rootdir: /tmp/pytest-of-abuild/pytest-2/test_conditional_xfails0, inifile:\r\n[   12s] plugins: html-1.19.0, mock-1.10.0, metadata-1.7.0\r\n[   12s] collected 4 items\r\n[   12s] \r\n[   12s] test_conditional_xfails.py F.xX                                          [100%]\r\n[   12s] \r\n[   12s] =================================== FAILURES ===================================\r\n[   12s] __________________________________ test_fail ___________________________________\r\n[   12s] \r\n[   12s]     @pytest.mark.xfail(False, reason='reason')\r\n[   12s] >   def test_fail(): assert False\r\n[   12s] E   assert False\r\n[   12s] \r\n[   12s] test_conditional_xfails.py:3: AssertionError\r\n[   12s]  generated html file: /tmp/pytest-of-abuild/pytest-2/test_conditional_xfails0/report.html \r\n[   12s] =========== 1 failed, 1 passed, 1 xfailed, 1 xpassed in 0.05 seconds ===========\r\n[   12s] __________________________ TestHTML.test_setup_error ___________________________\r\n[   12s] \r\n[   12s] self = <test_pytest_html.TestHTML object at 0x7f4e1a335d30>\r\n[   12s] testdir = <Testdir local('/tmp/pytest-of-abuild/pytest-2/test_setup_error0')>\r\n[   12s] \r\n[   12s]     def test_setup_error(self, testdir):\r\n[   12s]         testdir.makepyfile(\"\"\"\r\n[   12s]             def pytest_funcarg__arg(request):\r\n[   12s]                 raise ValueError()\r\n[   12s]             def test_function(arg):\r\n[   12s]                 pass\r\n[   12s]         \"\"\")\r\n[   12s]         result, html = run(testdir)\r\n[   12s]         assert result.ret\r\n[   12s] >       assert_results(html, tests=0, passed=0, errors=1)\r\n[   12s] \r\n[   12s] /home/abuild/rpmbuild/BUILD/pytest-html-1.19.0/testing/test_pytest_html.py:150: \r\n[   12s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \r\n[   12s] /home/abuild/rpmbuild/BUILD/pytest-html-1.19.0/testing/test_pytest_html.py:65: in assert_results\r\n[   12s]     assert_results_by_outcome(html, 'rerun', rerun)\r\n[   12s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \r\n[   12s] \r\n[   12s] html = '<!DOCTYPE html>\\n<html>\\n  <head>\\n    <meta charset=\"utf-8\"/>\\n    <title>Test Report</title>\\n    <link href=\"asset...       ValueError</span><br/><br/>test_setup_error.py:2: ValueError<br/></div></td></tr></tbody></table></body></html>'\r\n[   12s] test_outcome = 'rerun', test_outcome_number = 0, label = None\r\n[   12s] \r\n[   12s]     def assert_results_by_outcome(html, test_outcome, test_outcome_number,\r\n[   12s]                                   label=None):\r\n[   12s]         # Asserts if the test number of this outcome in the summary is correct\r\n[   12s]         regex_summary = '(\\d)+ {0}'.format(label or test_outcome)\r\n[   12s] >       assert int(re.search(regex_summary, html).group(1)) == test_outcome_number\r\n[   12s] E       AttributeError: 'NoneType' object has no attribute 'group'\r\n[   12s] \r\n[   12s] /home/abuild/rpmbuild/BUILD/pytest-html-1.19.0/testing/test_pytest_html.py:33: AttributeError\r\n[   12s] ----------------------------- Captured stdout call -----------------------------\r\n[   12s] ============================= test session starts ==============================\r\n[   12s] platform linux -- Python 3.6.5, pytest-3.10.1, py-1.7.0, pluggy-0.8.0\r\n[   12s] rootdir: /tmp/pytest-of-abuild/pytest-2/test_setup_error0, inifile:\r\n[   12s] plugins: html-1.19.0, mock-1.10.0, metadata-1.7.0\r\n[   12s] collected 1 item\r\n[   12s] \r\n[   12s] test_setup_error.py E                                                    [100%]\r\n[   12s] \r\n[   12s] ==================================== ERRORS ====================================\r\n[   12s] _______________________ ERROR at setup of test_function ________________________\r\n[   12s] \r\n[   12s] request = <SubRequest 'arg' for <Function 'test_function'>>\r\n[   12s] \r\n[   12s]     def pytest_funcarg__arg(request):\r\n[   12s] >       raise ValueError()\r\n[   12s] E       ValueError\r\n[   12s] \r\n[   12s] test_setup_error.py:2: ValueError\r\n[   12s]  generated html file: /tmp/pytest-of-abuild/pytest-2/test_setup_error0/report.html \r\n[   12s] =============================== warnings summary ===============================\r\n[   12s] test_setup_error.py:1\r\n[   12s]   /tmp/pytest-of-abuild/pytest-2/test_setup_error0/test_setup_error.py:1: RemovedInPytest4Warning: pytest_funcarg__arg: declaring fixtures using \"pytest_funcarg__\" prefix is deprecated and scheduled to be removed in pytest 4.0.  Please remove the prefix and use the @pytest.fixture decorator instead.\r\n[   12s]     def pytest_funcarg__arg(request):\r\n[   12s] \r\n[   12s] -- Docs: https://docs.pytest.org/en/latest/warnings.html\r\n[   12s] ===================== 1 warnings, 1 error in 0.05 seconds ======================\r\n[   12s] _____________________________ TestHTML.test_xfail ______________________________\r\n[   12s] \r\n[   12s] self = <test_pytest_html.TestHTML object at 0x7f4e1a6000b8>\r\n[   12s] testdir = <Testdir local('/tmp/pytest-of-abuild/pytest-2/test_xfail0')>\r\n[   12s] \r\n[   12s]     def test_xfail(self, testdir):\r\n[   12s]         reason = str(random.random())\r\n[   12s]         testdir.makepyfile(\"\"\"\r\n[   12s]             import pytest\r\n[   12s]             def test_xfail():\r\n[   12s]                 pytest.xfail('{0}')\r\n[   12s]         \"\"\".format(reason))\r\n[   12s]         result, html = run(testdir)\r\n[   12s]         assert result.ret == 0\r\n[   12s] >       assert_results(html, passed=0, xfailed=1)\r\n[   12s] \r\n[   12s] /home/abuild/rpmbuild/BUILD/pytest-html-1.19.0/testing/test_pytest_html.py:163: \r\n[   12s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \r\n[   12s] /home/abuild/rpmbuild/BUILD/pytest-html-1.19.0/testing/test_pytest_html.py:65: in assert_results\r\n[   12s]     assert_results_by_outcome(html, 'rerun', rerun)\r\n[   12s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \r\n[   12s] \r\n[   12s] html = '<!DOCTYPE html>\\n<html>\\n  <head>\\n    <meta charset=\"utf-8\"/>\\n    <title>Test Report</title>\\n    <link href=\"asset...ailed: 0.42152191751157275</span><br/><br/>test_xfail.py:3: XFailed<br/></div></td></tr></tbody></table></body></html>'\r\n[   12s] test_outcome = 'rerun', test_outcome_number = 0, label = None\r\n[   12s] \r\n[   12s]     def assert_results_by_outcome(html, test_outcome, test_outcome_number,\r\n[   12s]                                   label=None):\r\n[   12s]         # Asserts if the test number of this outcome in the summary is correct\r\n[   12s]         regex_summary = '(\\d)+ {0}'.format(label or test_outcome)\r\n[   12s] >       assert int(re.search(regex_summary, html).group(1)) == test_outcome_number\r\n[   12s] E       AttributeError: 'NoneType' object has no attribute 'group'\r\n[   12s] \r\n[   12s] /home/abuild/rpmbuild/BUILD/pytest-html-1.19.0/testing/test_pytest_html.py:33: AttributeError\r\n[   12s] ----------------------------- Captured stdout call -----------------------------\r\n[   12s] ============================= test session starts ==============================\r\n[   12s] platform linux -- Python 3.6.5, pytest-3.10.1, py-1.7.0, pluggy-0.8.0\r\n[   12s] rootdir: /tmp/pytest-of-abuild/pytest-2/test_xfail0, inifile:\r\n[   12s] plugins: html-1.19.0, mock-1.10.0, metadata-1.7.0\r\n[   12s] collected 1 item\r\n[   12s] \r\n[   12s] test_xfail.py x                                                          [100%]\r\n[   12s] \r\n[   12s] - generated html file: /tmp/pytest-of-abuild/pytest-2/test_xfail0/report.html --\r\n[   12s] ========================== 1 xfailed in 0.03 seconds ===========================\r\n[   12s] _____________________________ TestHTML.test_xpass ______________________________\r\n[   12s] \r\n[   12s] self = <test_pytest_html.TestHTML object at 0x7f4e1a2174a8>\r\n[   12s] testdir = <Testdir local('/tmp/pytest-of-abuild/pytest-2/test_xpass0')>\r\n[   12s] \r\n[   12s]     def test_xpass(self, testdir):\r\n[   12s]         testdir.makepyfile(\"\"\"\r\n[   12s]             import pytest\r\n[   12s]             @pytest.mark.xfail()\r\n[   12s]             def test_xpass():\r\n[   12s]                 pass\r\n[   12s]         \"\"\")\r\n[   12s]         result, html = run(testdir)\r\n[   12s]         assert result.ret == 0\r\n[   12s] >       assert_results(html, passed=0, xpassed=1)\r\n[   12s] \r\n[   12s] /home/abuild/rpmbuild/BUILD/pytest-html-1.19.0/testing/test_pytest_html.py:175: \r\n[   12s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \r\n[   12s] /home/abuild/rpmbuild/BUILD/pytest-html-1.19.0/testing/test_pytest_html.py:65: in assert_results\r\n[   12s]     assert_results_by_outcome(html, 'rerun', rerun)\r\n[   12s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \r\n[   12s] \r\n[   12s] html = '<!DOCTYPE html>\\n<html>\\n  <head>\\n    <meta charset=\"utf-8\"/>\\n    <title>Test Report</title>\\n    <link href=\"asset...colspan=\"4\">\\n            <div class=\"empty log\">No log output captured.</div></td></tr></tbody></table></body></html>'\r\n[   12s] test_outcome = 'rerun', test_outcome_number = 0, label = None\r\n[   12s] \r\n[   12s]     def assert_results_by_outcome(html, test_outcome, test_outcome_number,\r\n[   12s]                                   label=None):\r\n[   12s]         # Asserts if the test number of this outcome in the summary is correct\r\n[   12s]         regex_summary = '(\\d)+ {0}'.format(label or test_outcome)\r\n[   12s] >       assert int(re.search(regex_summary, html).group(1)) == test_outcome_number\r\n[   12s] E       AttributeError: 'NoneType' object has no attribute 'group'\r\n[   12s] \r\n[   12s] /home/abuild/rpmbuild/BUILD/pytest-html-1.19.0/testing/test_pytest_html.py:33: AttributeError\r\n[   12s] ----------------------------- Captured stdout call -----------------------------\r\n[   12s] ============================= test session starts ==============================\r\n[   12s] platform linux -- Python 3.6.5, pytest-3.10.1, py-1.7.0, pluggy-0.8.0\r\n[   12s] rootdir: /tmp/pytest-of-abuild/pytest-2/test_xpass0, inifile:\r\n[   12s] plugins: html-1.19.0, mock-1.10.0, metadata-1.7.0\r\n[   12s] collected 1 item\r\n[   12s] \r\n[   12s] test_xpass.py X                                                          [100%]\r\n[   12s] \r\n[   12s] - generated html file: /tmp/pytest-of-abuild/pytest-2/test_xpass0/report.html --\r\n[   12s] ========================== 1 xpassed in 0.02 seconds ===========================\r\n[   12s] _______________________ TestHTML.test_create_report_path _______________________\r\n[   12s] \r\n[   12s] self = <test_pytest_html.TestHTML object at 0x7f4e1a199550>\r\n[   12s] testdir = <Testdir local('/tmp/pytest-of-abuild/pytest-2/test_create_report_path0')>\r\n[   12s] \r\n[   12s]     def test_create_report_path(self, testdir):\r\n[   12s]         testdir.makepyfile('def test_pass(): pass')\r\n[   12s]         path = os.path.join('directory', 'report.html')\r\n[   12s]         result, html = run(testdir, path)\r\n[   12s]         assert result.ret == 0\r\n[   12s] >       assert_results(html)\r\n[   12s] \r\n[   12s] /home/abuild/rpmbuild/BUILD/pytest-html-1.19.0/testing/test_pytest_html.py:182: \r\n[   12s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \r\n[   12s] /home/abuild/rpmbuild/BUILD/pytest-html-1.19.0/testing/test_pytest_html.py:65: in assert_results\r\n[   12s]     assert_results_by_outcome(html, 'rerun', rerun)\r\n[   12s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \r\n[   12s] \r\n[   12s] html = '<!DOCTYPE html>\\n<html>\\n  <head>\\n    <meta charset=\"utf-8\"/>\\n    <title>Test Report</title>\\n    <link href=\"asset...colspan=\"4\">\\n            <div class=\"empty log\">No log output captured.</div></td></tr></tbody></table></body></html>'\r\n[   12s] test_outcome = 'rerun', test_outcome_number = 0, label = None\r\n[   12s] \r\n[   12s]     def assert_results_by_outcome(html, test_outcome, test_outcome_number,\r\n[   12s]                                   label=None):\r\n[   12s]         # Asserts if the test number of this outcome in the summary is correct\r\n[   12s]         regex_summary = '(\\d)+ {0}'.format(label or test_outcome)\r\n[   12s] >       assert int(re.search(regex_summary, html).group(1)) == test_outcome_number\r\n[   12s] E       AttributeError: 'NoneType' object has no attribute 'group'\r\n[   12s] \r\n[   12s] /home/abuild/rpmbuild/BUILD/pytest-html-1.19.0/testing/test_pytest_html.py:33: AttributeError\r\n[   12s] ----------------------------- Captured stdout call -----------------------------\r\n[   12s] ============================= test session starts ==============================\r\n[   12s] platform linux -- Python 3.6.5, pytest-3.10.1, py-1.7.0, pluggy-0.8.0\r\n[   12s] rootdir: /tmp/pytest-of-abuild/pytest-2/test_create_report_path0, inifile:\r\n[   12s] plugins: html-1.19.0, mock-1.10.0, metadata-1.7.0\r\n[   12s] collected 1 item\r\n[   12s] \r\n[   12s] test_create_report_path.py .                                             [100%]\r\n[   12s] \r\n[   12s]  generated html file: /tmp/pytest-of-abuild/pytest-2/test_create_report_path0/directory/report.html \r\n[   12s] =========================== 1 passed in 0.03 seconds ===========================\r\n[   12s] _____________ TestHTML.test_extra_image_separated_rerun[png-image] _____________\r\n[   12s] \r\n[   12s] self = <test_pytest_html.TestHTML object at 0x7f4e19952a20>\r\n[   12s] testdir = <Testdir local('/tmp/pytest-of-abuild/pytest-2/test_extra_image_separated_rerun0')>\r\n[   12s] file_extension = 'png', extra_type = 'image'\r\n[   12s] \r\n[   12s]     @pytest.mark.parametrize('file_extension, extra_type', [\r\n[   12s]         ('png', 'image'),\r\n[   12s]         ('png', 'png'),\r\n[   12s]         ('svg', 'svg'),\r\n[   12s]         ('jpg', 'jpg')])\r\n[   12s]     def test_extra_image_separated_rerun(self, testdir, file_extension,\r\n[   12s]                                          extra_type):\r\n[   12s]         content = b64encode('foo'.encode('utf-8')).decode('ascii')\r\n[   12s]         testdir.makeconftest(\"\"\"\r\n[   12s]             import pytest\r\n[   12s]             @pytest.mark.hookwrapper\r\n[   12s]             def pytest_runtest_makereport(item, call):\r\n[   12s]                 outcome = yield\r\n[   12s]                 report = outcome.get_result()\r\n[   12s]                 if report.when == 'call':\r\n[   12s]                     from pytest_html import extras\r\n[   12s]                     report.extra = [extras.{0}('{1}')]\r\n[   12s]         \"\"\".format(extra_type, content))\r\n[   12s]         testdir.makepyfile(\"\"\"\r\n[   12s]             import pytest\r\n[   12s]             @pytest.mark.flaky(reruns=2)\r\n[   12s]             def test_fail():\r\n[   12s]                 assert False\"\"\")\r\n[   12s]         result, html = run(testdir)\r\n[   12s]     \r\n[   12s]         for i in range(1, 4):\r\n[   12s]             hash_key = ('test_extra_image_separated_rerun.py::'\r\n[   12s]                         'test_fail0{0}'.format(i)).encode('utf-8')\r\n[   12s]             hash_generator = hashlib.md5()\r\n[   12s]             hash_generator.update(hash_key)\r\n[   12s]             src = 'assets/{0}.{1}'.format(hash_generator.hexdigest(),\r\n[   12s]                                           file_extension)\r\n[   12s]             link = ('<a class=\"image\" href=\"{0}\" target=\"_blank\">'.format(src))\r\n[   12s]             assert result.ret\r\n[   12s] >           assert link in html\r\n[   12s] E           assert '<a class=\"image\" href=\"assets/c1567128dcf1aed80c2c065122693477.png\" target=\"_blank\">' in '<!DOCTYPE html>\\n<html>\\n  <head>\\n    <meta charset=\"utf-8\"/>\\n    <title>Test Report</title>\\n    <link href=\"asset...pan><br/><br/>test_extra_image_separated_rerun.py:4: AssertionError<br/></div></td></tr></tbody></table></body></html>'\r\n[   12s] \r\n[   12s] /home/abuild/rpmbuild/BUILD/pytest-html-1.19.0/testing/test_pytest_html.py:459: AssertionError\r\n[   12s] ----------------------------- Captured stdout call -----------------------------\r\n[   12s] ============================= test session starts ==============================\r\n[   12s] platform linux -- Python 3.6.5, pytest-3.10.1, py-1.7.0, pluggy-0.8.0\r\n[   12s] rootdir: /tmp/pytest-of-abuild/pytest-2/test_extra_image_separated_rerun0, inifile:\r\n[   12s] plugins: html-1.19.0, mock-1.10.0, metadata-1.7.0\r\n[   12s] collected 1 item\r\n[   12s] \r\n[   12s] test_extra_image_separated_rerun.py F                                    [100%]\r\n[   12s] \r\n[   12s] =================================== FAILURES ===================================\r\n[   12s] __________________________________ test_fail ___________________________________\r\n[   12s] \r\n[   12s]     @pytest.mark.flaky(reruns=2)\r\n[   12s]     def test_fail():\r\n[   12s] >       assert False\r\n[   12s] E       assert False\r\n[   12s] \r\n[   12s] test_extra_image_separated_rerun.py:4: AssertionError\r\n[   12s]  generated html file: /tmp/pytest-of-abuild/pytest-2/test_extra_image_separated_rerun0/report.html \r\n[   12s] =========================== 1 failed in 0.03 seconds ===========================\r\n[   12s] ______________ TestHTML.test_extra_image_separated_rerun[png-png] ______________\r\n[   12s] \r\n[   12s] self = <test_pytest_html.TestHTML object at 0x7f4e1984fc18>\r\n[   12s] testdir = <Testdir local('/tmp/pytest-of-abuild/pytest-2/test_extra_image_separated_rerun1')>\r\n[   12s] file_extension = 'png', extra_type = 'png'\r\n[   12s] \r\n[   12s]     @pytest.mark.parametrize('file_extension, extra_type', [\r\n[   12s]         ('png', 'image'),\r\n[   12s]         ('png', 'png'),\r\n[   12s]         ('svg', 'svg'),\r\n[   12s]         ('jpg', 'jpg')])\r\n[   12s]     def test_extra_image_separated_rerun(self, testdir, file_extension,\r\n[   12s]                                          extra_type):\r\n[   12s]         content = b64encode('foo'.encode('utf-8')).decode('ascii')\r\n[   12s]         testdir.makeconftest(\"\"\"\r\n[   12s]             import pytest\r\n[   12s]             @pytest.mark.hookwrapper\r\n[   12s]             def pytest_runtest_makereport(item, call):\r\n[   12s]                 outcome = yield\r\n[   12s]                 report = outcome.get_result()\r\n[   12s]                 if report.when == 'call':\r\n[   12s]                     from pytest_html import extras\r\n[   12s]                     report.extra = [extras.{0}('{1}')]\r\n[   12s]         \"\"\".format(extra_type, content))\r\n[   12s]         testdir.makepyfile(\"\"\"\r\n[   12s]             import pytest\r\n[   12s]             @pytest.mark.flaky(reruns=2)\r\n[   12s]             def test_fail():\r\n[   12s]                 assert False\"\"\")\r\n[   12s]         result, html = run(testdir)\r\n[   12s]     \r\n[   12s]         for i in range(1, 4):\r\n[   12s]             hash_key = ('test_extra_image_separated_rerun.py::'\r\n[   12s]                         'test_fail0{0}'.format(i)).encode('utf-8')\r\n[   12s]             hash_generator = hashlib.md5()\r\n[   12s]             hash_generator.update(hash_key)\r\n[   12s]             src = 'assets/{0}.{1}'.format(hash_generator.hexdigest(),\r\n[   12s]                                           file_extension)\r\n[   12s]             link = ('<a class=\"image\" href=\"{0}\" target=\"_blank\">'.format(src))\r\n[   12s]             assert result.ret\r\n[   12s] >           assert link in html\r\n[   12s] E           assert '<a class=\"image\" href=\"assets/c1567128dcf1aed80c2c065122693477.png\" target=\"_blank\">' in '<!DOCTYPE html>\\n<html>\\n  <head>\\n    <meta charset=\"utf-8\"/>\\n    <title>Test Report</title>\\n    <link href=\"asset...pan><br/><br/>test_extra_image_separated_rerun.py:4: AssertionError<br/></div></td></tr></tbody></table></body></html>'\r\n[   12s] \r\n[   12s] /home/abuild/rpmbuild/BUILD/pytest-html-1.19.0/testing/test_pytest_html.py:459: AssertionError\r\n[   12s] ----------------------------- Captured stdout call -----------------------------\r\n[   12s] ============================= test session starts ==============================\r\n[   12s] platform linux -- Python 3.6.5, pytest-3.10.1, py-1.7.0, pluggy-0.8.0\r\n[   12s] rootdir: /tmp/pytest-of-abuild/pytest-2/test_extra_image_separated_rerun1, inifile:\r\n[   12s] plugins: html-1.19.0, mock-1.10.0, metadata-1.7.0\r\n[   12s] collected 1 item\r\n[   12s] \r\n[   12s] test_extra_image_separated_rerun.py F                                    [100%]\r\n[   12s] \r\n[   12s] =================================== FAILURES ===================================\r\n[   12s] __________________________________ test_fail ___________________________________\r\n[   12s] \r\n[   12s]     @pytest.mark.flaky(reruns=2)\r\n[   12s]     def test_fail():\r\n[   12s] >       assert False\r\n[   12s] E       assert False\r\n[   12s] \r\n[   12s] test_extra_image_separated_rerun.py:4: AssertionError\r\n[   12s]  generated html file: /tmp/pytest-of-abuild/pytest-2/test_extra_image_separated_rerun1/report.html \r\n[   12s] =========================== 1 failed in 0.03 seconds ===========================\r\n[   12s] ______________ TestHTML.test_extra_image_separated_rerun[svg-svg] ______________\r\n[   12s] \r\n[   12s] self = <test_pytest_html.TestHTML object at 0x7f4e1984ff98>\r\n[   12s] testdir = <Testdir local('/tmp/pytest-of-abuild/pytest-2/test_extra_image_separated_rerun2')>\r\n[   12s] file_extension = 'svg', extra_type = 'svg'\r\n[   12s] \r\n[   12s]     @pytest.mark.parametrize('file_extension, extra_type', [\r\n[   12s]         ('png', 'image'),\r\n[   12s]         ('png', 'png'),\r\n[   12s]         ('svg', 'svg'),\r\n[   12s]         ('jpg', 'jpg')])\r\n[   12s]     def test_extra_image_separated_rerun(self, testdir, file_extension,\r\n[   12s]                                          extra_type):\r\n[   12s]         content = b64encode('foo'.encode('utf-8')).decode('ascii')\r\n[   12s]         testdir.makeconftest(\"\"\"\r\n[   12s]             import pytest\r\n[   12s]             @pytest.mark.hookwrapper\r\n[   12s]             def pytest_runtest_makereport(item, call):\r\n[   12s]                 outcome = yield\r\n[   12s]                 report = outcome.get_result()\r\n[   12s]                 if report.when == 'call':\r\n[   12s]                     from pytest_html import extras\r\n[   12s]                     report.extra = [extras.{0}('{1}')]\r\n[   12s]         \"\"\".format(extra_type, content))\r\n[   12s]         testdir.makepyfile(\"\"\"\r\n[   12s]             import pytest\r\n[   12s]             @pytest.mark.flaky(reruns=2)\r\n[   12s]             def test_fail():\r\n[   12s]                 assert False\"\"\")\r\n[   12s]         result, html = run(testdir)\r\n[   12s]     \r\n[   12s]         for i in range(1, 4):\r\n[   12s]             hash_key = ('test_extra_image_separated_rerun.py::'\r\n[   12s]                         'test_fail0{0}'.format(i)).encode('utf-8')\r\n[   12s]             hash_generator = hashlib.md5()\r\n[   12s]             hash_generator.update(hash_key)\r\n[   12s]             src = 'assets/{0}.{1}'.format(hash_generator.hexdigest(),\r\n[   12s]                                           file_extension)\r\n[   12s]             link = ('<a class=\"image\" href=\"{0}\" target=\"_blank\">'.format(src))\r\n[   12s]             assert result.ret\r\n[   12s] >           assert link in html\r\n[   12s] E           assert '<a class=\"image\" href=\"assets/c1567128dcf1aed80c2c065122693477.svg\" target=\"_blank\">' in '<!DOCTYPE html>\\n<html>\\n  <head>\\n    <meta charset=\"utf-8\"/>\\n    <title>Test Report</title>\\n    <link href=\"asset...pan><br/><br/>test_extra_image_separated_rerun.py:4: AssertionError<br/></div></td></tr></tbody></table></body></html>'\r\n[   12s] \r\n[   12s] /home/abuild/rpmbuild/BUILD/pytest-html-1.19.0/testing/test_pytest_html.py:459: AssertionError\r\n[   12s] ----------------------------- Captured stdout call -----------------------------\r\n[   12s] ============================= test session starts ==============================\r\n[   12s] platform linux -- Python 3.6.5, pytest-3.10.1, py-1.7.0, pluggy-0.8.0\r\n[   12s] rootdir: /tmp/pytest-of-abuild/pytest-2/test_extra_image_separated_rerun2, inifile:\r\n[   12s] plugins: html-1.19.0, mock-1.10.0, metadata-1.7.0\r\n[   12s] collected 1 item\r\n[   12s] \r\n[   12s] test_extra_image_separated_rerun.py F                                    [100%]\r\n[   12s] \r\n[   12s] =================================== FAILURES ===================================\r\n[   12s] __________________________________ test_fail ___________________________________\r\n[   12s] \r\n[   12s]     @pytest.mark.flaky(reruns=2)\r\n[   12s]     def test_fail():\r\n[   12s] >       assert False\r\n[   12s] E       assert False\r\n[   12s] \r\n[   12s] test_extra_image_separated_rerun.py:4: AssertionError\r\n[   12s]  generated html file: /tmp/pytest-of-abuild/pytest-2/test_extra_image_separated_rerun2/report.html \r\n[   12s] =========================== 1 failed in 0.03 seconds ===========================\r\n[   12s] ______________ TestHTML.test_extra_image_separated_rerun[jpg-jpg] ______________\r\n[   12s] \r\n[   12s] self = <test_pytest_html.TestHTML object at 0x7f4e197cc748>\r\n[   12s] testdir = <Testdir local('/tmp/pytest-of-abuild/pytest-2/test_extra_image_separated_rerun3')>\r\n[   12s] file_extension = 'jpg', extra_type = 'jpg'\r\n[   12s] \r\n[   12s]     @pytest.mark.parametrize('file_extension, extra_type', [\r\n[   12s]         ('png', 'image'),\r\n[   12s]         ('png', 'png'),\r\n[   12s]         ('svg', 'svg'),\r\n[   12s]         ('jpg', 'jpg')])\r\n[   12s]     def test_extra_image_separated_rerun(self, testdir, file_extension,\r\n[   12s]                                          extra_type):\r\n[   12s]         content = b64encode('foo'.encode('utf-8')).decode('ascii')\r\n[   12s]         testdir.makeconftest(\"\"\"\r\n[   12s]             import pytest\r\n[   12s]             @pytest.mark.hookwrapper\r\n[   12s]             def pytest_runtest_makereport(item, call):\r\n[   12s]                 outcome = yield\r\n[   12s]                 report = outcome.get_result()\r\n[   12s]                 if report.when == 'call':\r\n[   12s]                     from pytest_html import extras\r\n[   12s]                     report.extra = [extras.{0}('{1}')]\r\n[   12s]         \"\"\".format(extra_type, content))\r\n[   12s]         testdir.makepyfile(\"\"\"\r\n[   12s]             import pytest\r\n[   12s]             @pytest.mark.flaky(reruns=2)\r\n[   12s]             def test_fail():\r\n[   12s]                 assert False\"\"\")\r\n[   12s]         result, html = run(testdir)\r\n[   12s]     \r\n[   12s]         for i in range(1, 4):\r\n[   12s]             hash_key = ('test_extra_image_separated_rerun.py::'\r\n[   12s]                         'test_fail0{0}'.format(i)).encode('utf-8')\r\n[   12s]             hash_generator = hashlib.md5()\r\n[   12s]             hash_generator.update(hash_key)\r\n[   12s]             src = 'assets/{0}.{1}'.format(hash_generator.hexdigest(),\r\n[   12s]                                           file_extension)\r\n[   12s]             link = ('<a class=\"image\" href=\"{0}\" target=\"_blank\">'.format(src))\r\n[   12s]             assert result.ret\r\n[   12s] >           assert link in html\r\n[   12s] E           assert '<a class=\"image\" href=\"assets/c1567128dcf1aed80c2c065122693477.jpg\" target=\"_blank\">' in '<!DOCTYPE html>\\n<html>\\n  <head>\\n    <meta charset=\"utf-8\"/>\\n    <title>Test Report</title>\\n    <link href=\"asset...pan><br/><br/>test_extra_image_separated_rerun.py:4: AssertionError<br/></div></td></tr></tbody></table></body></html>'\r\n[   12s] \r\n[   12s] /home/abuild/rpmbuild/BUILD/pytest-html-1.19.0/testing/test_pytest_html.py:459: AssertionError\r\n[   12s] ----------------------------- Captured stdout call -----------------------------\r\n[   12s] ============================= test session starts ==============================\r\n[   12s] platform linux -- Python 3.6.5, pytest-3.10.1, py-1.7.0, pluggy-0.8.0\r\n[   12s] rootdir: /tmp/pytest-of-abuild/pytest-2/test_extra_image_separated_rerun3, inifile:\r\n[   12s] plugins: html-1.19.0, mock-1.10.0, metadata-1.7.0\r\n[   12s] collected 1 item\r\n[   12s] \r\n[   12s] test_extra_image_separated_rerun.py F                                    [100%]\r\n[   12s] \r\n[   12s] =================================== FAILURES ===================================\r\n[   12s] __________________________________ test_fail ___________________________________\r\n[   12s] \r\n[   12s]     @pytest.mark.flaky(reruns=2)\r\n[   12s]     def test_fail():\r\n[   12s] >       assert False\r\n[   12s] E       assert False\r\n[   12s] \r\n[   12s] test_extra_image_separated_rerun.py:4: AssertionError\r\n[   12s]  generated html file: /tmp/pytest-of-abuild/pytest-2/test_extra_image_separated_rerun3/report.html \r\n[   12s] =========================== 1 failed in 0.03 seconds ===========================\r\n[   12s] _______________________ TestHTML.test_environment_xdist ________________________\r\n[   12s] \r\n[   12s] self = <test_pytest_html.TestHTML object at 0x7f4e19579198>\r\n[   12s] testdir = <Testdir local('/tmp/pytest-of-abuild/pytest-2/test_environment_xdist0')>\r\n[   12s] \r\n[   12s]     def test_environment_xdist(self, testdir):\r\n[   12s]         content = str(random.random())\r\n[   12s]         testdir.makeconftest(\"\"\"\r\n[   12s]             def pytest_configure(config):\r\n[   12s]                 for i in range(2):\r\n[   12s]                     config._metadata['content'] = '{0}'\r\n[   12s]         \"\"\".format(content))\r\n[   12s]         testdir.makepyfile('def test_pass(): pass')\r\n[   12s] >       result, html = run(testdir, 'report.html', '-n', '1')\r\n[   12s] \r\n[   12s] /home/abuild/rpmbuild/BUILD/pytest-html-1.19.0/testing/test_pytest_html.py:512: \r\n[   12s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \r\n[   12s] \r\n[   12s] testdir = <Testdir local('/tmp/pytest-of-abuild/pytest-2/test_environment_xdist0')>\r\n[   12s] path = local('/tmp/pytest-of-abuild/pytest-2/test_environment_xdist0/report.html')\r\n[   12s] args = ('-n', '1')\r\n[   12s] result = <_pytest.pytester.RunResult object at 0x7f4e194f42b0>\r\n[   12s] \r\n[   12s]     def run(testdir, path='report.html', *args):\r\n[   12s]         path = testdir.tmpdir.join(path)\r\n[   12s]         result = testdir.runpytest('--html', path, *args)\r\n[   12s] >       with open(str(path)) as f:\r\n[   12s] E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-abuild/pytest-2/test_environment_xdist0/report.html'\r\n[   12s] \r\n[   12s] /home/abuild/rpmbuild/BUILD/pytest-html-1.19.0/testing/test_pytest_html.py:24: FileNotFoundError\r\n[   12s] ----------------------------- Captured stderr call -----------------------------\r\n[   12s] usage: py.test-3.6 [options] [file_or_dir] [file_or_dir] [...]\r\n[   12s] py.test-3.6: error: unrecognized arguments: -n\r\n[   12s]   inifile: None\r\n[   12s]   rootdir: /tmp/pytest-of-abuild/pytest-2/test_environment_xdist0\r\n[   12s] ____________________ TestHTML.test_environment_xdist_reruns ____________________\r\n[   12s] \r\n[   12s] self = <test_pytest_html.TestHTML object at 0x7f4e194f4898>\r\n[   12s] testdir = <Testdir local('/tmp/pytest-of-abuild/pytest-2/test_environment_xdist_reruns0')>\r\n[   12s] \r\n[   12s]     def test_environment_xdist_reruns(self, testdir):\r\n[   12s]         content = str(random.random())\r\n[   12s]         testdir.makeconftest(\"\"\"\r\n[   12s]             def pytest_configure(config):\r\n[   12s]                 for i in range(2):\r\n[   12s]                     config._metadata['content'] = '{0}'\r\n[   12s]         \"\"\".format(content))\r\n[   12s]         testdir.makepyfile('def test_fail(): assert False')\r\n[   12s] >       result, html = run(testdir, 'report.html', '-n', '1', '--reruns', '1')\r\n[   12s] \r\n[   12s] /home/abuild/rpmbuild/BUILD/pytest-html-1.19.0/testing/test_pytest_html.py:525: \r\n[   12s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \r\n[   12s] \r\n[   12s] testdir = <Testdir local('/tmp/pytest-of-abuild/pytest-2/test_environment_xdist_reruns0')>\r\n[   12s] path = local('/tmp/pytest-of-abuild/pytest-2/test_environment_xdist_reruns0/report.html')\r\n[   12s] args = ('-n', '1', '--reruns', '1')\r\n[   12s] result = <_pytest.pytester.RunResult object at 0x7f4e194a1b00>\r\n[   12s] \r\n[   12s]     def run(testdir, path='report.html', *args):\r\n[   12s]         path = testdir.tmpdir.join(path)\r\n[   12s]         result = testdir.runpytest('--html', path, *args)\r\n[   12s] >       with open(str(path)) as f:\r\n[   12s] E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-abuild/pytest-2/test_environment_xdist_reruns0/report.html'\r\n[   12s] \r\n[   12s] /home/abuild/rpmbuild/BUILD/pytest-html-1.19.0/testing/test_pytest_html.py:24: FileNotFoundError\r\n[   12s] ----------------------------- Captured stderr call -----------------------------\r\n[   12s] usage: py.test-3.6 [options] [file_or_dir] [file_or_dir] [...]\r\n[   12s] py.test-3.6: error: unrecognized arguments: -n --reruns 1\r\n[   12s]   inifile: None\r\n[   12s]   rootdir: /tmp/pytest-of-abuild/pytest-2/test_environment_xdist_reruns0\r\n[   12s] ______________________ TestHTML.test_xdist_crashing_slave ______________________\r\n[   12s] \r\n[   12s] self = <test_pytest_html.TestHTML object at 0x7f4e19423320>\r\n[   12s] testdir = <Testdir local('/tmp/pytest-of-abuild/pytest-2/test_xdist_crashing_slave0')>\r\n[   12s] \r\n[   12s]     @pytest.mark.xfail(\r\n[   12s]         sys.version_info < (3, 2) and\r\n[   12s]         LooseVersion(pytest.__version__) >= LooseVersion('2.8.0'),\r\n[   12s]         reason='Fails on earlier versions of Python and pytest',\r\n[   12s]         run=False)\r\n[   12s]     def test_xdist_crashing_slave(self, testdir):\r\n[   12s]         \"\"\"https://github.com/pytest-dev/pytest-html/issues/21\"\"\"\r\n[   12s]         testdir.makepyfile(\"\"\"\r\n[   12s]             import os\r\n[   12s]             def test_exit():\r\n[   12s]                 os._exit(0)\r\n[   12s]         \"\"\")\r\n[   12s] >       result, html = run(testdir, 'report.html', '-n', '1')\r\n[   12s] \r\n[   12s] /home/abuild/rpmbuild/BUILD/pytest-html-1.19.0/testing/test_pytest_html.py:572: \r\n[   12s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \r\n[   12s] \r\n[   12s] testdir = <Testdir local('/tmp/pytest-of-abuild/pytest-2/test_xdist_crashing_slave0')>\r\n[   12s] path = local('/tmp/pytest-of-abuild/pytest-2/test_xdist_crashing_slave0/report.html')\r\n[   12s] args = ('-n', '1')\r\n[   12s] result = <_pytest.pytester.RunResult object at 0x7f4e193aae80>\r\n[   12s] \r\n[   12s]     def run(testdir, path='report.html', *args):\r\n[   12s]         path = testdir.tmpdir.join(path)\r\n[   12s]         result = testdir.runpytest('--html', path, *args)\r\n[   12s] >       with open(str(path)) as f:\r\n[   12s] E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-abuild/pytest-2/test_xdist_crashing_slave0/report.html'\r\n[   12s] \r\n[   12s] /home/abuild/rpmbuild/BUILD/pytest-html-1.19.0/testing/test_pytest_html.py:24: FileNotFoundError\r\n[   12s] ----------------------------- Captured stderr call -----------------------------\r\n[   12s] usage: py.test-3.6 [options] [file_or_dir] [file_or_dir] [...]\r\n[   12s] py.test-3.6: error: unrecognized arguments: -n\r\n[   12s]   inifile: None\r\n[   12s]   rootdir: /tmp/pytest-of-abuild/pytest-2/test_xdist_crashing_slave0\r\n[   12s] _________________________ TestHTML.test_utf8_surrogate _________________________\r\n[   12s] \r\n[   12s] self = <test_pytest_html.TestHTML object at 0x7f4e193b2b00>\r\n[   12s] testdir = <Testdir local('/tmp/pytest-of-abuild/pytest-2/test_utf8_surrogate0')>\r\n[   12s] \r\n[   12s]     def test_utf8_surrogate(self, testdir):\r\n[   12s]         testdir.makepyfile(r\"\"\"\r\n[   12s]             import pytest\r\n[   12s]     \r\n[   12s]             @pytest.mark.parametrize('val', ['\\ud800'])\r\n[   12s]             def test_foo(val):\r\n[   12s]                 pass\r\n[   12s]         \"\"\")\r\n[   12s]         result, html = run(testdir)\r\n[   12s]         assert result.ret == 0\r\n[   12s] >       assert_results(html, passed=1)\r\n[   12s] \r\n[   12s] /home/abuild/rpmbuild/BUILD/pytest-html-1.19.0/testing/test_pytest_html.py:585: \r\n[   12s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \r\n[   12s] /home/abuild/rpmbuild/BUILD/pytest-html-1.19.0/testing/test_pytest_html.py:65: in assert_results\r\n[   12s]     assert_results_by_outcome(html, 'rerun', rerun)\r\n[   12s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \r\n[   12s] \r\n[   12s] html = '<!DOCTYPE html>\\n<html>\\n  <head>\\n    <meta charset=\"utf-8\"/>\\n    <title>Test Report</title>\\n    <link href=\"asset...colspan=\"4\">\\n            <div class=\"empty log\">No log output captured.</div></td></tr></tbody></table></body></html>'\r\n[   12s] test_outcome = 'rerun', test_outcome_number = 0, label = None\r\n[   12s] \r\n[   12s]     def assert_results_by_outcome(html, test_outcome, test_outcome_number,\r\n[   12s]                                   label=None):\r\n[   12s]         # Asserts if the test number of this outcome in the summary is correct\r\n[   12s]         regex_summary = '(\\d)+ {0}'.format(label or test_outcome)\r\n[   12s] >       assert int(re.search(regex_summary, html).group(1)) == test_outcome_number\r\n[   12s] E       AttributeError: 'NoneType' object has no attribute 'group'\r\n[   12s] \r\n[   12s] /home/abuild/rpmbuild/BUILD/pytest-html-1.19.0/testing/test_pytest_html.py:33: AttributeError\r\n[   12s] ----------------------------- Captured stdout call -----------------------------\r\n[   12s] ============================= test session starts ==============================\r\n[   12s] platform linux -- Python 3.6.5, pytest-3.10.1, py-1.7.0, pluggy-0.8.0\r\n[   12s] rootdir: /tmp/pytest-of-abuild/pytest-2/test_utf8_surrogate0, inifile:\r\n[   12s] plugins: html-1.19.0, mock-1.10.0, metadata-1.7.0\r\n[   12s] collected 1 item\r\n[   12s] \r\n[   12s] test_utf8_surrogate.py .                                                 [100%]\r\n[   12s] \r\n[   12s]  generated html file: /tmp/pytest-of-abuild/pytest-2/test_utf8_surrogate0/report.html \r\n[   12s] =========================== 1 passed in 0.02 seconds ===========================\r\n[   12s] _____________________ TestHTML.test_utf8_longrepr[u'\\x81'] _____________________\r\n[   12s] \r\n[   12s] self = <test_pytest_html.TestHTML object at 0x7f4e1933f780>\r\n[   12s] testdir = <Testdir local('/tmp/pytest-of-abuild/pytest-2/test_utf8_longrepr1')>\r\n[   12s] content = \"u'\\x81'\"\r\n[   12s] \r\n[   12s]     @pytest.mark.parametrize('content', [(\"'foo'\"), (\"u'\\u0081'\")])\r\n[   12s]     def test_utf8_longrepr(self, testdir, content):\r\n[   12s]         testdir.makeconftest(\"\"\"\r\n[   12s]             import pytest\r\n[   12s]             @pytest.mark.hookwrapper\r\n[   12s]             def pytest_runtest_makereport(item, call):\r\n[   12s]                 outcome = yield\r\n[   12s]                 report = outcome.get_result()\r\n[   12s]                 if report.when == 'call':\r\n[   12s]                     report.longrepr = 'utf8 longrepr: ' + {0}\r\n[   12s]         \"\"\".format(content))\r\n[   12s]         testdir.makepyfile(\"\"\"\r\n[   12s]             def test_fail():\r\n[   12s]                 testtext = 'utf8 longrepr: '\r\n[   12s]                 assert False\r\n[   12s]         \"\"\")\r\n[   12s] >       result, html = run(testdir, 'report.html', '--self-contained-html')\r\n[   12s] \r\n[   12s] /home/abuild/rpmbuild/BUILD/pytest-html-1.19.0/testing/test_pytest_html.py:628: \r\n[   12s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \r\n[   12s] /home/abuild/rpmbuild/BUILD/pytest-html-1.19.0/testing/test_pytest_html.py:25: in run\r\n[   12s]     html = f.read()\r\n[   12s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \r\n[   12s] \r\n[   12s] self = <encodings.ascii.IncrementalDecoder object at 0x7f4e1930e6d8>\r\n[   12s] input = b'<!DOCTYPE html>\\n<html>\\n  <head>\\n    <meta charset=\"utf-8\"/>\\n    <title>Test Report</title>\\n    <style>body {\\n\\... colspan=\"4\">\\n            <div class=\"log\">utf8 longrepr: \\xc2\\x81<br/></div></td></tr></tbody></table></body></html>'\r\n[   12s] final = True\r\n[   12s] \r\n[   12s]     def decode(self, input, final=False):\r\n[   12s] >       return codecs.ascii_decode(input, self.errors)[0]\r\n[   12s] E       UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 12754: ordinal not in range(128)\r\n[   12s] \r\n[   12s] /usr/lib64/python3.6/encodings/ascii.py:26: UnicodeDecodeError\r\n[   12s] ----------------------------- Captured stdout call -----------------------------\r\n[   12s] ============================= test session starts ==============================\\nplatform linux -- Python 3.6.5, pytest-3.10.1, py-1.7.0, pluggy-0.8.0\\nrootdir: /tmp/pytest-of-abuild/pytest-2/test_utf8_longrepr1, inifile:\\nplugins: html-1.19.0, mock-1.10.0, metadata-1.7.0\\ncollected 1 item\\n\\ntest_utf8_longrepr.py F                                                  [100%]\\n\\n=================================== FAILURES ===================================\\n__________________________________ test_fail ___________________________________\\nutf8 longrepr: \\x81\\n generated html file: /tmp/pytest-of-abuild/pytest-2/test_utf8_longrepr1/report.html \\n=========================== 1 failed in 0.02 seconds ===========================\r\n[   12s] _________________________ TestHTML.test_collect_error __________________________\r\n[   12s] \r\n[   12s] self = <test_pytest_html.TestHTML object at 0x7f4e192389b0>\r\n[   12s] testdir = <Testdir local('/tmp/pytest-of-abuild/pytest-2/test_collect_error0')>\r\n[   12s] \r\n[   12s]     def test_collect_error(self, testdir):\r\n[   12s]         testdir.makepyfile(\"\"\"\r\n[   12s]             import xyz\r\n[   12s]             def test_pass(): pass\r\n[   12s]         \"\"\")\r\n[   12s]         result, html = run(testdir)\r\n[   12s]         assert result.ret\r\n[   12s] >       assert_results(html, tests=0, passed=0, errors=1)\r\n[   12s] \r\n[   12s] /home/abuild/rpmbuild/BUILD/pytest-html-1.19.0/testing/test_pytest_html.py:639: \r\n[   12s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \r\n[   12s] /home/abuild/rpmbuild/BUILD/pytest-html-1.19.0/testing/test_pytest_html.py:65: in assert_results\r\n[   12s]     assert_results_by_outcome(html, 'rerun', rerun)\r\n[   12s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \r\n[   12s] \r\n[   12s] html = '<!DOCTYPE html>\\n<html>\\n  <head>\\n    <meta charset=\"utf-8\"/>\\n    <title>Test Report</title>\\n    <link href=\"asset...or\">E   ModuleNotFoundError: No module named &#x27;xyz&#x27;</span><br/></div></td></tr></tbody></table></body></html>'\r\n[   12s] test_outcome = 'rerun', test_outcome_number = 0, label = None\r\n[   12s] \r\n[   12s]     def assert_results_by_outcome(html, test_outcome, test_outcome_number,\r\n[   12s]                                   label=None):\r\n[   12s]         # Asserts if the test number of this outcome in the summary is correct\r\n[   12s]         regex_summary = '(\\d)+ {0}'.format(label or test_outcome)\r\n[   12s] >       assert int(re.search(regex_summary, html).group(1)) == test_outcome_number\r\n[   12s] E       AttributeError: 'NoneType' object has no attribute 'group'\r\n[   12s] \r\n[   12s] /home/abuild/rpmbuild/BUILD/pytest-html-1.19.0/testing/test_pytest_html.py:33: AttributeError\r\n[   12s] ----------------------------- Captured stdout call -----------------------------\r\n[   12s] ============================= test session starts ==============================\r\n[   12s] platform linux -- Python 3.6.5, pytest-3.10.1, py-1.7.0, pluggy-0.8.0\r\n[   12s] rootdir: /tmp/pytest-of-abuild/pytest-2/test_collect_error0, inifile:\r\n[   12s] plugins: html-1.19.0, mock-1.10.0, metadata-1.7.0\r\n[   12s] collected 0 items / 1 errors\r\n[   12s] \r\n[   12s] ==================================== ERRORS ====================================\r\n[   12s] ____________________ ERROR collecting test_collect_error.py ____________________\r\n[   12s] ImportError while importing test module '/tmp/pytest-of-abuild/pytest-2/test_collect_error0/test_collect_error.py'.\r\n[   12s] Hint: make sure your test modules/packages have valid Python names.\r\n[   12s] Traceback:\r\n[   12s] test_collect_error.py:1: in <module>\r\n[   12s]     import xyz\r\n[   12s] E   ModuleNotFoundError: No module named 'xyz'\r\n[   12s]  generated html file: /tmp/pytest-of-abuild/pytest-2/test_collect_error0/report.html \r\n[   12s] !!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!\r\n[   12s] =========================== 1 error in 0.16 seconds ============================\r\n[   12s] =============================== warnings summary ===============================\r\n[   12s] testing/test_pytest_html.py:32\r\n[   12s]   /home/abuild/rpmbuild/BUILD/pytest-html-1.19.0/testing/test_pytest_html.py:32: DeprecationWarning: invalid escape sequence \\d\r\n[   12s]     regex_summary = '(\\d)+ {0}'.format(label or test_outcome)\r\n[   12s] \r\n[   12s] testing/test_pytest_html.py:50\r\n[   12s]   /home/abuild/rpmbuild/BUILD/pytest-html-1.19.0/testing/test_pytest_html.py:50: DeprecationWarning: invalid escape sequence \\d\r\n[   12s]     total_tests = re.search('(\\d)+ tests ran', html)\r\n[   12s] \r\n[   12s] testing/test_pytest_html.py:55\r\n[   12s]   /home/abuild/rpmbuild/BUILD/pytest-html-1.19.0/testing/test_pytest_html.py:55: DeprecationWarning: invalid escape sequence \\d\r\n[   12s]     tests_duration = re.search('([\\d,.]+) seconds', html)\r\n[   12s] \r\n[   12s] testing/test_pytest_html.py:79\r\n[   12s]   /home/abuild/rpmbuild/BUILD/pytest-html-1.19.0/testing/test_pytest_html.py:79: DeprecationWarning: invalid escape sequence \\d\r\n[   12s]     p = re.compile('<td class=\"col-duration\">([\\d,.]+)</td>')\r\n[   12s] \r\n[   12s] testing/test_pytest_html.py:534\r\n[   12s]   /home/abuild/rpmbuild/BUILD/pytest-html-1.19.0/testing/test_pytest_html.py:534: DeprecationWarning: invalid escape sequence \\s\r\n[   12s]     expected_html_re = '<td>content</td>\\n\\s+<td>{}</td>'.format(\r\n[   12s] \r\n[   12s] -- Docs: https://docs.pytest.org/en/latest/warnings.html\r\n[   12s] =============== 20 failed, 39 passed, 5 warnings in 7.59 seconds ===============\r\n[   13s] error: Bad exit status from /var/tmp/rpm-tmp.9I9bMK (%check)\r\n```\r\n\r\n</details>\r\n\r\nI have the necessary requirements installed as per ```setup.py```, so I'm not sure where the problem is."},"comment":{"url":"https://api.github.com/repos/pytest-dev/pytest-html/issues/comments/546693865","html_url":"https://github.com/pytest-dev/pytest-html/issues/185#issuecomment-546693865","issue_url":"https://api.github.com/repos/pytest-dev/pytest-html/issues/185","id":546693865,"node_id":"MDEyOklzc3VlQ29tbWVudDU0NjY5Mzg2NQ==","user":{"login":"BeyondEvil","id":15611634,"node_id":"MDQ6VXNlcjE1NjExNjM0","avatar_url":"https://avatars3.githubusercontent.com/u/15611634?v=4","gravatar_id":"","url":"https://api.github.com/users/BeyondEvil","html_url":"https://github.com/BeyondEvil","followers_url":"https://api.github.com/users/BeyondEvil/followers","following_url":"https://api.github.com/users/BeyondEvil/following{/other_user}","gists_url":"https://api.github.com/users/BeyondEvil/gists{/gist_id}","starred_url":"https://api.github.com/users/BeyondEvil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BeyondEvil/subscriptions","organizations_url":"https://api.github.com/users/BeyondEvil/orgs","repos_url":"https://api.github.com/users/BeyondEvil/repos","events_url":"https://api.github.com/users/BeyondEvil/events{/privacy}","received_events_url":"https://api.github.com/users/BeyondEvil/received_events","type":"User","site_admin":false},"created_at":"2019-10-27T13:18:09Z","updated_at":"2019-10-27T13:18:09Z","author_association":"CONTRIBUTOR","body":"Great news! Closing."}}
{"actor":{"display_login":"BeyondEvil"}}