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
| py27 runtests: commands[3] | /home/david/cov_src/.tox/py27/bin/python setup.py --quiet build_ext --inplace | |
| py27 runtests: commands[4] | /home/david/cov_src/.tox/py27/bin/python igor.py test_with_tracer c | |
| === CPython 2.7.2+ with C tracer (.tox/py27/bin/python) === | |
| ....................................................................................................................................................................................................................................................................................................................................................................E.......................................................................................... | |
| ====================================================================== | |
| ERROR: test_subprocess_with_pth_files (tests.test_process.ProcessStartupTest) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/home/david/cov_src/tests/test_process.py", line |
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
| #!/usr/bin/env python | |
| import datetime | |
| import os | |
| import socket | |
| import subprocess | |
| import sys | |
| ERROR = ' HTTP/1.1" 499' |
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
| $ cat covtest.py | |
| import requests | |
| requests.get('http://www.google.com') | |
| $ coverage run -L covtest.py ; coverage report | |
| Name Stmts Miss Cover | |
| -------------------------------- | |
| covtest.py 2 0 100% |
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
| def get_lineage(request): | |
| name = request.fixturename | |
| node = str(request.node) | |
| try: | |
| return [name] + get_lineage(request._parent_request) | |
| except AttributeError: | |
| return [node] | |
| print ' <- '.join(get_lineage(request)) |
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
| add `import pdb; pdb.set_trace()` to `RpcConsumer.handle_message` and `ReplyListener.handle_message` |
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
| #! /usr/bin/env bash | |
| set -o nounset | |
| set -o errexit | |
| USER="$1" | |
| INPUT_FILE="$2" | |
| curl -s "https://github.com/$USER.keys" | tail -n 1 > "$USER.pub" | |
| ssh-keygen -f "$USER.pub" -e -m PKCS8 > "$USER.pub.pem" |
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
| # https://s3.amazonaws.com/archive.travis-ci.org/jobs/127208999/log.txt | |
| Using worker: worker-linux-docker-f359b10b.prod.travis-ci.org:travis-linux-4 | |
| travis_fold:start:system_info | |
| [0K[33;1mBuild system information[0m | |
| Build language: python | |
| Build group: stable | |
| Build dist: precise | |
| [34m[1mBuild image provisioning date and time[0m |
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
| from django.core.management import call_command | |
| from django.core.management.commands.makemigrations import Command | |
| from django.db.migrations.writer import MigrationWriter | |
| import mock | |
| import pytest | |
| def test_migrations_up_to_date(): | |
| # --exit exits if there are _no_ changes, which is what we are looking for | |
| with pytest.raises(SystemExit): |
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 inspect | |
| from nameko.extensions import ENTRYPOINT_EXTENSIONS_ATTR | |
| from nameko.rpc import rpc, RpcProxy, Rpc | |
| from nameko.web.handlers import http | |
| import requests | |
| class HelloService(object): | |
| name = "greeting_service" |
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
| (function() { | |
| var Perf = React.addons.Perf; | |
| var is_active = window.reactProfileActive || false; | |
| if (!is_active) { | |
| Perf.start(); | |
| } | |
| else { | |
| Perf.start(); | |
| measurements = Perf.getLastMeasurements(); | |
| Perf.printInclusive(measurements); |