{"action":"created","issue":{"url":"https://api.github.com/repos/html5lib/html5lib-python/issues/279","repository_url":"https://api.github.com/repos/html5lib/html5lib-python","labels_url":"https://api.github.com/repos/html5lib/html5lib-python/issues/279/labels{/name}","comments_url":"https://api.github.com/repos/html5lib/html5lib-python/issues/279/comments","events_url":"https://api.github.com/repos/html5lib/html5lib-python/issues/279/events","html_url":"https://github.com/html5lib/html5lib-python/issues/279","id":165991158,"number":279,"title":"test not running when building on opensuse build server","user":{"login":"arunpersaud","id":425653,"avatar_url":"https://avatars.githubusercontent.com/u/425653?v=3","gravatar_id":"","url":"https://api.github.com/users/arunpersaud","html_url":"https://github.com/arunpersaud","followers_url":"https://api.github.com/users/arunpersaud/followers","following_url":"https://api.github.com/users/arunpersaud/following{/other_user}","gists_url":"https://api.github.com/users/arunpersaud/gists{/gist_id}","starred_url":"https://api.github.com/users/arunpersaud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arunpersaud/subscriptions","organizations_url":"https://api.github.com/users/arunpersaud/orgs","repos_url":"https://api.github.com/users/arunpersaud/repos","events_url":"https://api.github.com/users/arunpersaud/events{/privacy}","received_events_url":"https://api.github.com/users/arunpersaud/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-17T19:18:54Z","updated_at":"2016-07-17T21:31:51Z","closed_at":null,"body":"Hi\r\n\r\ntrying to package html5lib for opensuse, but I'm running into the following error when trying to run the tests:\r\n\r\n[  113s]   File \"/home/abuild/rpmbuild/BUILD/html5lib-0.999999999/html5lib/tests/tokenizertotree.py\", line 10, in <module>\r\n[  113s]     from . import test_tokenizer\r\n[  113s] ImportError: cannot import name 'test_tokenizer'\r\n\r\nI can't see that file in the tar-ball or in git over here. Building from the tar-ball on pypi using python 3.5.1.\r\n"},"comment":{"url":"https://api.github.com/repos/html5lib/html5lib-python/issues/comments/233205410","html_url":"https://github.com/html5lib/html5lib-python/issues/279#issuecomment-233205410","issue_url":"https://api.github.com/repos/html5lib/html5lib-python/issues/279","id":233205410,"user":{"login":"arunpersaud","id":425653,"avatar_url":"https://avatars.githubusercontent.com/u/425653?v=3","gravatar_id":"","url":"https://api.github.com/users/arunpersaud","html_url":"https://github.com/arunpersaud","followers_url":"https://api.github.com/users/arunpersaud/followers","following_url":"https://api.github.com/users/arunpersaud/following{/other_user}","gists_url":"https://api.github.com/users/arunpersaud/gists{/gist_id}","starred_url":"https://api.github.com/users/arunpersaud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arunpersaud/subscriptions","organizations_url":"https://api.github.com/users/arunpersaud/orgs","repos_url":"https://api.github.com/users/arunpersaud/repos","events_url":"https://api.github.com/users/arunpersaud/events{/privacy}","received_events_url":"https://api.github.com/users/arunpersaud/received_events","type":"User","site_admin":false},"created_at":"2016-07-17T21:31:51Z","updated_at":"2016-07-17T21:31:51Z","body":"probably running it the wrong way ;) Currently the spec file that builds the rpm does: \r\n \r\n     python3 setup.py test\r\n\r\nreplacing this with \"py.test\" gives me the following error:\r\n\r\n[   80s] + py.test\r\n[   80s] ============================= test session starts ==============================\r\n[   80s] platform linux -- Python 3.5.1, pytest-2.9.2, py-1.4.31, pluggy-0.3.1\r\n[   80s] rootdir: /home/abuild/rpmbuild/BUILD/html5lib-0.999999999, inifile: pytest.ini\r\n[   81s] collected 0 items / 1 errors\r\n[   81s] \r\n[   81s] =========================== short test summary info ============================\r\n[   81s] ERROR \r\n[   81s] ==================================== ERRORS ====================================\r\n[   81s] ______________________________ ERROR collecting  _______________________________\r\n[   81s] /usr/lib/python3.5/site-packages/py/_path/common.py:332: in visit\r\n[   81s]     for x in Visitor(fil, rec, ignore, bf, sort).gen(self):\r\n[   81s] /usr/lib/python3.5/site-packages/py/_path/common.py:378: in gen\r\n[   81s]     for p in self.gen(subdir):\r\n[   81s] /usr/lib/python3.5/site-packages/py/_path/common.py:367: in gen\r\n[   81s]     dirs = self.optsort([p for p in entries\r\n[   81s] /usr/lib/python3.5/site-packages/py/_path/common.py:368: in <listcomp>\r\n[   81s]     if p.check(dir=1) and (rec is None or rec(p))])\r\n[   81s] /usr/lib/python3.5/site-packages/_pytest/main.py:647: in _recurse\r\n[   81s]     ihook = self.gethookproxy(path)\r\n[   81s] /usr/lib/python3.5/site-packages/_pytest/main.py:550: in gethookproxy\r\n[   81s]     my_conftestmodules = pm._getconftestmodules(fspath)\r\n[   81s] /usr/lib/python3.5/site-packages/_pytest/config.py:297: in _getconftestmodules\r\n[   81s]     mod = self._importconftest(conftestpath)\r\n[   81s] /usr/lib/python3.5/site-packages/_pytest/config.py:333: in _importconftest\r\n[   81s]     self.consider_conftest(mod)\r\n[   81s] /usr/lib/python3.5/site-packages/_pytest/config.py:356: in consider_conftest\r\n[   81s]     if self.register(conftestmodule, name=conftestmodule.__file__):\r\n[   81s] /usr/lib/python3.5/site-packages/_pytest/config.py:208: in register\r\n[   81s]     ret = super(PytestPluginManager, self).register(plugin, name)\r\n[   81s] /usr/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py:370: in register\r\n[   81s]     hook._maybe_apply_history(hookimpl)\r\n[   81s] /usr/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py:747: in _maybe_apply_history\r\n[   81s]     res = self._hookexec(self, [method], kwargs)\r\n[   81s] /usr/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py:338: in _hookexec\r\n[   81s]     return self._inner_hookexec(hook, methods, kwargs)\r\n[   81s] /usr/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py:333: in <lambda>\r\n[   81s]     _MultiCall(methods, kwargs, hook.spec_opts).execute()\r\n[   81s] /usr/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py:596: in execute\r\n[   81s]     res = hook_impl.function(*args)\r\n[   81s] html5lib/tests/conftest.py:31: in pytest_configure\r\n[   81s]     if config.option.update_xfail:\r\n[   81s] E   AttributeError: 'CmdOptions' object has no attribute 'update_xfail'\r\n[   81s] =========================== 1 error in 0.70 seconds ============================\r\n[   81s] error: Bad exit status from /var/tmp/rpm-tmp.ErrBZp (%check)\r\n[   81s] \r\n\r\nnot sure what's wrong here.\r\n\r\nThe full build log for one of the architectures can be accessed here:\r\nhttps://build.opensuse.org/build/home:apersaud:branches:devel:languages:python3/openSUSE_Factory/x86_64/python3-html5lib/_log\r\n\r\n\r\n"}}
{"actor":{"display_login":"arunpersaud"}}