Anders Hovmöller
Anders Hovmöller
The common thread here seems to be to by `src` style layouts. Something I don't personally use in my projects.
@Julien-Delavisse Thanks for this reproduction.
@Julien-Delavisse I looked into your project, but I'm afraid your reproduction isn't very useful. You do `import src.hello_world`, but that's not how you're supposed to do that import in a...
Ah. I'm running from the main branch, not the latest released version. If you do that your simple project works, but I believe not the other projects in this issue....
Could you supply the project so I can test?
It sets the environment variable that makes all trampolines fail immediately. Think of it like turning on an exception being thrown in all functions in your code base.
Did you try with 3.1.0? I just released it with some fixes for stuff found by other users.
Ah, nice that you solved it. > mocking os.environ That's an interesting situation yea. Hmm.. actually.. I don't think I need to use os.environ at all now that I think...
I realized I do need to use os.environ for multiprocessing support later. Could you make your mock at least fall back to reading the real environ if there's a keyerror?
You don't have to use Mock to do mocking :) But yea, just setting it seems more sane.