[rhinstaller/blivet/pulls/132 master] Make use of /usr/bin/env python to avoid hard-coding the python version

mulkieran installerbot-noreply at redhat.com
Fri May 29 13:15:22 UTC 2015


Aaaah. Now I understand your commit message better. I didn't realize that chunk of code was present in the other files.

This is related to the change I suggesed for #133 just now.

I think we should actually get rid of the shebangs and ```if __name__ == "__main__"``` chunks in all the *_test.py files (and all others if there are any).

The reason for this is that we always want to run the tests with the 2/3 compatible TestCase functions.
Therefore, we always want to run them in a context where a compatibility module has been loaded. Running them directly from the command line is likely to skip that, so we should get rid of code that makes it easier to run them from the command line.








-- 
To view this pull request on github, visit https://github.com/rhinstaller/blivet/pull/132


More information about the anaconda-patches mailing list