-
Notifications
You must be signed in to change notification settings - Fork 294
test not running when building on opensuse build server #279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
How are you running the tests? That file appears to be broken, but running the tests as documented shouldn't even try and run that? |
probably running it the wrong way ;) Currently the spec file that builds the rpm does:
replacing this with "py.test" gives me the following error: [ 80s] + py.test not sure what's wrong here. The full build log for one of the architectures can be accessed here: |
You need the requirements given in |
added the dependiences: flake8 and pytest-expect were missing (pytest and mock were already included). Still getting the same error as above. thanks btw for the fast response ;) |
If you're getting the same exception, then it looks like pytest-expect isn't installed. Note there are two packages called pytest-expect, because I suck. (That's gsnedders/pytest-expect#4. Though changing name on package indexes always seem pretty horrible, hence why I keep putting it off…) (I just get "anonymous_user(Anonymous user is not allowed here - please login):" on the build pages, and until I feel a greater need (i.e., can't just give an answer like the above!) I'm gonna be lazy and not register!) |
@arunpersaud did you ever get anywhere with this? |
I was debugging test problems with the Debian packaging for html5lib. After switching from nose to py.test trying to run the tests generated a traceback until I added pytest-expect. |
I'm still seeing the traceback from #279 (comment) even with pytest-expect present. There doesn't seem to be anything in the code that loads the expect plugin, Is there perhaps some magic option in your global pytest config that you're not telling us about? ;) |
Travis at least manages fine, finding the plugin as soon as it is installed! I don't really know beyond that, honestly. |
Looking at travis instructions actually helped. And of course py.test runner hides the failure, surprisingly even in case when you explicitly request the plugin, which i suppose is a pytest bug... Anyway, adding the missing dependency allows pytest to load the pytest-expect module, which in turn fixes the traceback. Thanks for your time and feel free to close the issue. |
Hi sorry for the responding, somehow slipped my radar :( Turns out it was the same problem as for matejclk, u-msgpack-python was missing, added it and now everything is working. Thanks |
Hi
trying to package html5lib for opensuse, but I'm running into the following error when trying to run the tests:
[ 113s] File "/home/abuild/rpmbuild/BUILD/html5lib-0.999999999/html5lib/tests/tokenizertotree.py", line 10, in
[ 113s] from . import test_tokenizer
[ 113s] ImportError: cannot import name 'test_tokenizer'
I 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.
The text was updated successfully, but these errors were encountered: