Skip to content

Instantly share code, notes, and snippets.

@hpk42
Created June 19, 2012 19:49
Show Gist options
  • Save hpk42/2956148 to your computer and use it in GitHub Desktop.
Save hpk42/2956148 to your computer and use it in GitHub Desktop.
(1)hpk@t2:~/p/execnet$ detox -e py31 testing/test_basics.py
GLOB sdist-make: /home/hpk/p/execnet/setup.py
py31 sdist-reinst: /home/hpk/p/execnet/.tox/dist/execnet-1.1.dev2.zip
py31 runtests: commands[0]
ERROR: invocation failed, logfile: /home/hpk/p/execnet/.tox/py31/log/py31-23.log
ERROR: actionid=py31
msg=runtests
cmd=/home/hpk/p/execnet/testing$ /home/hpk/p/execnet/.tox/py31/bin/py.test -rsfxX --junitxml=/home/hpk/p/execnet/.tox/py31/log/junit-py31.xml test_basics.py
env={'GNOME_DESKTOP_SESSION_ID': 'this-is-deprecated', 'LC_CTYPE': 'en_US.UTF-8', 'XDG_CURRENT_DESKTOP': 'Unity', 'TMPDIR': '/home/hpk/tmp', 'LOGNAME': 'hpk', 'USER': 'hpk', 'PATH': '/home/hpk/p/execnet/.tox/py31/bin:/home/hpk/venv/1/bin:/usr/local/bin:/home/hpk/homebrew/bin:/home/hpk/homebrew/Cellar/python/2.6.4/bin:/home/hpk/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games', 'GNOME_KEYRING_CONTROL': '/tmp/keyring-Aj9XT7', 'PS1': '(1)\\[\\e]0;\\u@\\h: \\w\\a\\]${debian_chroot:+($debian_chroot)}\\u@\\h:\\w\\$ ', 'DISPLAY': ':0', 'SSH_AGENT_PID': '1821', 'LANG': 'en_US.UTF-8', 'TERM': 'xterm', 'SHELL': '/bin/bash', 'XDG_SESSION_PATH': '/org/freedesktop/DisplayManager/Session0', 'XDG_SESSION_COOKIE': 'd416323864531384c259d1020000000d-1339912654.897155-1860339399', 'LANGUAGE': 'en_US:en', 'SESSION_MANAGER': 'local/t2:@/tmp/.ICE-unix/1784,unix/t2:/tmp/.ICE-unix/1784', 'SHLVL': '1', 'MANDATORY_PATH': '/usr/share/gconf/ubuntu.mandatory.path', 'COMPIZ_CONFIG_PROFILE': 'ubuntu', 'WINDOWID': '35651590', 'EDITOR': 'vim', 'GPG_AGENT_INFO': '/tmp/keyring-Aj9XT7/gpg:0:1', 'HOME': '/home/hpk', 'WORKON_HOME': '/home/hpk/venv', 'VIRTUALENVWRAPPER_HOOK_DIR': '/home/hpk/venv', 'PYTHONPATH': '/home/hpk/.pythonbrew/lib', 'SSH_AUTH_SOCK': '/tmp/keyring-Aj9XT7/ssh', 'VIRTUAL_ENV': '/home/hpk/venv/1', 'GDMSESSION': 'ubuntu', 'DEFAULTS_PATH': '/usr/share/gconf/ubuntu.default.path', 'PIP_VIRTUALENV_BASE': '/home/hpk/venv', 'LC_MESSAGES': 'en_US.UTF-8', 'XDG_SEAT_PATH': '/org/freedesktop/DisplayManager/Seat0', 'XDG_CONFIG_DIRS': '/etc/xdg/xdg-ubuntu:/etc/xdg', 'LESSOPEN': '| /usr/bin/lesspipe %s', 'DBUS_SESSION_BUS_ADDRESS': 'unix:abstract=/tmp/dbus-4yokKoo0uT,guid=c0f05890c6de85639253eb1b00000020', '_': '/home/hpk/venv/1/bin/detox', 'XAUTHORITY': '/home/hpk/.Xauthority', 'VIRTUALENVWRAPPER_PROJECT_FILENAME': '.project', 'DESKTOP_SESSION': 'ubuntu', 'LESSCLOSE': '/usr/bin/lesspipe %s %s', 'GNOME_KEYRING_PID': '1773', 'UBUNTU_MENUPROXY': 'libappmenu.so', 'PYTHONSTARTUP': '/home/hpk/python/start.py', 'OLDPWD': '/home/hpk/p/pytest-cache', 'GTK_MODULES': 'canberra-gtk-module:canberra-gtk-module', 'XDG_DATA_DIRS': '/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/', 'PWD': '/home/hpk/p/execnet', 'PIP_DOWNLOAD_CACHE': '/home/hpk/.tox/pipcache', 'COLORTERM': 'gnome-terminal', 'VIRTUALENVWRAPPER_LOG_DIR': '/home/hpk/venv', 'LS_COLORS': 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:', 'LC_COLLATE': 'en_US.UTF-8'}
============================= test session starts ==============================
platform linux3 -- Python 3.1.4 -- pytest-2.2.5.dev2
gateway test setup scope: session
execnet: /home/hpk/p/execnet/execnet/__init__.py -- 1.1.dev2
collecting ... collected 74 items
test_basics.py ......FFFFFFsF......s.......s........s.......s........................s...
=================================== FAILURES ===================================
____________________ test_subprocess_interaction[python3.3] ____________________
anypython = local('/home/hpk/bin/python3.3')
def test_subprocess_interaction(anypython):
line = gateway_io.popen_bootstrapline
compile(line, 'xyz', 'exec')
args = [str(anypython), '-c', line]
popen = subprocess.Popen(args, bufsize=0, universal_newlines=True,
stdin=subprocess.PIPE, stdout=subprocess.PIPE)
def send(line):
popen.stdin.write(line)
if sys.version_info > (3,0) or sys.platform.startswith("java"):
popen.stdin.flush()
def receive():
return popen.stdout.readline()
try:
source = py.code.Source(read_write_loop, "read_write_loop()")
repr_source = repr(str(source)) + "\n"
sendline = repr_source
send(sendline)
> s = receive()
test_basics.py:53:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
def receive():
> return popen.stdout.readline()
E AttributeError: '_io.FileIO' object has no attribute 'read1'
test_basics.py:46: AttributeError
------------------------------- Captured stderr --------------------------------
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "<string>", line 14, in <module>
File "<string>", line 4, in read_write_loop
BrokenPipeError: [Errno 32] Broken pipe
Exception BrokenPipeError: BrokenPipeError(32, 'Broken pipe') in <_io.TextIOWrapper name='<stdout>' mode='w' encoding='UTF-8'> ignored
____________________ test_subprocess_interaction[python3.2] ____________________
anypython = local('/home/hpk/bin/python3.2')
def test_subprocess_interaction(anypython):
line = gateway_io.popen_bootstrapline
compile(line, 'xyz', 'exec')
args = [str(anypython), '-c', line]
popen = subprocess.Popen(args, bufsize=0, universal_newlines=True,
stdin=subprocess.PIPE, stdout=subprocess.PIPE)
def send(line):
popen.stdin.write(line)
if sys.version_info > (3,0) or sys.platform.startswith("java"):
popen.stdin.flush()
def receive():
return popen.stdout.readline()
try:
source = py.code.Source(read_write_loop, "read_write_loop()")
repr_source = repr(str(source)) + "\n"
sendline = repr_source
send(sendline)
> s = receive()
test_basics.py:53:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
def receive():
> return popen.stdout.readline()
E AttributeError: '_io.FileIO' object has no attribute 'read1'
test_basics.py:46: AttributeError
------------------------------- Captured stderr --------------------------------
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "<string>", line 14, in <module>
File "<string>", line 4, in read_write_loop
IOError: [Errno 32] Broken pipe
Exception IOError: IOError(32, 'Broken pipe') in <_io.TextIOWrapper name='<stdout>' mode='w' encoding='UTF-8'> ignored
____________________ test_subprocess_interaction[python2.4] ____________________
anypython = local('/home/hpk/bin/python2.4')
def test_subprocess_interaction(anypython):
line = gateway_io.popen_bootstrapline
compile(line, 'xyz', 'exec')
args = [str(anypython), '-c', line]
popen = subprocess.Popen(args, bufsize=0, universal_newlines=True,
stdin=subprocess.PIPE, stdout=subprocess.PIPE)
def send(line):
popen.stdin.write(line)
if sys.version_info > (3,0) or sys.platform.startswith("java"):
popen.stdin.flush()
def receive():
return popen.stdout.readline()
try:
source = py.code.Source(read_write_loop, "read_write_loop()")
repr_source = repr(str(source)) + "\n"
sendline = repr_source
send(sendline)
> s = receive()
test_basics.py:53:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
def receive():
> return popen.stdout.readline()
E AttributeError: '_io.FileIO' object has no attribute 'read1'
test_basics.py:46: AttributeError
------------------------------- Captured stderr --------------------------------
Traceback (most recent call last):
File "<string>", line 1, in ?
File "<string>", line 14, in ?
File "<string>", line 4, in read_write_loop
IOError: [Errno 32] Broken pipe
____________________ test_subprocess_interaction[python2.5] ____________________
anypython = local('/home/hpk/bin/python2.5')
def test_subprocess_interaction(anypython):
line = gateway_io.popen_bootstrapline
compile(line, 'xyz', 'exec')
args = [str(anypython), '-c', line]
popen = subprocess.Popen(args, bufsize=0, universal_newlines=True,
stdin=subprocess.PIPE, stdout=subprocess.PIPE)
def send(line):
popen.stdin.write(line)
if sys.version_info > (3,0) or sys.platform.startswith("java"):
popen.stdin.flush()
def receive():
return popen.stdout.readline()
try:
source = py.code.Source(read_write_loop, "read_write_loop()")
repr_source = repr(str(source)) + "\n"
sendline = repr_source
send(sendline)
> s = receive()
test_basics.py:53:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
def receive():
> return popen.stdout.readline()
E AttributeError: '_io.FileIO' object has no attribute 'read1'
test_basics.py:46: AttributeError
------------------------------- Captured stderr --------------------------------
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "<string>", line 14, in <module>
File "<string>", line 4, in read_write_loop
IOError: [Errno 32] Broken pipe
____________________ test_subprocess_interaction[python2.6] ____________________
anypython = local('/home/hpk/bin/python2.6')
def test_subprocess_interaction(anypython):
line = gateway_io.popen_bootstrapline
compile(line, 'xyz', 'exec')
args = [str(anypython), '-c', line]
popen = subprocess.Popen(args, bufsize=0, universal_newlines=True,
stdin=subprocess.PIPE, stdout=subprocess.PIPE)
def send(line):
popen.stdin.write(line)
if sys.version_info > (3,0) or sys.platform.startswith("java"):
popen.stdin.flush()
def receive():
return popen.stdout.readline()
try:
source = py.code.Source(read_write_loop, "read_write_loop()")
repr_source = repr(str(source)) + "\n"
sendline = repr_source
send(sendline)
> s = receive()
test_basics.py:53:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
def receive():
> return popen.stdout.readline()
E AttributeError: '_io.FileIO' object has no attribute 'read1'
test_basics.py:46: AttributeError
------------------------------- Captured stderr --------------------------------
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "<string>", line 14, in <module>
File "<string>", line 4, in read_write_loop
IOError: [Errno 32] Broken pipe
____________________ test_subprocess_interaction[python2.7] ____________________
anypython = local('/home/hpk/bin/python2.7')
def test_subprocess_interaction(anypython):
line = gateway_io.popen_bootstrapline
compile(line, 'xyz', 'exec')
args = [str(anypython), '-c', line]
popen = subprocess.Popen(args, bufsize=0, universal_newlines=True,
stdin=subprocess.PIPE, stdout=subprocess.PIPE)
def send(line):
popen.stdin.write(line)
if sys.version_info > (3,0) or sys.platform.startswith("java"):
popen.stdin.flush()
def receive():
return popen.stdout.readline()
try:
source = py.code.Source(read_write_loop, "read_write_loop()")
repr_source = repr(str(source)) + "\n"
sendline = repr_source
send(sendline)
> s = receive()
test_basics.py:53:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
def receive():
> return popen.stdout.readline()
E AttributeError: '_io.FileIO' object has no attribute 'read1'
test_basics.py:46: AttributeError
------------------------------- Captured stderr --------------------------------
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "<string>", line 14, in <module>
File "<string>", line 4, in read_write_loop
IOError: [Errno 32] Broken pipe
_____________________ test_subprocess_interaction[jython] ______________________
anypython = local('/home/hpk/bin/jython')
def test_subprocess_interaction(anypython):
line = gateway_io.popen_bootstrapline
compile(line, 'xyz', 'exec')
args = [str(anypython), '-c', line]
popen = subprocess.Popen(args, bufsize=0, universal_newlines=True,
stdin=subprocess.PIPE, stdout=subprocess.PIPE)
def send(line):
popen.stdin.write(line)
if sys.version_info > (3,0) or sys.platform.startswith("java"):
popen.stdin.flush()
def receive():
return popen.stdout.readline()
try:
source = py.code.Source(read_write_loop, "read_write_loop()")
repr_source = repr(str(source)) + "\n"
sendline = repr_source
send(sendline)
> s = receive()
test_basics.py:53:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
def receive():
> return popen.stdout.readline()
E AttributeError: '_io.FileIO' object has no attribute 'read1'
test_basics.py:46: AttributeError
----- generated xml file: /home/hpk/p/execnet/.tox/py31/log/junit-py31.xml -----
=========================== short test summary info ============================
SKIP [6] /home/hpk/p/execnet/conftest.py:119: no pypy-c found
FAIL test_basics.py::test_subprocess_interaction[python3.3]
FAIL test_basics.py::test_subprocess_interaction[python3.2]
FAIL test_basics.py::test_subprocess_interaction[python2.4]
FAIL test_basics.py::test_subprocess_interaction[python2.5]
FAIL test_basics.py::test_subprocess_interaction[python2.6]
FAIL test_basics.py::test_subprocess_interaction[python2.7]
FAIL test_basics.py::test_subprocess_interaction[jython]
=============== 7 failed, 61 passed, 6 skipped in 11.66 seconds ================
ERROR: InvocationError: /home/hpk/p/execnet/.tox/py31/bin/py.test -rsfxX --junitxml=/home/hpk/p/execnet/.tox/py31/log/junit-py31.xml test_basics.py (see /home/hpk/p/execnet/.tox/py31/log/py31-23.log)
___________________________________________ summary ____________________________________________
ERROR: py31: commands failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment