Skip to content

Instantly share code, notes, and snippets.

Collecting attrdict
1 location(s) to search for versions of attrdict:
* https://pypi.python.org/simple/attrdict/
Getting page https://pypi.python.org/simple/attrdict/
Looking up "https://pypi.python.org/simple/attrdict/" in the cache
Current age based on date: 96
Freshness lifetime from max-age: 600
Freshness lifetime from request max-age: 600
The response is "fresh", returning cached response
600 > 96
@curzona
curzona / pip_install_setuptools23.1.0_pyyaml3.11_zip.txt
Created July 6, 2016 20:14
pyyaml==3.11 install from zip failing on Windows with latest setuptools==24.0.2
C:\Users\ADCURZON\Desktop>virtualenv env
New python executable in C:\Users\ADCURZON\Desktop\env\Scripts\python.exe
Installing setuptools, pip, wheel...done.
C:\Users\ADCURZON\Desktop>env\Scripts\activate
(env) C:\Users\ADCURZON\Desktop>pip install -U setuptools==23.1.0
Collecting setuptools==23.1.0
Using cached setuptools-23.1.0-py2.py3-none-any.whl
Installing collected packages: setuptools
@curzona
curzona / output.txt
Last active May 9, 2016 17:36
test case parameterization with all pairs
C:\Users\adcurzon\Desktop\hello_allpairs>py.test test_allpairs.py -v -l --capture=no
============================= test session starts =============================
platform win32 -- Python 2.7.11, pytest-2.9.1, py-1.4.31, pluggy-0.3.1 -- c:\python27\python.exe
cachedir: .cache
rootdir: C:\Users\adcurzon\Desktop\hello_allpairs, inifile:
plugins: bdd-2.16.1, cov-1.6, instafail-0.2.0, ordering-0.3, pep8-1.0.5, random-0.2, repeater-0.1.0, timeout-1.0.0, xdist-1.14, teamcity-messages-1.8
collected 9 items
test_allpairs.py::test_foo[dodgers-2015-fenway park] PASSED
test_allpairs.py::test_foo[cubs-2016-fenway park] PASSED
curzona@curzona-desktop:~/Desktop/hello_pytest_xdist$ py.test -v -d --tx socket=xxx.xxx.xxx.xxx:8888 --rsyncdir=.
========================================== test session starts ===========================================
platform linux2 -- Python 2.7.9, pytest-2.9.0, py-1.4.31, pluggy-0.3.1 -- /usr/bin/python
cachedir: .cache
rootdir: /home/curzona/Desktop/hello_pytest_xdist, inifile: pytest.ini
plugins: repeater-0.1.0, cov-2.1.0, xdist-1.12, bdd-2.16.0
[gw0] win32 Python 2.7.11 cwd: C:\Users\temp\Desktop\pyexecnetcache
gw0 CINTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/usr/local/lib/python2.7/dist-packages/_pytest/main.py", line 92, in wrap_session
INTERNALERROR> config.hook.pytest_sessionstart(session=session)
#!/usr/bin/env python
import argparse
import re
def parse_args(args=None):
parser = argparse.ArgumentParser()
parser.add_argument('input')
parser.add_argument('output')
import pywintypes
import win32api
#DISPLAY_DEVICE.StateFlags
DISPLAY_DEVICE_ACTIVE = 0x1
DISPLAY_DEVICE_MULTI_DRIVER = 0x2
DISPLAY_DEVICE_PRIMARY_DEVICE = 0x4
DISPLAY_DEVICE_MIRRORING_DRIVER = 0x8
DISPLAY_DEVICE_VGA_COMPATIBLE = 0x10
DISPLAY_DEVICE_REMOVABLE = 0x20
#!/usr/bin/env python
import argparse
import json
from collections import OrderedDict
def parse_args(args=None):
parser = argparse.ArgumentParser()
parser.add_argument('input')
parser.add_argument('output')
#!/usr/bin/env python
import argparse
from xml.dom.minidom import parseString
def parse_args(args=None):
parser = argparse.ArgumentParser()
parser.add_argument('input')
parser.add_argument('output')
@curzona
curzona / example.feature
Created March 5, 2016 20:08
pytest-bdd indentation issue
Feature: Showing off behave
Scenario: Run a mind bogglingly complex test
Given we have behave installed
When we implement 5 tests
Then behave will test them for us!