Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

detox fails because tests hardcode profile file names #6

Closed
mgedmin opened this issue May 13, 2015 · 0 comments
Closed

detox fails because tests hardcode profile file names #6

mgedmin opened this issue May 13, 2015 · 0 comments

Comments

@mgedmin
Copy link
Owner

mgedmin commented May 13, 2015

mg@platonas: ~/src/projects/profilehooks [git:master $=] $ detox
py26 create: /home/mg/src/profilehooks/.tox/py26
GLOB sdist-make: /home/mg/src/profilehooks/setup.py
py27 create: /home/mg/src/profilehooks/.tox/py27
py32 create: /home/mg/src/profilehooks/.tox/py32
py33 create: /home/mg/src/profilehooks/.tox/py33
py34 create: /home/mg/src/profilehooks/.tox/py34
pypy create: /home/mg/src/profilehooks/.tox/pypy
py26 inst: /home/mg/src/profilehooks/.tox/dist/profilehooks-1.8.1.dev0.zip
py27 inst: /home/mg/src/profilehooks/.tox/dist/profilehooks-1.8.1.dev0.zip
py32 inst: /home/mg/src/profilehooks/.tox/dist/profilehooks-1.8.1.dev0.zip
py33 inst: /home/mg/src/profilehooks/.tox/dist/profilehooks-1.8.1.dev0.zip
py34 inst: /home/mg/src/profilehooks/.tox/dist/profilehooks-1.8.1.dev0.zip
py26 runtests: PYTHONHASHSEED='3440945571'       
py26 runtests: commands[0] | python test_profilehooks.py
py27 runtests: PYTHONHASHSEED='3440945571'       
py27 runtests: commands[0] | python test_profilehooks.py
ERROR: invocation failed (exit code 1), logfile: /home/mg/src/profilehooks/.tox/py27/log/py27-2.log
ERROR: actionid: py27
msg: runtests
cmdargs: [local('/home/mg/src/profilehooks/.tox/py27/bin/python'), 'test_profilehooks.py']
env: {'PATH': '/home/mg/src/profilehooks/.tox/py27/bin:/home/mg/src/profilehooks/.tox/py26/bin:/home/mg/bin:/home/mg/.venv/bin:/home/mg/.local/bin:/home/mg/bin:/home/mg/bin/local:/home/mg/.venv/bin:/home/mg/.local/bin:/home/mg/android/platform-tools:/home/mg/android/tools:/usr/lib/ccache:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games', 'VIRTUAL_ENV': '/home/mg/src/profilehooks/.tox/py27', 'PYTHONHASHSEED': '3440945571'}

..E..............
======================================================================
ERROR: test_coverage (__main__.TestCoverageWithHotShot)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_profilehooks.py", line 102, in test_coverage
    run_exitfuncs()
  File "test_profilehooks.py", line 37, in run_exitfuncs
    fn(*args, **kw)
  File "/home/mg/src/profilehooks/profilehooks.py", line 520, in atexit
    reader = hotshot.log.LogReader(self.logfilename)
  File "/usr/lib/python2.7/hotshot/log.py", line 30, in __init__
    self._reader = _hotshot.logreader(logfn)
IOError: [Errno 2] No such file or directory: 'sample_fn.cprof'

----------------------------------------------------------------------
Ran 17 tests in 0.154s

FAILED (errors=1)

ERROR: InvocationError: /home/mg/src/profilehooks/.tox/py27/bin/python test_profilehooks.py (see /home/mg/src/profilehooks/.tox/py27/log/py27-2.log)
py34 runtests: PYTHONHASHSEED='3440945571'                  
py34 runtests: commands[0] | python test_profilehooks.py
py33 runtests: PYTHONHASHSEED='3440945571'
py33 runtests: commands[0] | python test_profilehooks.py
py32 runtests: PYTHONHASHSEED='3440945571'
py32 runtests: commands[0] | python test_profilehooks.py
pypy inst: /home/mg/src/profilehooks/.tox/dist/profilehooks-1.8.1.dev0.zip
pypy runtests: PYTHONHASHSEED='3440945571'
pypy runtests: commands[0] | python test_profilehooks.py
______________________________________________________________________ summary _______________________________________________________________________
  py26: commands succeeded
ERROR:   py27: commands failed
  py32: commands succeeded
  py33: commands succeeded
  py34: commands succeeded
  pypy: commands succeeded

[14s, exited with 1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant