This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import xmlrpclib | |
import pytest | |
class BugZillaInteg(object): | |
def get_bug_status(self, bugid): | |
"Returns the status of the bug with id bugid" | |
try: | |
bug = self.bugzilla.getbugsimple(bugid) | |
status = str(bug).split(None, 2)[1] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(1)hpk@t2:~/tmp/eanxgeek$ py.test --bugzilla test_nothin.py | |
=========================================== test session starts =========================================== | |
platform linux2 -- Python 2.7.3 -- pytest-2.2.5.dev1 | |
collected 1 items | |
test_nothin.py A | |
======================================= 1 analysed in 0.01 seconds ======================================== | |
(1)hpk@t2:~/tmp/eanxgeek$ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
self = <testing.test_multi.TestGroup object at 0x24fde90> | |
def test_terminate_with_proxying(self): | |
group = Group() | |
master = group.makegateway('popen//id=master') | |
> slave = group.makegateway('popen//via=master//id=slave') | |
test_multi.py:187: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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_chroo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(1)hpk@t2:~/p/execnet$ tox -epy32 testing/test_multi.py | |
GLOB sdist-make: /home/hpk/p/execnet/setup.py | |
py32 sdist-reinst: /home/hpk/p/execnet/.tox/dist/execnet-1.1.dev1.zip | |
py32 runtests: commands[0] | |
===================================== test session starts ====================================== | |
platform linux2 -- Python 3.2.3 -- pytest-2.2.5.dev2 | |
gateway test setup scope: session | |
execnet: /home/hpk/p/execnet/execnet/__init__.py -- 1.1.dev1 | |
collected 14 items |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ERROR: InvocationError: /home/hpk/p/execnet/.tox/py25/bin/py.test -rsfxX --junitxml=/home/hpk/p/execnet/.tox/py25/log/junit-py25.xml . (see /home/hpk/p/execnet/.tox/py25/log/py25-26.log) | |
ERROR: invocation failed, logfile: /home/hpk/p/execnet/.tox/py32/log/py32-30.log | |
ERROR: actionid=py32 | |
msg=runtests | |
cmd=/home/hpk/p/execnet/testing$ /home/hpk/p/execnet/.tox/py32/bin/py.test -rsfxX --junitxml=/home/hpk/p/execnet/.tox/py32/log/junit-py32.xml . | |
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/py32/bin:/home/hpk/p/execnet/.tox/py25/bin:/home/hpk/.pythonbrew/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\\] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import threading | |
import time | |
from execnet.threadpool import WorkerPool | |
def safe_terminate(timeout, list_of_paired_functions): | |
workerpool = WorkerPool(len(list_of_paired_functions)*2) | |
def termkill(termfunc, killfunc): | |
termreply = workerpool.dispatch(termfunc) | |
try: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# --------------------------------------------------------- | |
# the new internal code for @pytest.setup would look like this: | |
# --------------------------------------------------------- | |
class SetupFunc: | |
def __init__(self, scope): | |
self.scope = scope | |
def __call__(self, func): | |
try: | |
globs = func.__globals__ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pytest | |
class DriverPerSession(): | |
pass | |
@pytest.fixture(scope="session") | |
def driver(): | |
return DriverPerSession() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# content of playbook | |
- name: copy apache.pem | |
file: path=/etc/apache2/ssl state=directory | |
copy: src=$item dest=/etc/apache2/ssl/ owner=root mode=600 | |
with_fileglob: files/ssl/* | |
# shown when i execute it with ansible-playbook | |
TASK: [copy apache.pem] ********************* |
OlderNewer