unittest and non-.py files

Michael Hoffman cam.ac.uk at mh391.invalid
Thu Dec 8 14:47:24 EST 2005


[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 have done, and it is a better solution for other reasons.
Thanks Sybren.

I would still like to do what I originally proposed. Would this warrant
a feature request?
-- 
Michael Hoffman



More information about the Python-list mailing list