Buildutils pytest runner doesn't work with latest pytest - missing py.test.Config object?

Issue #395 on hold
Victor Hooi
created an issue


I'm trying to use buildutils 0.3 with pytest 2.4.2:

specifically the pytest runner they provide.

(Yes, I'm aware of - however, we specifically want to use buildutils).

I've added the following to my setup.cfg:

command_packages = buildutils.pytest_command

However, when I try to actually run it, I get an error about a missing py.test.Config object?

$ python pytest
running pytest
Traceback (most recent call last):
  File "", line 18, in <module>
  File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/", line 152, in setup
  File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/", line 953, in run_commands
  File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/", line 972, in run_command
  File "/Users/victor/.venvs/datus/lib/python2.7/site-packages/buildutils/pytest_command/", line 106, in run
    config, args = py.test.Config.parse(argv)
  File "/Users/victor/.venvs/datus/lib/python2.7/site-packages/py/", line 159, in __getattribute__
    return getattr(getmod(), name)
AttributeError: 'module' object has no attribute 'Config'

I know buildutils hasn't been touched in a while, however, has something changed in the py or py.test API that's broken this?

Or am I doing something else incorrectly?

Cheers, Victor

Comments (6)

  1. Anatoly Bubenkov

    Buildutils doesn't seem to be supported ATM (last pypi release is done on 2007) and most likely it's a bug in their pytest command implementation i would strongly suggest you to use distutils integration, or better integrate not pytest directly but tox runner

  2. Log in to comment