[openstack-dev] Testing swift3
Chmouel Boudjnah
chmouel at chmouel.com
Thu Apr 4 07:03:41 UTC 2013
I guess you need to python setup.py develop before running the tests.
(obv this can be improved with a sys.path.append("..") fix in __init__).
Chmouel.
On Thu, Apr 4, 2013 at 6:46 AM, Pete Zaitcev <zaitcev at redhat.com> wrote:
> Quick question in case anyone knows:
>
> Normally I test eveything by doing something like this:
>
> (cd test/unit && nosetests --exe)
>
> But in swift3 this yields an error:
>
> ERROR: Failure: ImportError (No module named swift3)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/usr/lib/python2.7/site-packages/nose/loader.py", line 390, in loadTestsFromName
> addr.filename, addr.module)
> File "/usr/lib/python2.7/site-packages/nose/importer.py", line 39, in importFromPath
> return self.importFromDir(dir_path, fqname)
> File "/usr/lib/python2.7/site-packages/nose/importer.py", line 86, in importFromDir
> mod = load_module(part_fqname, fh, filename, desc)
> File "/q/zaitcev/hail/swift3-test/swift3/test/unit/test_swift3.py", line 28, in <module>
> from swift3 import middleware as swift3
> ImportError: No module named swift3
>
> The code seems not different from what we have in Swift proper.
> What could be going on?
>
> -- Pete
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
More information about the OpenStack-dev
mailing list