[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Need help: integrating unittest with setuptools

Hi, everybody:

I have met a problem while I ran `python test`: No module named 'winreg'

I ran the command in MacOS and my project is written for only UNIX-like systems. I don't use any Windows-specified API. How dose `winreg` come here?

In my ``:


In my `test/`:

	import unittest

	class TestAll(unittest.TestCase):
		def testall(self):
			return None

It works if I ran `python -m uniittest` alone but raises the above exception if I ran `python test`.

I'm working on this for the whole day, searching for every keywords I can think of with Google but can't find why or how. Could you help me? Thanks.

YX. D.