forked from Yelp/venv-update
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DEVELOPERS
33 lines (26 loc) · 1.01 KB
/
DEVELOPERS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Workarounds that i'll forget:
----------------------------
getting full output from a test:
run:
py.test -k thattest -vs -n0
or:
make test ARGS='-k thattest -vs -n0'
or even:
tox -e py27-test -- -k 'specific' -n0 -vvs
pip crashes with ValueError: list.remove(x): x not in list
add an elif at $VIRTUAL_ENV/lib/python2.6/site-packages/pip/req.py:388
this is fixed in v1.6
make a fresh virtualenv
deactivate
rmvirtualenv venv-update
mkvirtualenv venv-update -a $PWD -p $(which python2.7)
vim $VIRTUAL_ENV/lib/python2.6/site-packages/pip/req.py # (do above pip fix)
pip install -r requirements.d/dev.txt
Bizarre failure modes:
----------------------
inexplicable "sh: not found" errors during test
linux can only handle 128-bytes shebangs
shorten the test name or something :(
coverage throws `AssertionError: Unexpected third case:`
# This is due to a hackitty workaround in virtualenv to a bug that no longer exists...
rm -rf $VIRTUAL_ENV/local