unit tests failing on 0.9.6

20 views
Skip to first unread message

Jason Newton

unread,
Jul 8, 2014, 5:56:18 PM7/8/14
to sqlal...@googlegroups.com
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

Mike Bayer

unread,
Jul 8, 2014, 6:43:02 PM7/8/14
to sqlal...@googlegroups.com
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?
--
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 sqlalchemy+...@googlegroups.com.
To post to this group, send email to sqlal...@googlegroups.com.
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Jason Newton

unread,
Jul 9, 2014, 3:01:13 AM7/9/14
to sqlal...@googlegroups.com
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.

Mike Bayer

unread,
Jul 9, 2014, 9:52:31 AM7/9/14
to sqlal...@googlegroups.com
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 ?

Mike Bayer

unread,
Jul 9, 2014, 4:56:02 PM7/9/14
to sqlal...@googlegroups.com
OK this is fixed now, I hope.

Jason Newton

unread,
Jul 9, 2014, 5:34:41 PM7/9/14
to sqlal...@googlegroups.com
Works for me with doing py.test, I can live with it.


--
You received this message because you are subscribed to a topic in the Google Groups "sqlalchemy" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sqlalchemy/-An7vTSq6xo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sqlalchemy+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages