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
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Pydev-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pydev-users