[openstack-dev] Testing swift3

Pete Zaitcev zaitcev at redhat.com
Thu Apr 4 04:46:05 UTC 2013


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



More information about the OpenStack-dev mailing list