facebook/tornado — pull request #545 by birknilson (2012-06-20 13:42:42+00:00)
Title: Ensure the test suite is executed against the local tornado modules.

In case tornado is installed globally on the system, i.e in site-packages, it will compromise our execution of tornado/test/runtests.py. Because the global version of tornado will be imported instead of the local one in which the executed runtests.py script resides.

This pull request resolves this issue by injecting the local tornado directory path to our sys.path prior to importing any tornado modules in the runtests.py script. The path is inserted at index 1 since the current directory should remain the primary one.