-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
assert isinstance(lineno, int) errors when collecting tests (2.8 regression) #1204
Comments
Here is what I think happens:
Some ideas:
|
from the looks of it we need to make test collection even more robust against magical thoughtless objects like rpc unverified wrappers |
for simle implementation we should limit the nose compatibility check to ONLY functions, methods and classes |
Well, that is a class. |
I agree with you, while it is not something I would use myself I think it makes sense here. Anyone cares to tackle this? If nobody has the time right now, I might be able to work on this later today or tomorrow. |
When cloning https://github.com/osiell/odoorpc/ and running
py.test --collect-only
I get:This looks similar to #1035 which was fixed by @nicoddemus, and only happened for Python 2.6 - this is with Python 3.4.3.
It works fine with pytest 2.7.3, and when reverting 3497aa0 from #921 the issue goes away as well. @tomviner
Looking at the repr, it seems it gets this function instead of a line number?
The text was updated successfully, but these errors were encountered: