[Pydev-users] [pydev - Users] unittest import error
Brought to you by:
fabioz
|
From: SourceForge.net <no...@so...> - 2006-11-29 04:26:25
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4035290 By: curyous I have a package 'UnitTests', containing the following file TestWork.py: import unittest #import StartUp class TestWork(unittest.TestCase): def testOne(self): self.assertEqual(True, False) if __name__ == '__main__': unittest.main() The folder also contains __init__.py: __all__ = [TestWork] If I run it, the unit test works OK, but if I uncomment 'import StartUp' which is a module in the root folder (one down from UnitTests), there is an error when importing TestWork. How do I rectify this? I would appreciate suggestions, I'm sure it's something simple that I'm missing. ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=293649 |