Anders Hovmöller
Anders Hovmöller
I'm marking this as wont fix.
> failed to collect stats Hmm. I guess mutmut should error out there already. Without that step working, running the tests clean is kinda useless. > These changes will be...
Getting closer... I discovered that when I go into `mutants` and execute pytest it still imports from the original `src` dir, and not from the `mutants` dir. Yea.. as I...
```py src_path = (Path('mutants') / 'src') source_path = (Path('mutants') / 'source') if src_path.exists(): sys.path.insert(0, str(src_path.absolute())) elif source_path.exists(): sys.path.insert(0, str(source_path.absolute)) else: sys.path.insert(0, os.path.abspath('mutants')) ``` instead of just inserting `mutants` works. Now...
Now I discovered that my trampolines don't preserve generator semantics. So that's where I'm at right now.
I released 3.1.0 with fixes for `from __future__`, stat hard exit, and generator handling. Still no luck in running your project though, but I'm getting a lot further.
Ah. Good point. I pushed a fix for that. Even with that fix I crash here: ```console File "/Users/boxed/Projects/inline-snapshot/mutants/src/inline_snapshot/_inline_snapshot.py", line 2297, in _get_changes yield from _mutmut_yield_from_trampoline(object.__getattribute__(self, "xǁUndecidedValueǁ_get_changes__mutmut_orig"), object.__getattribute__(self, "xǁUndecidedValueǁ_get_changes__mutmut_mutants"), *args,...
Hm. Yea I guess that could work too. The function bodies would be rather huge which can have other problems I guess. It would also make it more annoying to...
I didn't realize until you said so right now that `snapshot()` isn't mutated! I don't know why. It should be!
Yea ok, so decorators stop mutation! I wrote a small test for that and yea. That should just result in fewer mutants though, not a fail like the traceback above...