Re: Only run one specific test

2009-05-31 Thread Yinon Ehrlich
> > 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

Re: [pyunit] Only run one specific test

2009-05-28 Thread Nikolaus Rath
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

Re: [pyunit] Only run one specific test

2009-05-28 Thread Dave Angel
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

[pyunit] Only run one specific test

2009-05-28 Thread Nikolaus Rath
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) `---