-
Notifications
You must be signed in to change notification settings - Fork 395
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
Regression since 1.3.1 with Python 3 #780
Comments
The regression was introduce by: |
Can you provide more information about the test case that fails? Is the source for the test available somewhere? Can it be reduced to a small test case? |
It seems to be from that file: https://git.openstack.org/cgit/openstack/oslo-incubator/tree/tests/unit/test_policy.py That's where |
Can you try adding class TestException(Exception):
__test__ = False
def __init__(self, *args, **kwargs):
self.args = args
self.kwargs = kwargs Or you can try renaming it. I think the issue here is that Nose is trying to collect the class because of the name (it's starts with |
@jszakmeister adding |
Just to have it cross-referenced: the original issue being fixed was #728. |
This is also a problem for me as I said on the list. |
I believe it was a piece of test machinery we had in IPython to do a variant of parametric tests. We've since ripped it out as it was more complexity than it was worth, but the code was here: https://github.com/ipython/ipython/blob/1.x/IPython/testing/_paramtestpy3.py |
So could the "fix" in #728 be reverted? maybe the docs should just be updated to say that staticmethods aren't supported on test suite classes? |
I think it would be sufficient to just put that line of code inside an |
I think #728 was a genuine bug, so it shouldn't be reverted, but I don't think the fix is needed in Python 3, so it should be simple. |
@cjw296 No, I don't think it should be reverted. I believe there's another way we can approach the problem. |
@jszakmeister I'm pretty sure the fix in c51ff6f was only necessary for Python 2, the equivalent in Python 3 is already set via if not PY3:
self.im_class = cls |
@jszakmeister: Are you planning Nose 1.3.2 release soon? |
That's my intention. Can you test master and see that it works better for you? |
All tests now pass for me with CPython 2.7, 3.1, 3.2, 3.3, 3.4. |
Hey there,
We used to have everything working with Python 3.3 and now it's broken.
Full log is at http://logs.openstack.org/28/74728/4/check/gate-oslo-incubator-python33/fcccbc2/console.html
The error we see is:
The text was updated successfully, but these errors were encountered: