[Zope-Coders] Re: [Zope-Checkins] CVS: Zope/lib/python/DateTime/tests -testDateTime.py:1.12.6.3

Andreas Jung andreas@andreas-jung.com
Thu, 17 Oct 2002 17:22:45 +0200


Isn't __file__ only defined when a module is imported but
undefined when the file is run directly from the Python
interpreter. I agreee that there should be some more logic if
you run the unittest on your own. But isn't the suggested
way to run the tests through the testrunner?

-aj

--On Donnerstag, 17. Oktober 2002 16:21 +0200 Lennart Regebro 
<lennart@torped.se> wrote:

> From: "Tres Seaver" <tseaver@zope.com>
>> Depending on the current working directory means that the tests can only
>> be run from one place (and probably the wrong one)!  Why aren't we using
>> the '__file__' of the module to figure out where the test data is?
>
> It's probably a good idea to ask Andreas Jung this, since he seem to have
> made the tests, judging from the CVS log.
>
>
>
>
>
> _______________________________________________
> Zope-Coders mailing list
> Zope-Coders@zope.org
> http://lists.zope.org/mailman/listinfo/zope-coders




    ---------------------------------------------------------------------
   -    Andreas Jung                     http://www.andreas-jung.com   -
  -   EMail: andreas at andreas-jung.com                              -
   -            "Life is too short to (re)write parsers"               -
    ---------------------------------------------------------------------