>
> Yes, that works indeed. But in practice the modules_to_import list is
> filled by parsing the contents of a test/*.py directory. That's why I
> import dynamically with __import__.
>
> Nevertheless, you got me on the right track. After I explicitly added
> the modules to the global namespace (g
Dave Angel writes:
> Nikolaus Rath wrote:
>> Hi,
>>
>> Consider these two files:
>>
>> , mytest.py -
>> | #!/usr/bin/env python
>> | import unittest
>> | | class myTestCase(unittest.TestCase):
>> | def test_foo(self):
>> |pass
>> | | # Somehow important according to pyunit document
Nikolaus Rath wrote:
Hi,
Consider these two files:
, mytest.py -
| #!/usr/bin/env python
| import unittest
|
| class myTestCase(unittest.TestCase):
| def test_foo(self):
| pass
|
| # Somehow important according to pyunit documentation
| def suite():
| return unittest.m
Hi,
Consider these two files:
, mytest.py -
| #!/usr/bin/env python
| import unittest
|
| class myTestCase(unittest.TestCase):
| def test_foo(self):
| pass
|
| # Somehow important according to pyunit documentation
| def suite():
| return unittest.makeSuite(myTestCase)
`---