Skip to content

Instantly share code, notes, and snippets.

@UshF
Created December 2, 2013 17:33
Show Gist options
  • Save UshF/7753214 to your computer and use it in GitHub Desktop.
Save UshF/7753214 to your computer and use it in GitHub Desktop.
python-2.7 virtual env. Running tox unittests fails for swsync
(swiftsync)[ush@rabelais swiftsync (master)]$ tox
GLOB sdist-make: /home/ush/ATTWorkspace/GitRepos/swiftsync/swiftsync/setup.py
py27 create: /home/ush/ATTWorkspace/GitRepos/swiftsync/swiftsync/.tox/py27
py27 installdeps: -r/home/ush/ATTWorkspace/GitRepos/swiftsync/swiftsync/tools/pip-requires, -r/home/ush/ATTWorkspace/GitRepos/swiftsync/swiftsync/tools/test-requires
py27 sdist-inst: /home/ush/ATTWorkspace/GitRepos/swiftsync/swiftsync/.tox/dist/swsync-4523c3a.zip
py27 runtests: commands[0]
running testr
running=${PYTHON:-python} -m subunit.run discover -t ./ ./tests/units/ --list
running=${PYTHON:-python} -m subunit.run discover -t ./ ./tests/units/ --load-list /tmp/tmpn0J1kZ
running=${PYTHON:-python} -m subunit.run discover -t ./ ./tests/units/ --load-list /tmp/tmpfqhkh_
running=${PYTHON:-python} -m subunit.run discover -t ./ ./tests/units/ --load-list /tmp/tmpN8igZG
running=${PYTHON:-python} -m subunit.run discover -t ./ ./tests/units/ --load-list /tmp/tmpbGc3tR
running=${PYTHON:-python} -m subunit.run discover -t ./ ./tests/units/ --load-list /tmp/tmpv4HYxr
running=${PYTHON:-python} -m subunit.run discover -t ./ ./tests/units/ --load-list /tmp/tmpkFvQtp
running=${PYTHON:-python} -m subunit.run discover -t ./ ./tests/units/ --load-list /tmp/tmp4XUewJ
running=${PYTHON:-python} -m subunit.run discover -t ./ ./tests/units/ --load-list /tmp/tmpI7qEDd
WARNING:root:Unable to create account account_25ML1H5A
WARNING:root:Unable to create an user in account account1_id
WARNING:root:Unable to create container container_47YQHH9X due to Fake err msg
WARNING:root:Unable to put object file_name_K0V4BLKZ in container container_a
Ran 58 tests in 1.029s
PASSED (id=0)
flake8 create: /home/ush/ATTWorkspace/GitRepos/swiftsync/swiftsync/.tox/flake8
flake8 installdeps: -r/home/ush/ATTWorkspace/GitRepos/swiftsync/swiftsync/tools/pip-requires, -r/home/ush/ATTWorkspace/GitRepos/swiftsync/swiftsync/tools/test-requires
flake8 sdist-inst: /home/ush/ATTWorkspace/GitRepos/swiftsync/swiftsync/.tox/dist/swsync-4523c3a.zip
flake8 runtests: commands[0]
swsync/accounts.py:67:41: E901 SyntaxError: invalid syntax
return {name.strip() for name in tenantsfile.readlines()}
^
tests/units/fakes.py:79:20: E901 SyntaxError: invalid syntax
return {'foo1', 'foo2', 'foo3'}
^
tests/functional/test_syncer.py:167:25: E901 SyntaxError: invalid syntax
return {k: v for k, v in d[0].iteritems()
^
tests/functional/test_syncer_filter.py:170:25: E901 SyntaxError: invalid syntax
return {k: v for k, v in d[0].iteritems()
^
ERROR: InvocationError: '/home/ush/ATTWorkspace/GitRepos/swiftsync/swiftsync/.tox/flake8/bin/flake8 --show-source swsync bin setup.py tests'
__________________________________________________________ summary __________________________________________________________
py27: commands succeeded
ERROR: flake8: commands failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment