"test_suite must be a list" ??
I got a report from a user that he couldn't install my software because he got the error message "test_suite must be a list". However, the version of setuptools that I have here asserts that test_suite must be a string. He showed me that he has setuptools 0.6c8 installed. Googling for "test_suite must be a list" suggests that maybe the Elisa project released a setuptools plugin to do something for unit tests which made that assertion. I asked the user if he had installed any Elisa packages and he thought not. For the moment, I commented-out the test_suite argument from my call to setup() and uploaded an interim version of my software which doesn't run its tests when you tell it "./setup.py test". This is an unsatisfying solution. Does anyone else have any knowledge of this problem? Thanks! Regards, Zooko --- http://allmydata.org -- Tahoe, the Least-Authority Filesystem http://allmydata.com -- back up all your files for $5/month
Okay, folks, I confirmed that this was indeed because a package named "elisa" was installed on the user's system, and I added this work- around to my package's setup.py: http://allmydata.org/trac/pycryptopp/browser/setup.py?rev=567#L146 146 try: 147 _setup(test_suite="pycryptopp.test") 148 except BaseException, le: 149 # to work around a bug in Elisa 150 if "test_suite must be a list" in str(le): 151 _setup(test_suite=["pycryptopp.test"]) This works on both my system (with setuptools 0.7 dev) and my user's system (with setuptools 0.6c8 and elisa). I will try to contact the authors of elisa. Regards, Zooko --- http://allmydata.org -- Tahoe, the Least-Authority Filesystem http://allmydata.com -- back up all your files for $5/month
Here is the ticket on launchpad for Elisa and/or Ubuntu to fix this problem: https://bugs.launchpad.net/ubuntu/+bug/263697 Until that is fixed, the workaround is if your users say "I got an exception saying test_suite must be a list.", then you should ask them to uninstall elisa from their system. You can also use the kludgey work-around that I posted in a previous message, but since you can't do this for all Python packages which you might want to run the unit tests of, I'm not sure that there is a point. Regards, Zooko --- http://allmydata.org -- Tahoe, the Least-Authority Filesystem http://allmydata.com -- back up all your files for $5/month
participants (1)
-
zooko