OK what if you just run it via "py.test" ?    the distutils/setuptools
approach is so often problematic.

issue appeared in 0.9.6, not 0.9.5 ?




On 7/9/14, 3:01 AM, Jason Newton wrote:
> Yes, it seems to me like it gets to the end and then commits suicide
> just before returning, but I wasn't able to make heads or tails.
>
> Nothing fancy to running it - just unpack the pypi archive, and run
> python setup.py test.  I first ran into it when updating the opensuse
> package from 0.8.5 but it's reproducable inside the chroot jail OBS
> creates as well as on my desktop.
>
> On Tuesday, July 8, 2014 3:43:02 PM UTC-7, Michael Bayer wrote:
>
>     how are you running them?
>
>     it isn't reporting any "failure", this seems like it's finding a
>     bad test case.   do you have any test.py type stuff it might be
>     hitting?
>
>
>
>     On 7/8/14, 5:56 PM, Jason Newton wrote:
>>     Any thoughts on why the unit testing is failing?
>>
>>     platform linux2 -- Python 2.7.6 -- py-1.4.20 -- pytest-2.5.2 --
>>     /usr/bin/python
>>
>>     ....
>>
>>     ========================================================== 5776
>>     passed, 688 skipped in 139.77 seconds
>>     ===========================================================
>>     Traceback (most recent call last):
>>       File "setup.py", line 165, in <module>
>>         run_setup(True)
>>       File "setup.py", line 146, in run_setup
>>         **kwargs
>>       File "/usr/lib64/python2.7/distutils/core.py", line 152, in setup
>>         dist.run_commands()
>>       File "/usr/lib64/python2.7/distutils/dist.py", line 953, in
>>     run_commands
>>         self.run_command(cmd)
>>       File "/usr/lib64/python2.7/distutils/dist.py", line 972, in
>>     run_command
>>         cmd_obj.run()
>>       File
>>     "/usr/lib/python2.7/site-packages/setuptools/command/test.py",
>>     line 146, in run
>>         self.with_project_on_sys_path(self.run_tests)
>>       File
>>     "/usr/lib/python2.7/site-packages/setuptools/command/test.py",
>>     line 127, in with_project_on_sys_path
>>         func()
>>       File
>>     "/usr/lib/python2.7/site-packages/setuptools/command/test.py",
>>     line 167, in run_tests
>>         testRunner=self._resolve_as_ep(self.test_runner),
>>       File "/usr/lib64/python2.7/unittest/main.py", line 94, in __init__
>>         self.parseArgs(argv)
>>       File "/usr/lib64/python2.7/unittest/main.py", line 149, in
>>     parseArgs
>>         self.createTests()
>>       File "/usr/lib64/python2.7/unittest/main.py", line 158, in
>>     createTests
>>         self.module)
>>       File "/usr/lib64/python2.7/unittest/loader.py", line 130, in
>>     loadTestsFromNames
>>         suites = [self.loadTestsFromName(name, module) for name in names]
>>       File "/usr/lib64/python2.7/unittest/loader.py", line 122, in
>>     loadTestsFromName
>>         (obj, test))
>>     TypeError: calling <function main at 0x2d3b500> returned 0, not a
>>     test
>>
>>
>>     -Jason
>>     -- 
>>     You received this message because you are subscribed to the
>>     Google Groups "sqlalchemy" group.
>>     To unsubscribe from this group and stop receiving emails from it,
>>     send an email to [email protected] <javascript:>.
>>     To post to this group, send email to [email protected]
>>     <javascript:>.
>>     Visit this group at http://groups.google.com/group/sqlalchemy
>>     <http://groups.google.com/group/sqlalchemy>.
>>     For more options, visit https://groups.google.com/d/optout
>>     <https://groups.google.com/d/optout>.
>
> -- 
> You received this message because you are subscribed to the Google
> Groups "sqlalchemy" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to [email protected]
> <mailto:[email protected]>.
> To post to this group, send email to [email protected]
> <mailto:[email protected]>.
> Visit this group at http://groups.google.com/group/sqlalchemy.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to