[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
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
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