Re: unittest and non-.py files

2005-12-08 Thread Michael Hoffman
[Michael Hoffman] >>Hi. I am trying to use unittest to run a test suite on some >>scripts that do not have a .py extension. [Sybren Stuvel] > I'd move the functionality of the script into a separate file that > does end in .py, and only put the invocation into the .py-less > script. That's what I

Re: unittest and non-.py files

2005-12-07 Thread Sybren Stuvel
Michael Hoffman enlightened us with: > Hi. I am trying to use unittest to run a test suite on some > scripts that do not have a .py extension. I'd move the functionality of the script into a separate file that does end in .py, and only put the invocation into the .py-less script. Sybren -- The p

unittest and non-.py files

2005-12-07 Thread Michael Hoffman
Hi. I am trying to use unittest to run a test suite on some scripts that do not have a .py extension. This is how I am doing it now in test/test_polysub.py which is meant to test scripts/polysub: """ import imp from path import path as Path SCRIPTNAME = "polysub" test_dirpath = Path(__file__).par