Comments (9)
well - the only way to do that would be to break the python import mechanism, as relative imports are supposed to work only within the local package tree, not across package trees
from pluggy.
@RonnyPfannschmidt right.
So my thinking is for dev testing we only need to test the local pluggy
code where some other stable version can be used as a dep by pytest
.
Let me see if I can come up with something and we can talk :)
from pluggy.
It is fine to use relative imports, but that doesn't mean that the modules will be isolated in anyway: a module inside pluggy
package that executes from . import callers
will import the exact same module as if executing from pluggy import callers
, which is also the same module imported from another package (say pytest) executing import pluggy.callers
.
from pluggy.
we can test a un-installed pluggy in isolation by mapping it to a new name, we cant test a installed pluggy in isolation at all - python is just broken there
from pluggy.
I think @RonnyPfannschmidt and I are saying the same thing, we can close this as "won't fix" because there's no practical solution for it. 😁
from pluggy.
@nicoddemus just hold up. I'm pretty sure I know how to make this work. If I fail I'll close it ;)
from pluggy.
@tgoodlet sure please go ahead! 😁
from pluggy.
@nicoddemus ok I take it back. You're right I'd have to hack around it with sys.modules
which I think is doable but I'm not going to bother until it's needed.
from pluggy.
Thanks for trying! 👍
from pluggy.
Related Issues (20)
- Avoid erroring from tracing HOT 4
- Drop Python 3.7
- Export our typing HOT 2
- multi hook registration does not unregister HOT 6
- Can plugins be executed concurrently? HOT 3
- RFE: is it possible to start making github releases?🤔 HOT 3
- pytest won't run root conftest.py's pytest_configure in special circumstances HOT 2
- Rename misleading function name `PluggyManager.load_setuptools_entrypoints` HOT 3
- Issue with ordering of hooks HOT 2
- Question about default values in hook implementation HOT 1
- discussion: pluggy speedup by using 'codegen' HOT 7
- Is it possible to override an existing hook with a HookCaller class?
- pluggy loads disabled pytest plugins HOT 5
- Warn when old-style hookwrapper raises during teardown
- Add python-lsp-server to downstream tests
- Troubles to understand the new updates on Pluggy HOT 11
- Bug: Pluggy 1.4 searches all home dirs for __init__.py HOT 2
- Possible to tell which hook answered a call? HOT 1
- load_setuptools_entrypoints messing up with rpath HOT 2
- How to get in touch regarding a security concern HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pluggy.