Message256742
Ah, I see. The setup/teardown stuff runs for each test.
So this is what I did:
* Added a method to add a "bad" source file to the source directory. It gets cleaned up with the existing teardown method.
* Used test_importlib to temporarily mutate sys.path as you recommended.
I think this is much closer to what we want. Let me know what you think.
By the way, are there any docs on test_importlib? I couldn't find any. |
|
| Date |
User |
Action |
Args |
| 2015-12-19 22:35:08 | nchammas | set | recipients:
+ nchammas, brett.cannon, docs@python |
| 2015-12-19 22:35:07 | nchammas | set | messageid: <[email protected]> |
| 2015-12-19 22:35:07 | nchammas | link | issue25768 messages |
| 2015-12-19 22:35:07 | nchammas | create | |
|