Ok, I figured it out. Somewhere in 0.14.0 some new test code was added that needs newer features of mock. It now requires mock 0.8.0.
.hc On 04/17/2014 01:54 PM, Hans-Christoph Steiner wrote: > > I forgot to add, I just updated the Debian package for python-libcloud to > 0.13.3, that works fine on both Ubuntu/precise and Debian/testing. The test > suite should really work with any python version that is supported. > > https://packages.debian.org/sid/python-libcloud > > .hc > > On 04/17/2014 12:25 PM, Hans-Christoph Steiner wrote: >> >> I get the same on 0.14.0 and 0.14.1 on Ubuntu/precise and Debian/testing: >> >> libcloud_0.14.0 $ cp libcloud/test/secrets.py-dist libcloud/test/secrets.py >> libcloud_0.14.0 $ PYTHONPATH=. python2.7 setup.py test >> running test >> Traceback (most recent call last): >> File "setup.py", line 258, in <module> >> 'Programming Language :: Python :: Implementation :: PyPy']) >> File "/usr/lib/python2.7/distutils/core.py", line 152, in setup >> dist.run_commands() >> File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands >> self.run_command(cmd) >> File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command >> cmd_obj.run() >> File "setup.py", line 115, in run >> status = self._run_tests() >> File "setup.py", line 161, in _run_tests >> tests = TestLoader().loadTestsFromNames(testfiles) >> File "/usr/lib/python2.7/unittest/loader.py", line 128, in >> loadTestsFromNames >> suites = [self.loadTestsFromName(name, module) for name in names] >> File "/usr/lib/python2.7/unittest/loader.py", line 100, in >> loadTestsFromName >> parent, obj = obj, getattr(obj, part) >> AttributeError: 'module' object has no attribute 'test_connection' >> libcloud_0.14.0 $ PYTHONPATH=. python3.2 setup.py test >> running test >> Traceback (most recent call last): >> File "setup.py", line 258, in <module> >> 'Programming Language :: Python :: Implementation :: PyPy']) >> File "/usr/lib/python3.2/distutils/core.py", line 148, in setup >> dist.run_commands() >> File "/usr/lib/python3.2/distutils/dist.py", line 917, in run_commands >> self.run_command(cmd) >> File "/usr/lib/python3.2/distutils/dist.py", line 936, in run_command >> cmd_obj.run() >> File "setup.py", line 115, in run >> status = self._run_tests() >> File "setup.py", line 161, in _run_tests >> tests = TestLoader().loadTestsFromNames(testfiles) >> File "/usr/lib/python3.2/unittest/loader.py", line 132, in >> loadTestsFromNames >> suites = [self.loadTestsFromName(name, module) for name in names] >> File "/usr/lib/python3.2/unittest/loader.py", line 132, in <listcomp> >> suites = [self.loadTestsFromName(name, module) for name in names] >> File "/usr/lib/python3.2/unittest/loader.py", line 100, in >> loadTestsFromName >> parent, obj = obj, getattr(obj, part) >> AttributeError: 'module' object has no attribute 'test_connection' >> >> .hc >> >> >> On 04/17/2014 11:38 AM, Csaba Hoch wrote: >>>>> No, does libcloud now require pypy? >>> >>> I don't think so. I haven't installed pypy, but I can execute "PYTHONPATH=. >>> python setup.py test" as described in >>> https://libcloud.readthedocs.org/en/latest/testing.html. >>> >>> Two notes though: >>> >>> - I had to copy test/secrets.py-dist to test/secrets.py. >>> - test_list_records_success (libcloud.test.dns.test_zerigo.ZerigoTests) >>> failed on my machine. >>> >>> Csaba >>> >>> >>> On 2014 Apr 17, at 17:22, sebgoa <run...@gmail.com> wrote: >>> >>>> >>>> On Apr 17, 2014, at 5:19 PM, Hans-Christoph Steiner >>>> <h...@guardianproject.info> wrote: >>>> >>>>> >>>>> No, does libcloud now require pypy? >>>> >>>> I am not 100% sure, but if you want to run the complete tests I think it >>>> does. >>>> >>>>> >>>>> .hc >>>>> >>>>> On 04/17/2014 03:06 AM, sebgoa wrote: >>>>>> did you install pypy ? >>>>>> >>>>>> On Apr 16, 2014, at 6:10 PM, Hans-Christoph Steiner >>>>>> <h...@guardianproject.info> wrote: >>>>>> >>>>>>> (reposting since I'm not sure it went thru the first time) >>>>>>> >>>>>>> I'm working on updating the Debian python-libcloud package to the latest >>>>>>> version. When I run the included test suite on Ubuntu/precise/amd64 >>>>>>> with both >>>>>>> python 2.7.6 and python 3.2.3, I get this: >>>>>>> >>>>>>> running test >>>>>>> Traceback (most recent call last): >>>>>>> File "setup.py", line 258, in <module> >>>>>>> 'Programming Language :: Python :: Implementation :: PyPy']) >>>>>>> File "/usr/lib/python2.7/distutils/core.py", line 152, in setup >>>>>>> dist.run_commands() >>>>>>> File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands >>>>>>> self.run_command(cmd) >>>>>>> File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command >>>>>>> cmd_obj.run() >>>>>>> File "setup.py", line 115, in run >>>>>>> status = self._run_tests() >>>>>>> File "setup.py", line 161, in _run_tests >>>>>>> tests = TestLoader().loadTestsFromNames(testfiles) >>>>>>> File "/usr/lib/python2.7/unittest/loader.py", line 128, in >>>>>>> loadTestsFromNames >>>>>>> suites = [self.loadTestsFromName(name, module) for name in names] >>>>>>> File "/usr/lib/python2.7/unittest/loader.py", line 100, in >>>>>>> loadTestsFromName >>>>>>> parent, obj = obj, getattr(obj, part) >>>>>>> AttributeError: 'module' object has no attribute 'test_connection' >>>>>>> >>>>>>> Any ideas? >>>>>>> >>>>>>> .hc >>>>>>> >>>>>>> -- >>>>>>> PGP fingerprint: 5E61 C878 0F86 295C E17D 8677 9F0F E587 374B BE81 >>>>>> >>>>> >>>>> -- >>>>> PGP fingerprint: 5E61 C878 0F86 295C E17D 8677 9F0F E587 374B BE81 >>>> >>> >> > -- PGP fingerprint: 5E61 C878 0F86 295C E17D 8677 9F0F E587 374B BE81