-
-
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
pytest 3.0.0+ and python-ldap #1869
Comments
I'm guessing this is somehow caused by #1619, because assertion rewriting wasn't done in Any chance you can share the full |
Sure, the conftest file contains:
This is the one which has the import which references ldap. There is another conftest file higher up the tree, which in turn uses the pytest_plugins keyword to pull in an additional file. I can share those as well, if the above isn't of much help |
So from what I see from that stacktrace, there are two relevant things happening here:
18 for _name in dir():
19 o = eval(_name)
20 if hasattr(o,'schema_attribute'):
21 SCHEMA_CLASS_MAPPING[o.schema_attribute] = o
22 SCHEMA_ATTR_MAPPING[o] = o.schema_attribute
I wonder, why is 2) happening? Do you use |
A bug was fixed just yesterday related to @aoodham Is it possible to test using the latest |
Just tried running the test suite with latest master - it all looks good:
So aside from the warning - which I'm guessing didn't stop anything from happening, it all looks fine |
Great! 😁 That warning only means that I'm closing this for now then. |
Hi,
We've noticed an issue when using py.test on modules which have a dependency on python-ldap.
The stack trace is:
This is running on a Fedora 20 machine with py.test 3.0.1 and python-ldap version 2.4.17. Although I can repeat the same on a fedora 23 machine running py.test 3.0.1/ 3.0.0 and python ldap 2.4.17/27
I can't seem to recreate this with a simple minimal example. Just having a test which references a conftest which imports ldap doesn't seem to work - so something strange must be happening, but I don't know what else to try.
(edited by @The-Compiler to add code symbols around the stacktrace)
The text was updated successfully, but these errors were encountered: