Yelp/mrjob — Issue #316: don't run installed version of mrjob when testing
Author: davidmarin
Created: 2011-12-19 23:03:32+00:00
State: open
Labels: Testing

When we're running tests and we invoke jobs in a subprocess, we want to use the version of `mrjob` we're currently testing, not whatever's installed.

This works correctly when you run `python setup.py test`, but not when you run `unit2 `.

We'd gotten this to work with `testify` (our old unit testing framework) by setting the `PYTHONPATH` environment variable; just need to figure out the right way to do this with `unittest`.