Yeah, that's a pretty common problem :)

I will modify "test" target in setup.py to check the modification time of
secrets.py-dist and secrets.py and print out a warning if secrets.py-dist
mtime > secrets.py mtime

On Sat, Apr 21, 2012 at 9:45 AM, Jay Doane <j...@almery.com> wrote:

> Thanks, that fixed it. I had an old secrets.py file lying around.
>
> Jay
>
> 2012/4/20 Tomaž Muraus <to...@apache.org>
>
> > It should work, did you copy the new secrets.py file over?
> >
> > cp test/secrets.py-dist test/secrets.py
> >
> > On Fri, Apr 20, 2012 at 1:35 PM, Jay Doane <j...@almery.com> wrote:
> >
> > > At head of trunk, and I'm seeing the error message below.  However, I'm
> > > able to run individual tests fine.
> > >
> > > Anybody else seeing this?
> > >
> > > jay@alu:~/proj/genforma/libcloud$ python setup.py test
> > > /Users/jay/Library/Python/2.6/site-packages/Crypto/Util/randpool.py:40:
> > > RandomPool_DeprecationWarning: This application uses RandomPool, which
> is
> > > BROKEN in older releases.  See http://www.pycrypto.org/randpool-broken
> > >  RandomPool_DeprecationWarning)
> > > running test
> > > Traceback (most recent call last):
> > >  File "setup.py", line 250, in <module>
> > >    'Programming Language :: Python :: Implementation :: PyPy'])
> > >  File
> > >
> > >
> >
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/core.py",
> > > line 152, in setup
> > >    dist.run_commands()
> > >  File
> > >
> > >
> >
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py",
> > > line 987, in run_commands
> > >    self.run_command(cmd)
> > >  File
> > >
> > >
> >
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py",
> > > line 1007, in run_command
> > >    cmd_obj.run()
> > >  File "setup.py", line 80, in run
> > >    status = self._run_tests()
> > >  File "setup.py", line 118, in _run_tests
> > >    tests = TestLoader().loadTestsFromNames(testfiles)
> > >  File
> > >
> > >
> >
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/unittest.py",
> > > line 613, in loadTestsFromNames
> > >    suites = [self.loadTestsFromName(name, module) for name in names]
> > >  File
> > >
> > >
> >
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/unittest.py",
> > > line 584, in loadTestsFromName
> > >    parent, obj = obj, getattr(obj, part)
> > > AttributeError: 'module' object has no attribute 'test_joyent'
> > >
> > > Thanks,
> > > Jay
> > >
> >
>

Reply via email to