google-code-export / s3ql

Automatically exported from code.google.com/p/s3ql
0 stars 0 forks source link

Make test errors more helpful #377

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If there is a problem loading _deltadumpy.so, tests currently fail with a 
rather unhelpful:

[...]
  File "/home/ec2-user/s3ql-1.12/unittest2-0.5.1-py2.7.egg/unittest2/loader.py", line 148, in loadTestsFromNames
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/home/ec2-user/s3ql-1.12/unittest2-0.5.1-py2.7.egg/unittest2/loader.py", line 123, in loadTestsFromName
    return self.loadTestsFromModule(obj)
  File "setup.py", line 288, in loadTestsFromModule
    tests.append(self.loadTestsFromName(submodule))
  File "/home/ec2-user/s3ql-1.12/unittest2-0.5.1-py2.7.egg/unittest2/loader.py", line 120, in loadTestsFromName
    parent, obj = obj, getattr(obj, part)
AttributeError: 'module' object has no attribute 't1_dump'

We should do better than that.

Original issue reported on code.google.com by brueckma...@gmail.com on 23 Nov 2012 at 4:08

GoogleCodeExporter commented 9 years ago

Original comment by Nikolaus@rath.org on 23 Nov 2012 at 4:09

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 70f18d292655.

Original comment by Nikolaus@rath.org on 23 Jan 2013 at 5:35