I run my python unit tests by executing my test file through the shell and invoking
if __name__ == '__main__':
unittest.main()
at the end of the test file.
I have to support python 2.7 and python 3 (I am writing a plugin for Sublime Text.)
My shell runs python 2.7, which came with my version of Mac OS X. Sublime Text 3 comes bundled with it's own version of Python (some flavor of python 3). Is there a way I can run my test files both with python 2.7 and with python 3 (hopefully without having to install yet another version of python) from the shell?