Problem while integrating unittest with setuptools

YuXuan Dong yuxuan.dong at outlook.com
Sat Aug 31 05:16:55 EDT 2019


Hi, everybody:

I met a problem while I ran `python setup.py test`: 

	unittest.case.SkipTest: 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 `setup.py`:

		test_suite="test"

In my `test/test.py`:

	import unittest

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

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

--
YX. D.



More information about the Python-list mailing list