The previous test was better in that it used fakes to test all of the real code paths. The problem with that is that it makes it impossible to simplify the code with `isinstance` checks. So let's just simulate the issue directly with a monkeypatch. |
||
|---|---|---|
| .. | ||
| test_code.py | ||
| test_excinfo.py | ||
| test_source.py | ||