Fix py version in order to run tests
ClosedPublic

Authored by mkrizek on Jul 31 2014, 3:31 PM.

Details

Summary

While working on buildbot configuration that would run our test suites for various taskotron subprojects I found out that running 'py.test testing/' in newly created virtualenv throws following exception:

Traceback (most recent call last):

File "/home/mkrizek/devel/buildbot/slave/libtaskotron-builder/build/env_taskotron/bin/py.test", line 5, in <module>
  from pkg_resources import load_entry_point
File "/home/mkrizek/devel/buildbot/slave/libtaskotron-builder/build/env_taskotron/lib/python2.7/site-packages/pkg_resources.py", line 2829, in <module>
  working_set = WorkingSet._build_master()
File "/home/mkrizek/devel/buildbot/slave/libtaskotron-builder/build/env_taskotron/lib/python2.7/site-packages/pkg_resources.py", line 451, in _build_master
  return cls._build_from_requirements(__requires__)
File "/home/mkrizek/devel/buildbot/slave/libtaskotron-builder/build/env_taskotron/lib/python2.7/site-packages/pkg_resources.py", line 464, in _build_from_requirements
  dists = ws.resolve(reqs, Environment())
File "/home/mkrizek/devel/buildbot/slave/libtaskotron-builder/build/env_taskotron/lib/python2.7/site-packages/pkg_resources.py", line 639, in resolve
  raise DistributionNotFound(req)

pkg_resources.DistributionNotFound: py>=1.4.22

Test Plan

Create a new virtualenv and run 'py.test testing/'

Diff Detail

Repository
rLTRN libtaskotron
Lint
Lint Skipped
Unit
Unit Tests Skipped
mkrizek retitled this revision from to Fix py version in order to run tests.Jul 31 2014, 3:31 PM
mkrizek updated this object.
mkrizek edited the test plan for this revision. (Show Details)
mkrizek added a reviewer: kparal.
This revision is now accepted and ready to land.Jul 31 2014, 3:43 PM
mkrizek closed this revision.Jul 31 2014, 3:50 PM
mkrizek updated this revision to Diff 580.

Closed by commit rLTRN2af9ac7bc7b3 (authored by @mkrizek).