Strange test error

29 views
Skip to first unread message

Trurl Wrydan

unread,
Nov 20, 2012, 3:56:14 AM11/20/12
to pylons...@googlegroups.com
Hi there!

I am trying to run the tests in my pyramid project. I have not changed the tests.py file in any way and yet I am getting the error below. The project uses the reportlab package but it's not referenced by the tests. What can I do to work around this issue?

Thanks,
TW


(env) C:\Data\prodash\prodash>python setup.py test
running test
running egg_info
writing requirements to prodash.egg-info\requires.txt
writing prodash.egg-info\PKG-INFO
writing top-level names to prodash.egg-info\top_level.txt
writing dependency_links to prodash.egg-info\dependency_links.txt
writing entry points to prodash.egg-info\entry_points.txt
reading manifest file 'prodash.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'prodash.egg-info\SOURCES.txt'
running build_ext
Traceback (most recent call last):
  File "setup.py", line 46, in <module>
    """,
  File "c:\Python27\Lib\distutils\core.py", line 152, in setup
    dist.run_commands()
  File "c:\Python27\Lib\distutils\dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "c:\Python27\Lib\distutils\dist.py", line 972, in run_command
    cmd_obj.run()
  File "C:\Data\prodash\env\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\command\test.py", line 121, in run
  File "C:\Data\prodash\env\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\command\test.py", line 101, in with
_project_on_sys_path
  File "C:\Data\prodash\env\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\command\test.py", line 130, in run_
tests
  File "c:\Python27\Lib\unittest\main.py", line 94, in __init__
    self.parseArgs(argv)
  File "c:\Python27\Lib\unittest\main.py", line 149, in parseArgs
    self.createTests()
  File "c:\Python27\Lib\unittest\main.py", line 158, in createTests
    self.module)
  File "c:\Python27\Lib\unittest\loader.py", line 128, in loadTestsFromNames
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "c:\Python27\Lib\unittest\loader.py", line 103, in loadTestsFromName
    return self.loadTestsFromModule(obj)
  File "C:\Data\prodash\env\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\command\test.py", line 34, in loadT
estsFromModule
  File "c:\Python27\Lib\unittest\loader.py", line 103, in loadTestsFromName
    return self.loadTestsFromModule(obj)
  File "C:\Data\prodash\env\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\command\test.py", line 34, in loadT
estsFromModule
  File "c:\Python27\Lib\unittest\loader.py", line 122, in loadTestsFromName
    raise TypeError("don't know how to make test from: %s" % obj)
TypeError: don't know how to make test from: <reportlab.lib.styles.StyleSheet1 instance at 0x01F76918>

Trurl Wrydan

unread,
Nov 20, 2012, 9:09:55 AM11/20/12
to pylons...@googlegroups.com
This issue was fixed by specifying test_suite="prodash.tests" in setup.py. Thanks to wiggy on the #pyramid channel.
Reply all
Reply to author
Forward
0 new messages